KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_item_containers.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#ifndef PCB_ITEM_CONTAINERS_H_
25#define PCB_ITEM_CONTAINERS_H_
26
27// Board-level items
28class FOOTPRINT;
29class PCB_TRACK;
30class PCB_GROUP;
31class PCB_GENERATOR;
32class PCB_POINT;
33class PCB_MARKER;
34class ZONE;
35
36typedef std::vector<PCB_MARKER*> MARKERS;
37typedef std::vector<ZONE*> ZONES;
38typedef std::deque<PCB_TRACK*> TRACKS;
39typedef std::deque<FOOTPRINT*> FOOTPRINTS;
40typedef std::deque<PCB_GROUP*> GROUPS;
41typedef std::deque<PCB_GENERATOR*> GENERATORS;
42typedef std::deque<PCB_POINT*> PCB_POINTS;
43
44
45// Shared with board and footprint
46class BOARD_ITEM;
47
48typedef std::deque<BOARD_ITEM*> DRAWINGS;
49
50// Footprint-level items
51class PAD;
52class PCB_FIELD;
53
54typedef std::deque<PAD*> PADS;
55typedef std::deque<PCB_FIELD*> PCB_FIELDS;
56//typedef std::vector<PCB_FIELD*> PCB_FIELD_VEC;
57
58#endif // PCB_ITEM_CONTAINERS_H_
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
Definition pad.h:55
A set of BOARD_ITEMs (i.e., without duplicates).
Definition pcb_group.h:53
A PCB_POINT is a 0-dimensional point that is used to mark a position on a PCB, or more usually a foot...
Definition pcb_point.h:43
Handle a list of polygons defining a copper zone.
Definition zone.h:74
std::vector< ZONE * > ZONES
std::vector< PCB_MARKER * > MARKERS
std::deque< PAD * > PADS
std::deque< FOOTPRINT * > FOOTPRINTS
std::deque< PCB_TRACK * > TRACKS
std::deque< PCB_GROUP * > GROUPS
std::deque< PCB_FIELD * > PCB_FIELDS
std::deque< PCB_GENERATOR * > GENERATORS
std::deque< BOARD_ITEM * > DRAWINGS
std::deque< PCB_POINT * > PCB_POINTS