KiCad PCB EDA Suite
Loading...
Searching...
No Matches
hash_eda.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2017 CERN
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * @author Maciej Suminski <[email protected]>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 */
22
23#ifndef HASH_EDA_H_
24#define HASH_EDA_H_
25
30
31#include <cstdlib>
32#include <functional>
33
34class EDA_ITEM;
35
54
62std::size_t hash_fp_item( const EDA_ITEM* aItem, int aFlags );
63
64#endif
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
HASH_FLAGS
Enable/disable properties that will be used for calculating the hash.
Definition hash_eda.h:42
@ HASH_POS
Definition hash_eda.h:43
@ HASH_VALUE
Definition hash_eda.h:51
@ HASH_LAYER
Definition hash_eda.h:48
@ HASH_REF
Definition hash_eda.h:50
@ RELATIVE_TO_SHAPE_POS
Use coordinates relative to the parent object (footprint).
Definition hash_eda.h:45
@ RELATIVE_TO_PARENT_COORDS
Definition hash_eda.h:44
@ HASH_ALL
Definition hash_eda.h:52
@ HASH_ROT
Use coordinates relative to the shape position.
Definition hash_eda.h:47
@ HASH_NET
Definition hash_eda.h:49
std::size_t hash_fp_item(const EDA_ITEM *aItem, int aFlags)
Calculate hash of an EDA_ITEM.
Definition hash_eda.cpp:54