Panda3D
 All Classes Functions Variables Enumerations
pta_LVecBase2.h
1 // Filename: pta_LVecBase2.h
2 // Created by: drose (27Feb10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 2D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PTA_LVECBASE2_H
16 #define PTA_LVECBASE2_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 #include "pointerToArray.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PTA_LVecBase2f
24 // Description : A pta of LVecBase2fs. This class is defined once here,
25 // and exported to PANDA.DLL; other packages that want
26 // to use a pta of this type (whether they need to
27 // export it or not) should include this header file,
28 // rather than defining the pta again.
29 ////////////////////////////////////////////////////////////////////
30 
31 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2f> >)
32 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2f>)
33 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2f>)
34 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2f>)
35 
36 typedef PointerToArray<LVecBase2f> PTA_LVecBase2f;
38 
39 ////////////////////////////////////////////////////////////////////
40 // Class : PTA_LVecBase2d
41 // Description : A pta of LVecBase2ds. This class is defined once here,
42 // and exported to PANDA.DLL; other packages that want
43 // to use a pta of this type (whether they need to
44 // export it or not) should include this header file,
45 // rather than defining the pta again.
46 ////////////////////////////////////////////////////////////////////
47 
48 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2d> >)
49 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2d>)
50 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2d>)
51 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2d>)
52 
53 typedef PointerToArray<LVecBase2d> PTA_LVecBase2d;
55 
56 ////////////////////////////////////////////////////////////////////
57 // Class : PTA_LVecBase2i
58 // Description : A pta of LVecBase2is. This class is defined once here,
59 // and exported to PANDA.DLL; other packages that want
60 // to use a pta of this type (whether they need to
61 // export it or not) should include this header file,
62 // rather than defining the pta again.
63 ////////////////////////////////////////////////////////////////////
64 
65 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase2i> >)
66 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase2i>)
67 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase2i>)
68 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase2i>)
69 
70 typedef PointerToArray<LVecBase2i> PTA_LVecBase2i;
72 
73 #ifndef STDFLOAT_DOUBLE
74 typedef PTA_LVecBase2f PTA_LVecBase2;
75 typedef CPTA_LVecBase2f CPTA_LVecBase2;
76 #else
77 typedef PTA_LVecBase2d PTA_LVecBase2;
78 typedef CPTA_LVecBase2d CPTA_LVecBase2;
79 #endif // STDFLOAT_DOUBLE
80 
81 // Bogus typedefs for interrogate and legacy Python code.
82 #ifdef CPPPARSER
83 typedef PTA_LVecBase2f PTAVecBase2f;
84 typedef CPTA_LVecBase2f CPTAVecBase2f;
85 typedef PTA_LVecBase2d PTAVecBase2d;
86 typedef CPTA_LVecBase2d CPTAVecBase2d;
87 #endif // CPPPARSER
88 
89 // Tell GCC that we'll take care of the instantiation explicitly here.
90 #ifdef __GNUC__
91 #pragma interface
92 #endif
93 
94 #endif
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:1241
This is the base class for PointerTo and ConstPointerTo.
Definition: pointerToBase.h:32
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:2328
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.
This is the base class for all two-component vectors and points.
Definition: lvecBase2.h:105
This defines the object that is actually stored and reference-counted internally by a PointerToArray...
Similar to PointerToArray, except that its contents may not be modified.