Public Types | Public Member Functions | List of all members
istd::TOptPointerVector< Pointer > Class Template Reference

Implementation of a special pointer container, which controls the live cycle of the pointer object, but allows optional pointer removing. More...

#include <TOptPointerVector.h>

Inheritance diagram for istd::TOptPointerVector< Pointer >:
istd::TPointerVector< Pointer, TOptDeleteAdapter< Pointer > >

Public Types

typedef TPointerVector
< Pointer, TOptDeleteAdapter
< Pointer > > 
BaseClass
 
- Public Types inherited from istd::TPointerVector< Pointer, TOptDeleteAdapter< Pointer > >
enum  
 
typedef TOptDeleteAdapter
< Pointer >::ElementType 
ElementType
 

Public Member Functions

void SetAt (int index, Pointer *pointer, bool releaseFlag=false)
 
void PushBack (Pointer *pointer, bool releaseFlag=false)
 
void InsertAt (int index, Pointer *pointer, bool releaseFlag=false)
 
- Public Member Functions inherited from istd::TPointerVector< Pointer, TOptDeleteAdapter< Pointer > >
 TPointerVector ()
 
 TPointerVector (const TPointerVector &)
 
 ~TPointerVector ()
 
bool IsEmpty () const
 Check if there is element stored in this set. More...
 
int GetCount () const
 Get number of stored elements. More...
 
void SetCount (int count)
 Set number of elements. More...
 
void Reset ()
 Remove all elements. More...
 
int HasElement (const Pointer *elementPtr) const
 Check if some element is stored in this vector and return the index of the element, if anyone exists, otherwise return InvalidIndex. More...
 
Pointer * GetAt (int index) const
 Get pointer at specified index. More...
 
const ElementTypeGetElementAt (int index) const
 Get element at specified index. More...
 
void SetElementAt (int index, const ElementType &element)
 Set element at specified index. More...
 
void RemoveAt (int index)
 Remove element at specified index. More...
 
bool Remove (Pointer *elementPtr)
 Remove element elementPtr. More...
 
Pointer * PopAt (int index)
 Pop element at specified index. More...
 
void PushBack (const ElementType &element)
 Add new element at the end of collection. More...
 
void InsertElementAt (int index, const ElementType &element)
 Insert element at specified position. More...
 
void SwapElements (int index1, int index2)
 Switch two elements. More...
 

Detailed Description

template<typename Pointer>
class istd::TOptPointerVector< Pointer >

Implementation of a special pointer container, which controls the live cycle of the pointer object, but allows optional pointer removing.

Definition at line 50 of file TOptPointerVector.h.

Member Typedef Documentation

template<typename Pointer>
typedef TPointerVector<Pointer, TOptDeleteAdapter<Pointer> > istd::TOptPointerVector< Pointer >::BaseClass

Definition at line 53 of file TOptPointerVector.h.

Member Function Documentation

template<typename Pointer>
void istd::TOptPointerVector< Pointer >::InsertAt ( int  index,
Pointer *  pointer,
bool  releaseFlag = false 
)
template<typename Pointer>
void istd::TOptPointerVector< Pointer >::PushBack ( Pointer *  pointer,
bool  releaseFlag = false 
)
template<typename Pointer>
void istd::TOptPointerVector< Pointer >::SetAt ( int  index,
Pointer *  pointer,
bool  releaseFlag = false 
)

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy