Panda3D
 All Classes Functions Variables Enumerations
pta_uchar.h
1 // Filename: pta_uchar.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_UCHAR_H
16 #define PTA_UCHAR_H
17 
18 #include "pandabase.h"
19 
20 #include "pointerToArray.h"
21 #include "vector_uchar.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PTA_uchar
25 // Description : A pta of uchars. This class is defined once here,
26 // and exported to PANDAEXPRESS.DLL; other packages that
27 // want 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 #if !defined(__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7
33 // GCC 4.6 has a weird bug related to this type.
34 #else
35 EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase<ReferenceCountedVector<uchar> >)
36 EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase<uchar>)
37 EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray<unsigned char>)
38 EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray<unsigned char>)
39 #endif
40 
41 typedef PointerToArray<unsigned char> PTA_uchar;
43 
44 // Tell GCC that we'll take care of the instantiation explicitly here.
45 #ifdef __GNUC__
46 #pragma interface
47 #endif
48 
49 #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.