ivutils
Loading...
Searching...
No Matches
array_mngptr< T > Class Template Reference

Array of managed pointers. More...

#include <refobj.h>

Public Member Functions

size_t size () const
 get current size
 
size_t push_back (const mngarg< T > &arg)
 add an element to the end of array
 
const T * operator[] (size_t i) const
 Get pointer at current index.
 
T * operator[] (size_t i)
 Get const pointer at current index.
 
void reset (size_t i, const mngarg< T > &arg)
 Change value at current index, deletes existing pointer if necessary.
 
void clear ()
 Clears array, deleting all pointers if necessary.
 
 ~array_mngptr ()
 Destructor, deletes all pointers if necessary.
 

Detailed Description

template<class T>
class array_mngptr< T >

Array of managed pointers.

Used to group managed pointers into variable size array based on std::vector.

Member Function Documentation

◆ push_back()

template<class T >
size_t array_mngptr< T >::push_back ( const mngarg< T > &  arg)
inline

add an element to the end of array

Returns
index of the added element

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