Panda3D
pta_LVecBase2.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pta_LVecBase2.h
10  * @author drose
11  * @date 2010-02-27
12  */
13 
14 #ifndef PTA_LVECBASE2_H
15 #define PTA_LVECBASE2_H
16 
17 #include "pandabase.h"
18 #include "luse.h"
19 #include "pointerToArray.h"
20 
21 /**
22  * A pta of LVecBase2fs. This class is defined once here, and exported to
23  * PANDA.DLL; other packages that want to use a pta of this type (whether they
24  * need to export it or not) should include this header file, rather than
25  * defining the pta again.
26  */
27 
28 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2f> >)
29 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2f>)
30 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2f>)
31 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2f>)
32 
33 typedef PointerToArray<LVecBase2f> PTA_LVecBase2f;
34 typedef ConstPointerToArray<LVecBase2f> CPTA_LVecBase2f;
35 
36 /**
37  * A pta of LVecBase2ds. This class is defined once here, and exported to
38  * PANDA.DLL; other packages that want to use a pta of this type (whether they
39  * need to export it or not) should include this header file, rather than
40  * defining the pta again.
41  */
42 
43 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2d> >)
44 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2d>)
45 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2d>)
46 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2d>)
47 
48 typedef PointerToArray<LVecBase2d> PTA_LVecBase2d;
49 typedef ConstPointerToArray<LVecBase2d> CPTA_LVecBase2d;
50 
51 /**
52  * A pta of LVecBase2is. This class is defined once here, and exported to
53  * PANDA.DLL; other packages that want to use a pta of this type (whether they
54  * need to export it or not) should include this header file, rather than
55  * defining the pta again.
56  */
57 
58 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2i> >)
59 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2i>)
60 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2i>)
61 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2i>)
62 
63 typedef PointerToArray<LVecBase2i> PTA_LVecBase2i;
64 typedef ConstPointerToArray<LVecBase2i> CPTA_LVecBase2i;
65 
66 #ifndef STDFLOAT_DOUBLE
67 typedef PTA_LVecBase2f PTA_LVecBase2;
69 #else
70 typedef PTA_LVecBase2d PTA_LVecBase2;
72 #endif // STDFLOAT_DOUBLE
73 
74 // Bogus typedefs for interrogate and legacy Python code.
75 #ifdef CPPPARSER
76 typedef PTA_LVecBase2f PTAVecBase2f;
77 typedef CPTA_LVecBase2f CPTAVecBase2f;
78 typedef PTA_LVecBase2d PTAVecBase2d;
79 typedef CPTA_LVecBase2d CPTAVecBase2d;
80 #endif // CPPPARSER
81 
82 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for PointerTo and ConstPointerTo.
Definition: pointerToBase.h:29
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A special kind of PointerTo that stores an array of the indicated element type, instead of a single e...
This is the base class for PointerToArray and ConstPointerToArray.
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase< ReferenceCountedVector< LVecBase2f > >) EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL
A pta of LVecBase2fs.
This defines the object that is actually stored and reference-counted internally by a PointerToArray.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Similar to PointerToArray, except that its contents may not be modified.