DynamicArrayBase< TYPE, BLOCK > Class Template Reference

#include <private_ge_mtools.h>

Inheritance diagram for DynamicArrayBase< TYPE, BLOCK >:

Public Member Functions

 ~DynamicArrayBase ()
 
Int GetMemoryUse ()
 
Int32 GetMaxCount ()
 
TYPE & operator[] (int i)
 
TYPE operator[] (int i) const
 
const DynamicArrayBase< TYPE, BLOCK > & operator= (const DynamicArrayBase< TYPE, BLOCK > &src)
 
Bool Insert (Int32 i)
 
Bool RemoveLast ()
 
Bool Remove (Int32 i)
 
TYPE * GetLast ()
 
TYPE * GetAt (Int32 i)
 
void Set (Int32 i, const TYPE &data)
 
TYPE & Get (Int32 i)
 
Int32 Find (const TYPE &data, Int32 l, Int32 u)
 
Int32 Find (const TYPE &data)
 
Int32 FindSorted (const TYPE &data)
 
Bool SetCount (Int32 cnt)
 
Int32 GetCount () const
 
Bool Content () const
 
Bool IsEmpty () const
 
Bool Expand (Int32 maxcnt)
 
Bool CopyTo (DynamicArrayBase< TYPE, BLOCK > *dst) const
 
Bool CopyFrom (TYPE *data, Int32 cnt)
 
Bool CopyFrom (const DynamicArrayBase< TYPE, BLOCK > *src)
 
Bool Init (Int32 cnt=NOTOK)
 
void Free ()
 
void TransferTo (DynamicArrayBase< TYPE, BLOCK > &dst)
 
TYPE * GetArray ()
 
const TYPE * GetArray () const
 
void Sort ()
 
TYPE * ToArray ()
 

Protected Member Functions

 DynamicArrayBase ()
 
void Reset ()
 
Bool Add ()
 
void InitElements (Int32 cnt)
 
void FreeElements ()
 

Protected Attributes

TYPE * m_pData
 
Int32 m_Cnt
 
Int32 m_Allocated
 

Constructor & Destructor Documentation

◆ DynamicArrayBase()

DynamicArrayBase ( )
protected

◆ ~DynamicArrayBase()

Member Function Documentation

◆ Reset()

void Reset ( )
protected

◆ Add()

Bool Add ( )
protected

◆ InitElements()

void InitElements ( Int32  cnt)
protected

◆ FreeElements()

void FreeElements ( )
protected

◆ GetMemoryUse()

Int GetMemoryUse ( )

◆ GetMaxCount()

Int32 GetMaxCount ( )

◆ operator[]() [1/2]

TYPE& operator[] ( int  i)

◆ operator[]() [2/2]

TYPE operator[] ( int  i) const

◆ operator=()

const DynamicArrayBase<TYPE, BLOCK>& operator= ( const DynamicArrayBase< TYPE, BLOCK > &  src)

◆ Insert()

Bool Insert ( Int32  i)

◆ RemoveLast()

Bool RemoveLast ( )

◆ Remove()

Bool Remove ( Int32  i)

◆ GetLast()

TYPE* GetLast ( )

◆ GetAt()

TYPE* GetAt ( Int32  i)

◆ Set()

void Set ( Int32  i,
const TYPE &  data 
)

◆ Get()

TYPE& Get ( Int32  i)

◆ Find() [1/2]

Int32 Find ( const TYPE &  data,
Int32  l,
Int32  u 
)

◆ Find() [2/2]

Int32 Find ( const TYPE &  data)

◆ FindSorted()

Int32 FindSorted ( const TYPE &  data)

◆ SetCount()

Bool SetCount ( Int32  cnt)

◆ GetCount()

Int32 GetCount ( ) const

◆ Content()

Bool Content ( ) const

◆ IsEmpty()

Bool IsEmpty ( ) const

◆ Expand()

Bool Expand ( Int32  maxcnt)

◆ CopyTo()

Bool CopyTo ( DynamicArrayBase< TYPE, BLOCK > *  dst) const

◆ CopyFrom() [1/2]

Bool CopyFrom ( TYPE *  data,
Int32  cnt 
)

◆ CopyFrom() [2/2]

Bool CopyFrom ( const DynamicArrayBase< TYPE, BLOCK > *  src)

◆ Init()

Bool Init ( Int32  cnt = NOTOK)

◆ Free()

void Free ( )

◆ TransferTo()

void TransferTo ( DynamicArrayBase< TYPE, BLOCK > &  dst)

◆ GetArray() [1/2]

TYPE* GetArray ( )

◆ GetArray() [2/2]

const TYPE* GetArray ( ) const

◆ Sort()

void Sort ( )

◆ ToArray()

TYPE* ToArray ( )

Member Data Documentation

◆ m_pData

TYPE* m_pData
protected

◆ m_Cnt

Int32 m_Cnt
protected

◆ m_Allocated

Int32 m_Allocated
protected