w_list_const_i< T, LOCK > Class Template Reference

Inherits w_list_i< T, LOCK >< T, LOCK >.

Inheritance diagram for w_list_const_i< T, LOCK >:

Inheritance graph
[legend]
Collaboration diagram for w_list_const_i< T, LOCK >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, class LOCK>
class w_list_const_i< T, LOCK >

Const iterator for a list.

A const version of w_list_i. The pointers it returns are const pointers to list members.

Definition at line 511 of file w_list.h.

Public Member Functions

NORET w_list_const_i ()
NORET w_list_const_i (const w_list_t< T, LOCK > &l)
NORET ~w_list_const_i ()
void reset (const w_list_t< T, LOCK > &l)
const T * next ()
const T * curr () const
 Return the current item in the list.


Member Function Documentation

template<class T, class LOCK>
const T* w_list_const_i< T, LOCK >::next (  )  [inline]

Adjust the iterator to point to the next item in the list and return a pointer to that next item. Returns NULL if there is no next item. Note that this depends on the results of the previous next() call, but what we do with curr() from the prior call is immaterial.

Reimplemented from w_list_i< T, LOCK >.

Definition at line 522 of file w_list.h.

References w_list_i< T, LOCK >::next().

Here is the call graph for this function:

template<class T, class LOCK>
const T* w_list_const_i< T, LOCK >::curr (  )  const [inline]

Return the current item in the list.

Returns NULL if there is no current item. There is no current item until next() is called at least once, thus, one must call next() to get the first item.

Reimplemented from w_list_i< T, LOCK >.

Definition at line 523 of file w_list.h.

References w_list_i< T, LOCK >::curr().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Wed Jul 7 17:22:43 2010 for Shore Storage Manager by  doxygen 1.4.7