oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator Class Reference

#include <InternalKeyDurableTable.h>

List of all members.


Detailed Description

template<typename _ShimType, typename _KeyType, typename _DataType>
class oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator

STL-style iterator.

Definition at line 82 of file InternalKeyDurableTable.h.

Public Types

typedef InternalKeyDurableTable<
_ShimType, _KeyType, _DataType > 
table_t

Public Member Functions

virtual ~iterator ()
int next ()
 Advances the iterator.
void begin ()
 Alternate hook to next() for starting iterating.
bool more ()
 Return true if iterating is done.
_KeyType cur_val ()
 Accessor for the value.

Private Member Functions

 iterator (table_t *table, DurableIterator *iter)

Private Attributes

table_ttable_
 Pointer to the containing table.
DurableIteratoriter_
 The underlying iterator.
_ShimType cur_val_
 Current field value.
bool done_
 Flag indicating if at end.

Friends

class InternalKeyDurableTable< _ShimType, _KeyType, _DataType >


Member Typedef Documentation

template<typename _ShimType, typename _KeyType, typename _DataType>
typedef class InternalKeyDurableTable< _ShimType,_KeyType,_DataType > oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::table_t

Definition at line 84 of file InternalKeyDurableTable.h.


Constructor & Destructor Documentation

template<typename _ShimType, typename _KeyType, typename _DataType>
virtual oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::~iterator (  )  [virtual]

template<typename _ShimType, typename _KeyType, typename _DataType>
oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::iterator ( table_t table,
DurableIterator iter 
) [private]


Member Function Documentation

template<typename _ShimType, typename _KeyType, typename _DataType>
int oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::next (  ) 

Advances the iterator.

Returns:
DS_OK, DS_NOTFOUND if no more elements, DS_ERR if an error occurred while iterating.

Referenced by oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::begin(), and dtn::BundleDaemon::load_bundles().

template<typename _ShimType, typename _KeyType, typename _DataType>
void oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::begin (  )  [inline]

Alternate hook to next() for starting iterating.

Definition at line 101 of file InternalKeyDurableTable.h.

References oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::next().

Referenced by dtn::BundleDaemon::load_bundles().

template<typename _ShimType, typename _KeyType, typename _DataType>
bool oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::more (  )  [inline]

Return true if iterating is done.

Definition at line 106 of file InternalKeyDurableTable.h.

References oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::done_.

Referenced by dtn::BundleDaemon::load_bundles().

template<typename _ShimType, typename _KeyType, typename _DataType>
_KeyType oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::cur_val (  )  [inline]

Accessor for the value.

Definition at line 111 of file InternalKeyDurableTable.h.

References oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::cur_val_.

Referenced by dtn::BundleDaemon::load_bundles().


Friends And Related Function Documentation

template<typename _ShimType, typename _KeyType, typename _DataType>
friend class InternalKeyDurableTable< _ShimType,_KeyType,_DataType > [friend]

Definition at line 116 of file InternalKeyDurableTable.h.


Member Data Documentation

template<typename _ShimType, typename _KeyType, typename _DataType>
table_t* oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::table_ [private]

Pointer to the containing table.

Definition at line 120 of file InternalKeyDurableTable.h.

template<typename _ShimType, typename _KeyType, typename _DataType>
DurableIterator* oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::iter_ [private]

The underlying iterator.

Definition at line 121 of file InternalKeyDurableTable.h.

template<typename _ShimType, typename _KeyType, typename _DataType>
_ShimType oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::cur_val_ [private]

Current field value.

Definition at line 122 of file InternalKeyDurableTable.h.

Referenced by oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::cur_val().

template<typename _ShimType, typename _KeyType, typename _DataType>
bool oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::done_ [private]

Flag indicating if at end.

Definition at line 123 of file InternalKeyDurableTable.h.

Referenced by oasys::InternalKeyDurableTable< _ShimType, _KeyType, _DataType >::iterator::more().


The documentation for this class was generated from the following file:
Generated on Thu Jun 7 12:54:36 2007 for DTN Reference Implementation by  doxygen 1.5.1