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, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef PCB_ITEM_CONTAINERS_H_
21#define PCB_ITEM_CONTAINERS_H_
22
23#include <deque>
24#include <vector>
25
26// Board-level items
27class FOOTPRINT;
28class PCB_TRACK;
29class PCB_GROUP;
30class PCB_GENERATOR;
31class PCB_POINT;
32class PCB_MARKER;
33class PCB_CONSTRAINT;
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;
43typedef std::deque<PCB_CONSTRAINT*> CONSTRAINTS;
44
45
46// Shared with board and footprint
47class BOARD_ITEM;
48
49typedef std::deque<BOARD_ITEM*> DRAWINGS;
50
51// Footprint-level items
52class PAD;
53class PCB_FIELD;
54
55typedef std::deque<PAD*> PADS;
56typedef std::deque<PCB_FIELD*> PCB_FIELDS;
57//typedef std::vector<PCB_FIELD*> PCB_FIELD_VEC;
58
59#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:83
Definition pad.h:61
A geometric constraint between board items (issue #2329).
A set of BOARD_ITEMs (i.e., without duplicates).
Definition pcb_group.h:51
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:39
Handle a list of polygons defining a copper zone.
Definition zone.h:70
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_CONSTRAINT * > CONSTRAINTS
std::deque< PCB_FIELD * > PCB_FIELDS
std::deque< PCB_GENERATOR * > GENERATORS
std::deque< BOARD_ITEM * > DRAWINGS
std::deque< PCB_POINT * > PCB_POINTS