TRF Language Model
wb::iter::Ary< T > Class Template Reference

#include <wb-iter.h>

Inheritance diagram for wb::iter::Ary< T >:
wb::iter::Obj< T >

Public Member Functions

 Ary (T *p_p, int p_len)
 
virtual void Reset ()
 
virtual bool Next (T &t)
 

Public Attributes

T * p
 the array More...
 
int len
 the length of the array More...
 
int cur
 cur position More...
 

Detailed Description

template<typename T>
class wb::iter::Ary< T >

Definition at line 59 of file wb-iter.h.

Constructor & Destructor Documentation

§ Ary()

template<typename T>
wb::iter::Ary< T >::Ary ( T *  p_p,
int  p_len 
)
inline

Definition at line 66 of file wb-iter.h.

Member Function Documentation

§ Next()

template<typename T>
virtual bool wb::iter::Ary< T >::Next ( T &  t)
inlinevirtual

Implements wb::iter::Obj< T >.

Definition at line 68 of file wb-iter.h.

§ Reset()

template<typename T>
virtual void wb::iter::Ary< T >::Reset ( )
inlinevirtual

Implements wb::iter::Obj< T >.

Definition at line 67 of file wb-iter.h.

Member Data Documentation

§ cur

template<typename T>
int wb::iter::Ary< T >::cur

cur position

Definition at line 64 of file wb-iter.h.

§ len

template<typename T>
int wb::iter::Ary< T >::len

the length of the array

Definition at line 63 of file wb-iter.h.

§ p

template<typename T>
T* wb::iter::Ary< T >::p

the array

Definition at line 62 of file wb-iter.h.


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