Panda3D
 All Classes Functions Variables Enumerations
pta_ushort.h
1 // Filename: pta_ushort.h
2 // Created by: drose (10May00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D 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_USHORT_H
16 #define PTA_USHORT_H
17 
18 #include "pandabase.h"
19 
20 #include "pointerToArray.h"
21 #include "vector_ushort.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PTA_ushort
25 // Description : A pta of ushorts. This class is defined once here,
26 // and exported to PANDA.DLL; other packages that want
27 // to use a pta of this type (whether they need to
28 // export it or not) should include this header file,
29 // rather than defining the pta again.
30 ////////////////////////////////////////////////////////////////////
31 
32 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL, PointerToBase<ReferenceCountedVector<ushort> >)
33 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL, PointerToArrayBase<ushort>)
34 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL, PointerToArray<unsigned short>)
35 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_PUTIL, EXPTP_PANDA_PUTIL, ConstPointerToArray<unsigned short>)
36 
37 typedef PointerToArray<unsigned short> PTA_ushort;
38 typedef ConstPointerToArray<unsigned short> CPTA_ushort;
39 
40 // Tell GCC that we'll take care of the instantiation explicitly here.
41 #ifdef __GNUC__
42 #pragma interface
43 #endif
44 
45 #endif
This is the base class for PointerTo and ConstPointerTo.
Definition: pointerToBase.h:32
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 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.