sgsArrayIterator [class]
template< class OwningClass > class sgsArrayIterator
This is an array access iterator class for the owning class that supports array indexing and size retrieval. The owning class needs to have these specific access points:
static const char* IteratorTypeName
- used for the object name definitionT operator [] ( sgs_SizeVal i ) const
- used to retrieve the specific itemsgs_SizeVal size() const
- used to retrieve item count
Variables
OwningClass* m_owner
- the owning class (SGS_OBJECT)sgs_SizeVal m_origsize
- original item count, retrieved from objectsgs_SizeVal m_offset
- current item offset
Constructors
sgsArrayIterator( OwningClass* owner )
- create an iterator for a SGS_OBJECTsgsArrayIterator( const sgsArrayIterator& other )
- create a copy of an iterator
Methods
void gcmark()
- implements the GCMARK callback, not to be generally called directlyint convert( SGS_CTX, sgs_VarObj* obj, int to )
- implements the CONVERT callback, not to be generally called directlyint getnext( SGS_CTX, int mode )
- implements the GETNEXT callback, not to be generally called directly