ZFFramework
 
Loading...
Searching...
No Matches
ZFCoreArrayBase Class Referenceabstract

dummy base for ZFCoreArray More...

#include <ZFCoreArray.h>

Inheritance diagram for ZFCoreArrayBase:
ZFCoreArray< ZFIndexRange > ZFCoreArray< T_Element >

Public Member Functions

virtual ZFCoreArrayBaserefNew (void) const =0
 new reference
 
virtual void refDelete (void)
 delete reference
 
virtual void * refImpl (void) const =0
 get the impl
 
virtual void objectInfoT (zfstring &ret) const
 see objectInfo
 
virtual zfstring objectInfo (void) const
 return object info
 
virtual void objectInfoOfContentT (zfstring &ret, zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const =0
 return content info
 
virtual zfstring objectInfoOfContent (zfindex maxCount=((zfindex) -1), const ZFTokenForContainer &token=_ZFP_ZFTokenForContainerDefault) const =0
 return content info
 
virtual void capacity (zfindex newCapacity)=0
 change capacity to hold at least newCapacity
 
virtual void capacityTrim (void)=0
 trim current capacity
 
virtual zfindex capacity (void) const =0
 get capacity
 
virtual void remove (zfindex index)=0
 remove element at index with count, assert fail if out of range
 
virtual void remove (zfindex index, zfindex count)=0
 remove element at index with count, assert fail if out of range
 
virtual void removeFirst (void)=0
 remove first, assert fail if out of range
 
virtual void removeLast (void)=0
 remove last, assert fail if out of range
 
virtual void removeAll (void)=0
 remove all content
 
virtual void move (zfindex fromIndex, zfindex toIndexOrIndexMax)=0
 move element
 
virtual zfindex count (void) const =0
 element count of this array
 
virtual zfbool isEmpty (void) const =0
 true if empty
 
virtual void sort (zfindex start=0, zfindex count=((zfindex) -1))=0
 sort
 
virtual void sortReversely (zfindex start=0, zfindex count=((zfindex) -1))=0
 sort reversely
 
virtual void genericSwap (ZFCoreArrayBase &ref)=0
 generic version
 
virtual void genericCopyFrom (const ZFCoreArrayBase &ref)=0
 generic version
 
virtual zfindex genericFind (const void *e)=0
 generic version
 
virtual zfindex genericFindReversely (const void *e)=0
 generic version
 
virtual void genericAdd (const void *e)=0
 generic version
 
virtual void genericAdd (const void *e, zfindex index)=0
 generic version
 
virtual void genericAddFrom (const void *e, zfindex count)=0
 generic version
 
virtual void genericAddFrom (const ZFCoreArrayBase &ref)=0
 generic version
 
virtual void genericSet (zfindex index, const void *e)=0
 generic version
 
virtual const void * genericGet (zfindex index) const =0
 generic version
 

Detailed Description

dummy base for ZFCoreArray

Member Function Documentation

◆ refNew()

virtual ZFCoreArrayBase * ZFCoreArrayBase::refNew ( void ) const
pure virtual

new reference

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ refImpl()

virtual void * ZFCoreArrayBase::refImpl ( void ) const
pure virtual

get the impl

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ objectInfoOfContentT()

virtual void ZFCoreArrayBase::objectInfoOfContentT ( zfstring & ret,
zfindex maxCount = ((zfindex) -1),
const ZFTokenForContainer & token = _ZFP_ZFTokenForContainerDefault ) const
pure virtual

return content info

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ objectInfoOfContent()

virtual zfstring ZFCoreArrayBase::objectInfoOfContent ( zfindex maxCount = ((zfindex) -1),
const ZFTokenForContainer & token = _ZFP_ZFTokenForContainerDefault ) const
pure virtual

return content info

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ capacity() [1/2]

virtual void ZFCoreArrayBase::capacity ( zfindex newCapacity)
pure virtual

change capacity to hold at least newCapacity

do nothing if newCapacity not changed or less than current capacity

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ capacityTrim()

virtual void ZFCoreArrayBase::capacityTrim ( void )
pure virtual

trim current capacity

do nothing if not necessary to trim

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ capacity() [2/2]

virtual zfindex ZFCoreArrayBase::capacity ( void ) const
pure virtual

get capacity

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ remove() [1/2]

virtual void ZFCoreArrayBase::remove ( zfindex index)
pure virtual

remove element at index with count, assert fail if out of range

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ remove() [2/2]

virtual void ZFCoreArrayBase::remove ( zfindex index,
zfindex count )
pure virtual

remove element at index with count, assert fail if out of range

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ removeFirst()

virtual void ZFCoreArrayBase::removeFirst ( void )
pure virtual

remove first, assert fail if out of range

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ removeLast()

virtual void ZFCoreArrayBase::removeLast ( void )
pure virtual

remove last, assert fail if out of range

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ removeAll()

virtual void ZFCoreArrayBase::removeAll ( void )
pure virtual

remove all content

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ move()

virtual void ZFCoreArrayBase::move ( zfindex fromIndex,
zfindex toIndexOrIndexMax )
pure virtual

move element

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ count()

virtual zfindex ZFCoreArrayBase::count ( void ) const
pure virtual

element count of this array

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ isEmpty()

virtual zfbool ZFCoreArrayBase::isEmpty ( void ) const
pure virtual

true if empty

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ sort()

virtual void ZFCoreArrayBase::sort ( zfindex start = 0,
zfindex count = ((zfindex) -1) )
pure virtual

◆ sortReversely()

virtual void ZFCoreArrayBase::sortReversely ( zfindex start = 0,
zfindex count = ((zfindex) -1) )
pure virtual

sort reversely

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericSwap()

virtual void ZFCoreArrayBase::genericSwap ( ZFCoreArrayBase & ref)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericCopyFrom()

virtual void ZFCoreArrayBase::genericCopyFrom ( const ZFCoreArrayBase & ref)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericFind()

virtual zfindex ZFCoreArrayBase::genericFind ( const void * e)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericFindReversely()

virtual zfindex ZFCoreArrayBase::genericFindReversely ( const void * e)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericAdd() [1/2]

virtual void ZFCoreArrayBase::genericAdd ( const void * e)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericAdd() [2/2]

virtual void ZFCoreArrayBase::genericAdd ( const void * e,
zfindex index )
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericAddFrom() [1/2]

virtual void ZFCoreArrayBase::genericAddFrom ( const void * e,
zfindex count )
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericAddFrom() [2/2]

virtual void ZFCoreArrayBase::genericAddFrom ( const ZFCoreArrayBase & ref)
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericSet()

virtual void ZFCoreArrayBase::genericSet ( zfindex index,
const void * e )
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.

◆ genericGet()

virtual const void * ZFCoreArrayBase::genericGet ( zfindex index) const
pure virtual

generic version

Implemented in ZFCoreArray< T_Element >, and ZFCoreArray< ZFIndexRange >.


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