CDynObjectArray< ArrayElement > Class Template Referenceabstract

#include <private_ge_mtools.h>

Public Types

typedef ArrayElement * ArrayElementPtr
 

Public Member Functions

 CDynObjectArray ()
 
virtual ~CDynObjectArray ()
 
ArrayElement * GetNextObject ()
 
ArrayElement * InsertAt (Int32 l)
 
ArrayElement * GetNextObjectType (Int32 lID)
 
ArrayElement * InsertAtType (Int32 lID, Int32 l)
 
Int32 GetObjectIndex (const ArrayElement *pObj) const
 
ArrayElement * GetObject (Int32 l) const
 
Int32 GetElementCount () const
 
Bool RemoveAt (Int32 l)
 
Bool RemoveObjectPointer (const ArrayElement *pObj)
 
const CDynArray< ArrayElementPtr > * GetArray () const
 
CDynArray< ArrayElementPtr > * GetArray ()
 
ArrayElement * operator[] (Int32 l) const
 
Bool IsEmpty () const
 
Bool IsEqual (const CDynObjectArray< ArrayElement > *pArray) const
 
Bool RemovePointer (Int32 lIndex)
 
Bool InsertObject (ArrayElement *pObj, Int32 lIndex)
 
Bool Init (const ArrayElement *const *ppObjects, Int32 lCount, AliasTrans *pTrans=nullptr, Bool bAppend=false)
 
Bool CopyTo (CDynObjectArray< ArrayElement > *pDest, AliasTrans *pTrans, Bool bAppend=false) const
 
Bool Alloc (Int32 lElementCount)
 
virtual void Free ()
 
Bool Read (HyperFile *pFile, Bool bFlush=true)
 
Bool Write (HyperFile *pFile, Int32 lLevel) const
 
Bool ReadCreateObject (HyperFile *pFile, Bool bFlush=true)
 

Protected Member Functions

virtual ArrayElement * AllocObject () const =0
 
virtual void FreeObject (ArrayElement *&pObj) const =0
 
virtual ArrayElement * AllocObjectType (Int32 lType) const
 
virtual ArrayElement * GetClone (const ArrayElement *pObj, AliasTrans *pTrans) const
 
virtual Bool ReadElement (BaseFile *pFile, ArrayElement *pElement, Int32 lLevel)
 
virtual Bool WriteElement (BaseFile *pFile, const ArrayElement *pElement) const
 
virtual Bool ReadElementHF (HyperFile *pFile, ArrayElement *pElement, Int32 lLevel)
 
virtual Bool WriteElementHF (HyperFile *pFile, const ArrayElement *pElement) const
 
virtual Bool ReadElementCreate (HyperFile *pFile, ArrayElement *&pElement, Int32 lLevel)
 
virtual Bool TestEqual (const ArrayElement *pObjA, const ArrayElement *pObjB) const
 

Protected Attributes

CDynArray< ArrayElementPtrm_Objects
 

Member Typedef Documentation

◆ ArrayElementPtr

typedef ArrayElement* ArrayElementPtr

Constructor & Destructor Documentation

◆ CDynObjectArray()

◆ ~CDynObjectArray()

~CDynObjectArray
virtual

Member Function Documentation

◆ GetNextObject()

ArrayElement * GetNextObject

◆ InsertAt()

ArrayElement * InsertAt ( Int32  l)

◆ GetNextObjectType()

ArrayElement * GetNextObjectType ( Int32  lID)

◆ InsertAtType()

ArrayElement * InsertAtType ( Int32  lID,
Int32  l 
)

◆ GetObjectIndex()

Int32 GetObjectIndex ( const ArrayElement *  pObj) const

◆ GetObject()

ArrayElement * GetObject ( Int32  l) const

◆ GetElementCount()

Int32 GetElementCount

◆ RemoveAt()

Bool RemoveAt ( Int32  l)

◆ RemoveObjectPointer()

Bool RemoveObjectPointer ( const ArrayElement *  pObj)

◆ GetArray() [1/2]

const CDynArray<ArrayElementPtr>* GetArray ( ) const

◆ GetArray() [2/2]

CDynArray<ArrayElementPtr>* GetArray ( )

◆ operator[]()

ArrayElement * operator[] ( Int32  l) const

◆ IsEmpty()

Bool IsEmpty ( ) const

◆ IsEqual()

Bool IsEqual ( const CDynObjectArray< ArrayElement > *  pArray) const

◆ RemovePointer()

Bool RemovePointer ( Int32  lIndex)

◆ InsertObject()

Bool InsertObject ( ArrayElement *  pObj,
Int32  lIndex 
)

◆ Init()

Bool Init ( const ArrayElement *const *  ppObjects,
Int32  lCount,
AliasTrans pTrans = nullptr,
Bool  bAppend = false 
)

◆ CopyTo()

Bool CopyTo ( CDynObjectArray< ArrayElement > *  pDest,
AliasTrans pTrans,
Bool  bAppend = false 
) const

◆ Alloc()

Bool Alloc ( Int32  lElementCount)

◆ Free()

void Free
virtual

Reimplemented in CBlendLayers.

◆ Read()

Bool Read ( HyperFile pFile,
Bool  bFlush = true 
)

◆ Write()

Bool Write ( HyperFile pFile,
Int32  lLevel 
) const

◆ ReadCreateObject()

Bool ReadCreateObject ( HyperFile pFile,
Bool  bFlush = true 
)

◆ AllocObject()

virtual ArrayElement* AllocObject ( ) const
protectedpure virtual

◆ FreeObject()

virtual void FreeObject ( ArrayElement *&  pObj) const
protectedpure virtual

Implemented in CBlendLayers.

◆ AllocObjectType()

ArrayElement * AllocObjectType ( Int32  lType) const
protectedvirtual

Reimplemented in CBlendLayers.

◆ GetClone()

ArrayElement * GetClone ( const ArrayElement *  pObj,
AliasTrans pTrans 
) const
protectedvirtual

◆ ReadElement()

Bool ReadElement ( BaseFile pFile,
ArrayElement *  pElement,
Int32  lLevel 
)
protectedvirtual

◆ WriteElement()

Bool WriteElement ( BaseFile pFile,
const ArrayElement *  pElement 
) const
protectedvirtual

◆ ReadElementHF()

Bool ReadElementHF ( HyperFile pFile,
ArrayElement *  pElement,
Int32  lLevel 
)
protectedvirtual

◆ WriteElementHF()

Bool WriteElementHF ( HyperFile pFile,
const ArrayElement *  pElement 
) const
protectedvirtual

Reimplemented in CBlendLayers.

◆ ReadElementCreate()

Bool ReadElementCreate ( HyperFile pFile,
ArrayElement *&  pElement,
Int32  lLevel 
)
protectedvirtual

Reimplemented in CBlendLayers.

◆ TestEqual()

Bool TestEqual ( const ArrayElement *  pObjA,
const ArrayElement *  pObjB 
) const
protectedvirtual

Member Data Documentation

◆ m_Objects

CDynArray<ArrayElementPtr> m_Objects
protected