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

iterable, see zfiter More...

#include <ZFIterable.h>

Inheritance diagram for ZFIterable:
ZFInterface ZFContainer ZFKeyValueContainer ZFArray ZFHashSet ZFSet ZFHashMap ZFMap

Public Member Functions

virtual zfindex count (void)=0
 return total count of this iterable
virtual zfiter iter (void)=0
 return a iter, see zfiter
virtual zfiter iterFind (ZFObject *element)=0
 find element
virtual zfany iterValue (const zfiter &it)=0
 get value by iter, see zfiter
virtual void iterValue (zfiter &it, ZFObject *value)=0
 set value at iter, see zfiter
virtual void iterRemove (zfiter &it)=0
 remove value at iter, see zfiter
virtual void removeAll (void)=0
 remove all contents of this iterable
virtual void iterAdd (ZFObject *value)=0
 add value to tail
virtual void iterAdd (ZFObject *value, zfiter &it)=0
 add value before iter, see zfiter
Public Member Functions inherited from ZFInterface
virtual const ZFClassclassData (void)=0
 get instance's class info
virtual ZFObjecttoObject (void)=0
 convert to ZFObject type

Static Public Member Functions

static const ZFClassClassData (void)
 get class info
Static Public Member Functions inherited from ZFInterface
static const ZFClassClassData (void)
 get class info

Protected Types

typedef ZFInterface zfsuper
 typedef for super (always ZFInterface for an interface type)
typedef ZFIterable zfself
 typedef for self
Protected Types inherited from ZFInterface
typedef _ZFP_ObjI_Base zfsuper
 typedef for super (always ZFInterface for an interface type)
typedef ZFInterface zfself
 typedef for self

Detailed Description

iterable, see zfiter

Member Function Documentation

◆ count()

virtual zfindex ZFIterable::count ( void )
pure virtual

return total count of this iterable

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iter()

virtual zfiter ZFIterable::iter ( void )
pure virtual

return a iter, see zfiter

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iterFind()

virtual zfiter ZFIterable::iterFind ( ZFObject * element)
pure virtual

find element

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iterValue() [1/2]

virtual zfany ZFIterable::iterValue ( const zfiter & it)
pure virtual

get value by iter, see zfiter

iter must be valid

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iterValue() [2/2]

virtual void ZFIterable::iterValue ( zfiter & it,
ZFObject * value )
pure virtual

set value at iter, see zfiter

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iterRemove()

virtual void ZFIterable::iterRemove ( zfiter & it)
pure virtual

remove value at iter, see zfiter

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ removeAll()

virtual void ZFIterable::removeAll ( void )
pure virtual

remove all contents of this iterable

Implemented in ZFArray, ZFHashMap, ZFHashSet, ZFMap, and ZFSet.

◆ iterAdd() [1/2]

virtual void ZFIterable::iterAdd ( ZFObject * value)
pure virtual

add value to tail

Implemented in ZFArray, ZFHashSet, and ZFSet.

◆ iterAdd() [2/2]

virtual void ZFIterable::iterAdd ( ZFObject * value,
zfiter & it )
pure virtual

add value before iter, see zfiter

Implemented in ZFArray, ZFHashSet, and ZFSet.


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