KiCad PCB EDA Suite
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 (C) 1992-2021 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 #include <macros_swig.h>
28 
29 // Board-level items
30 class FOOTPRINT;
31 class PCB_TRACK;
32 class PCB_GROUP;
33 class PCB_MARKER;
34 class ZONE;
35 
36 DECL_VEC_FOR_SWIG( MARKERS, PCB_MARKER* )
38 DECL_DEQ_FOR_SWIG( TRACKS, PCB_TRACK* )
39 DECL_DEQ_FOR_SWIG( FOOTPRINTS, FOOTPRINT* )
40 // Dequeue rather than Vector just so we can use moveUnflaggedItems in pcbnew_control.cpp
41 DECL_DEQ_FOR_SWIG( GROUPS, PCB_GROUP* )
42 
43 
44 // Shared with board and footprint
45 class BOARD_ITEM;
46 
47 DECL_DEQ_FOR_SWIG( DRAWINGS, BOARD_ITEM* )
48 
49 
50 // Footprint-level items
51 class FP_ZONE;
52 class PAD;
53 
54 DECL_DEQ_FOR_SWIG( PADS, PAD* )
55 DECL_VEC_FOR_SWIG( FP_ZONES, FP_ZONE* )
56 DECL_VEC_FOR_SWIG( FP_GROUPS, PCB_GROUP* )
57 
58 #endif // PCB_ITEM_CONTAINERS_H_
std::vector< ZONE * > ZONES
Definition: eagle_plugin.h:44
#define DECL_DEQ_FOR_SWIG(TypeName, MemberType)
Definition: macros_swig.h:51
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:49
A set of BOARD_ITEMs (i.e., without duplicates).
Definition: pcb_group.h:50
Handle a list of polygons defining a copper zone.
Definition: zone.h:56
This file contains macros just for swig binding.
#define DECL_VEC_FOR_SWIG(TypeName, MemberType)
Declare a std::vector but no swig template.
Definition: macros_swig.h:50
Definition: pad.h:57
A specialization of ZONE for use in footprints.
Definition: zone.h:945