SortedArray< TYPE, BLOCK > Class Template Reference

#include <private_ge_mtools.h>

Inheritance diagram for SortedArray< TYPE, BLOCK >:

Public Member Functions

 SortedArray ()
 
const SortedArray< TYPE, BLOCK > & operator= (const SortedArray< TYPE, BLOCK > &src)
 
Bool AddLast ()
 
Bool AddLast (const TYPE &v)
 
Bool Add (const TYPE &data)
 
Bool AddUnique (const TYPE &v)
 
TYPE * GetUnique (const TYPE &v, Bool &bExisted)
 
Bool AddUnique (const TYPE &v, Bool &set)
 
Bool RemoveValue (const TYPE &v)
 
Bool RemoveValue (const TYPE &v, Bool &set)
 
Int32 Find (const TYPE &v)
 
Int32 FindValueIndex (const TYPE &v)
 
- Public Member Functions inherited from DynamicArrayBase< TYPE, BLOCK >
 ~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

Int32 SearchIndex (const TYPE &v)
 
Int32 SearchEqualIndex (const TYPE &v)
 
- Protected Member Functions inherited from DynamicArrayBase< TYPE, BLOCK >
 DynamicArrayBase ()
 
void Reset ()
 
Bool Add ()
 
void InitElements (Int32 cnt)
 
void FreeElements ()
 

Friends

class SelectArray
 
class SelectArrayExt< TYPE >
 

Additional Inherited Members

- Protected Attributes inherited from DynamicArrayBase< TYPE, BLOCK >
TYPE * m_pData
 
Int32 m_Cnt
 
Int32 m_Allocated
 

Constructor & Destructor Documentation

◆ SortedArray()

Member Function Documentation

◆ SearchIndex()

Int32 SearchIndex ( const TYPE &  v)
protected

◆ SearchEqualIndex()

Int32 SearchEqualIndex ( const TYPE &  v)
protected

◆ operator=()

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

◆ AddLast() [1/2]

Bool AddLast ( )

◆ AddLast() [2/2]

Bool AddLast ( const TYPE &  v)

◆ Add()

Bool Add ( const TYPE &  data)

◆ AddUnique() [1/2]

Bool AddUnique ( const TYPE &  v)

◆ GetUnique()

TYPE* GetUnique ( const TYPE &  v,
Bool bExisted 
)

◆ AddUnique() [2/2]

Bool AddUnique ( const TYPE &  v,
Bool set 
)

◆ RemoveValue() [1/2]

Bool RemoveValue ( const TYPE &  v)

◆ RemoveValue() [2/2]

Bool RemoveValue ( const TYPE &  v,
Bool set 
)

◆ Find()

Int32 Find ( const TYPE &  v)

◆ FindValueIndex()

Int32 FindValueIndex ( const TYPE &  v)

Friends And Related Function Documentation

◆ SelectArray

friend class SelectArray
friend

◆ SelectArrayExt< TYPE >

friend class SelectArrayExt< TYPE >
friend