Panda3D
Loading...
Searching...
No Matches
pta_uchar.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_uchar.h
10 * @author drose
11 * @date 2000-05-10
12 */
13
14#ifndef PTA_UCHAR_H
15#define PTA_UCHAR_H
16
17#include "pandabase.h"
18
19#include "pointerToArray.h"
20#include "vector_uchar.h"
21
22/**
23 * A pta of uchars. This class is defined once here, and exported to
24 * PANDA_EXPRESS.DLL; other packages that want to use a pta of this type
25 * (whether they need to export it or not) should include this header file,
26 * rather than defining the pta again.
27 */
28
29#if !defined(__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7
30// GCC 4.6 has a weird bug related to this type.
31#else
32EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase<ReferenceCountedVector<uchar> >)
33EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArrayBase<uchar>)
34EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToArray<unsigned char>)
35EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, ConstPointerToArray<unsigned char>)
36#endif
37
38typedef PointerToArray<unsigned char> PTA_uchar;
40
41#endif
Similar to PointerToArray, except that its contents may not be modified.
This is the base class for PointerToArray and ConstPointerToArray.
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 PointerTo and ConstPointerTo.
This defines the object that is actually stored and reference-counted internally by a PointerToArray.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS, EXPTP_PANDA_EXPRESS, PointerToBase< ReferenceCountedVector< uchar > >) EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EXPRESS
A pta of uchars.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.