Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
pvector< Type > Class Template Reference

This is our own Panda specialization on the default STL vector. More...

#include "pvector.h"

Inheritance diagram for pvector< Type >:

Public Types

typedef pallocator_array< Type > allocator
 
typedef std::vector< Type, allocatorbase_class
 
typedef base_class::size_type size_type
 

Public Member Functions

 pvector (const pvector< Type > &copy)
 
 pvector (const Type *begin, const Type *end, TypeHandle type_handle=pvector_type_handle)
 
 pvector (pvector< Type > &&from) noexcept
 
 pvector (size_type n, const Type &value, TypeHandle type_handle=pvector_type_handle)
 
 pvector (size_type n, TypeHandle type_handle=pvector_type_handle)
 
 pvector (TypeHandle type_handle=pvector_type_handle)
 
pvector< Type > & operator= (const pvector< Type > &copy)
 
pvector< Type > & operator= (pvector< Type > &&from) noexcept
 

Detailed Description

template<class Type>
class pvector< Type >

This is our own Panda specialization on the default STL vector.

Its main purpose is to call the hooks for MemoryUsage to properly track STL- allocated memory.

Definition at line 42 of file pvector.h.

Member Typedef Documentation

◆ allocator

template<class Type >
typedef pallocator_array<Type> pvector< Type >::allocator

Definition at line 44 of file pvector.h.

◆ base_class

template<class Type >
typedef std::vector<Type, allocator> pvector< Type >::base_class

Definition at line 45 of file pvector.h.

◆ size_type

template<class Type >
typedef base_class::size_type pvector< Type >::size_type

Definition at line 46 of file pvector.h.

Constructor & Destructor Documentation

◆ pvector() [1/6]

template<class Type >
pvector< Type >::pvector ( TypeHandle type_handle = pvector_type_handle)
inlineexplicit

Definition at line 48 of file pvector.h.

◆ pvector() [2/6]

template<class Type >
pvector< Type >::pvector ( const pvector< Type > & copy)
inline

Definition at line 49 of file pvector.h.

◆ pvector() [3/6]

template<class Type >
pvector< Type >::pvector ( pvector< Type > && from)
inlinenoexcept

Definition at line 50 of file pvector.h.

◆ pvector() [4/6]

template<class Type >
pvector< Type >::pvector ( size_type n,
TypeHandle type_handle = pvector_type_handle )
inlineexplicit

Definition at line 51 of file pvector.h.

◆ pvector() [5/6]

template<class Type >
pvector< Type >::pvector ( size_type n,
const Type & value,
TypeHandle type_handle = pvector_type_handle )
inlineexplicit

Definition at line 52 of file pvector.h.

◆ pvector() [6/6]

template<class Type >
pvector< Type >::pvector ( const Type * begin,
const Type * end,
TypeHandle type_handle = pvector_type_handle )
inline

Definition at line 53 of file pvector.h.

Member Function Documentation

◆ operator=() [1/2]

template<class Type >
pvector< Type > & pvector< Type >::operator= ( const pvector< Type > & copy)
inline

Definition at line 55 of file pvector.h.

◆ operator=() [2/2]

template<class Type >
pvector< Type > & pvector< Type >::operator= ( pvector< Type > && from)
inlinenoexcept

Definition at line 60 of file pvector.h.


The documentation for this class was generated from the following file: