WvStreams
|
Public Member Functions | |
IterBase (const WvListBase &l) | |
Binds the iterator to the specified list. | |
void | rewind () |
Rewinds the iterator to make it point to an imaginary element preceeding the first element of the list. | |
WvLink * | next () |
Moves the iterator along the list to point to the next element. | |
WvLink * | cur () const |
Returns a pointer to the WvLink at the iterator's current location. | |
void * | vptr () const |
Returns a void pointer to the object at the iterator's current location. | |
WvLink * | find (const void *data) |
Rewinds the iterator and repositions it over the element that matches the specified value. | |
WvLink * | find_next (const void *data) |
Repositions the iterator over the element that matches the specified value. | |
IterBase (const WvListBase &l) | |
Binds the iterator to the specified list. | |
void | rewind () |
Rewinds the iterator to make it point to an imaginary element preceeding the first element of the list. | |
WvLink * | next () |
Moves the iterator along the list to point to the next element. | |
WvLink * | cur () const |
Returns a pointer to the WvLink at the iterator's current location. | |
void * | vptr () const |
Returns a void pointer to the object at the iterator's current location. | |
WvLink * | find (const void *data) |
Rewinds the iterator and repositions it over the element that matches the specified value. | |
WvLink * | find_next (const void *data) |
Repositions the iterator over the element that matches the specified value. | |
Public Attributes | |
const WvListBase * | list |
WvLink * | link |
WvLink * | prev |
Definition at line 73 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
|
inline |
Binds the iterator to the specified list.
"l" is the list
Definition at line 83 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
|
inline |
Binds the iterator to the specified list.
"l" is the list
Definition at line 83 of file include/wvlinklist.h.
|
inline |
Rewinds the iterator to make it point to an imaginary element preceeding the first element of the list.
Definition at line 90 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
Referenced by find(), WvList< T >::unlink_first(), WvDBusMsg::variant_end(), and wvtcl_encode().
|
inline |
Moves the iterator along the list to point to the next element.
If the iterator had just been rewound, it now points to the first element of the list.
Returns: the current WvLink pointer, or null if there were no more elements remaining in the traversal sequence
Definition at line 103 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
Referenced by find(), WvList< T >::unlink_first(), WvDBusMsg::variant_end(), and wvtcl_encode().
|
inline |
Returns a pointer to the WvLink at the iterator's current location.
Returns: the current WvLink pointer, or null if there were no more elements remaining in the traversal sequence
Definition at line 111 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
|
inline |
Returns a void pointer to the object at the iterator's current location.
You should almost never need this. Use ptr() instead.
Definition at line 118 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
WvLink * WvListBase::IterBase::find | ( | const void * | data | ) |
Rewinds the iterator and repositions it over the element that matches the specified value.
Uses pointer equality (object identity) as the criteria for finding the matching element.
In order to locate multiple matching elements, first call find() and then use find_next().
Returns: the current WvLink pointer, or null if no such element was found
Definition at line 58 of file wvlinklist.cc.
References next(), and rewind().
Referenced by WvList< T >::unlink().
WvLink * WvListBase::IterBase::find_next | ( | const void * | data | ) |
Repositions the iterator over the element that matches the specified value.
Uses pointer equality (object identity) as the criteria for finding the matching element.
Returns: the current WvLink pointer, or null if no such element was found
Definition at line 66 of file wvlinklist.cc.
|
inline |
Rewinds the iterator to make it point to an imaginary element preceeding the first element of the list.
Definition at line 90 of file include/wvlinklist.h.
|
inline |
Moves the iterator along the list to point to the next element.
If the iterator had just been rewound, it now points to the first element of the list.
Returns: the current WvLink pointer, or null if there were no more elements remaining in the traversal sequence
Definition at line 103 of file include/wvlinklist.h.
|
inline |
Returns a pointer to the WvLink at the iterator's current location.
Returns: the current WvLink pointer, or null if there were no more elements remaining in the traversal sequence
Definition at line 111 of file include/wvlinklist.h.
|
inline |
Returns a void pointer to the object at the iterator's current location.
You should almost never need this. Use ptr() instead.
Definition at line 118 of file include/wvlinklist.h.
WvLink * WvListBase::IterBase::find | ( | const void * | data | ) |
Rewinds the iterator and repositions it over the element that matches the specified value.
Uses pointer equality (object identity) as the criteria for finding the matching element.
In order to locate multiple matching elements, first call find() and then use find_next().
Returns: the current WvLink pointer, or null if no such element was found
WvLink * WvListBase::IterBase::find_next | ( | const void * | data | ) |
Repositions the iterator over the element that matches the specified value.
Uses pointer equality (object identity) as the criteria for finding the matching element.
Returns: the current WvLink pointer, or null if no such element was found
const WvListBase * WvListBase::IterBase::list |
Definition at line 76 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
WvLink * WvListBase::IterBase::link |
Definition at line 77 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.
WvLink * WvListBase::IterBase::prev |
Definition at line 77 of file debian/libwvstreams-dev/usr/include/wvstreams/wvlinklist.h.