15 #ifndef POINTERTOARRAYBASE_H 16 #define POINTERTOARRAYBASE_H 18 #include "pandabase.h" 19 #include "pStatCollectorForwardBase.h" 20 #include "nodeReferenceCount.h" 21 #include "pointerTo.h" 23 #include "memoryBase.h" 42 template <
class Element>
50 INLINE ReferenceCountedVector(size_type initial_size,
TypeHandle type_handle);
51 INLINE ~ReferenceCountedVector();
54 INLINE size_type size()
const;
56 INLINE iterator insert(iterator position,
const Element &x);
57 INLINE
void insert(iterator position, size_type n,
const Element &x);
59 INLINE
void erase(iterator position);
60 INLINE
void erase(iterator first, iterator last);
62 INLINE
void pop_back();
76 template <
class Element>
85 #ifdef USE_MOVE_SEMANTICS 90 INLINE ~PointerToArrayBase();
93 #include "pointerToArrayBase.I" This is the base class for PointerTo and ConstPointerTo.
This class specializes ReferenceCount to add an additional counter, called node_ref_count, for the purposes of counting the number of times the object is referenced by a "node", whatever that may mean in context.
This is our own Panda specialization on the default STL vector.
This is the base class for PointerToArray and ConstPointerToArray.
TypeHandle is the identifier used to differentiate C++ class types.
This defines the object that is actually stored and reference-counted internally by a PointerToArray...