ACE
6.4.2
|
Iterator class for the ACE_String_Base class. More...
#include <String_Base.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef ACE_CHAR_T | value_type |
typedef ACE_CHAR_T & | reference |
typedef ACE_CHAR_T * | pointer |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
ACE_String_Base_Iterator (ACE_String_Base< ACE_CHAR_T > &str, int end=0) | |
ACE_String_Base_Iterator (const ACE_String_Base_Iterator< ACE_CHAR_T > &iter) | |
~ACE_String_Base_Iterator (void) | |
Destructor. More... | |
int | done (void) const |
int | next (ACE_CHAR_T *&ch) const |
int | advance (void) |
const ACE_String_Base_Iterator< ACE_CHAR_T > & | operator= (const ACE_String_Base_Iterator< ACE_CHAR_T > &iter) |
ACE_CHAR_T & | operator* (void) |
ACE_String_Base_Iterator< ACE_CHAR_T > & | operator++ (void) |
ACE_String_Base_Iterator< ACE_CHAR_T > | operator++ (int) |
ACE_String_Base_Iterator< ACE_CHAR_T > & | operator-- (void) |
ACE_String_Base_Iterator< ACE_CHAR_T > | operator-- (int) |
bool | operator== (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator!= (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator< (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator> (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator<= (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator>= (const ACE_String_Base_Iterator< ACE_CHAR_T > &rhs) const |
Private Attributes | |
ACE_String_Base< ACE_CHAR_T > * | str_ |
Target string to iterate over. More... | |
size_t | index_ |
Current location in the string. More... | |
Iterator class for the ACE_String_Base class.
This class is an implementation of an iterator that allows client applications it iterator over the contents of a string. Currently, now this iterator fall under the std::bidirectional_iterator_tag category. Future versions of the class will support the operations of std::random_access_iterator_tag.
typedef ptrdiff_t ACE_String_Base_Iterator< ACE_CHAR_T >::difference_type |
typedef std::bidirectional_iterator_tag ACE_String_Base_Iterator< ACE_CHAR_T >::iterator_category |
typedef ACE_CHAR_T* ACE_String_Base_Iterator< ACE_CHAR_T >::pointer |
typedef ACE_CHAR_T& ACE_String_Base_Iterator< ACE_CHAR_T >::reference |
typedef ACE_CHAR_T ACE_String_Base_Iterator< ACE_CHAR_T >::value_type |
|
inline |
Initializing constructor
[in] | str | Target string for iterator. |
|
inline |
Copy constructor
[in] | iter | Iterator to copy. |
|
inline |
Destructor.
int ACE_String_Base_Iterator< ACE_CHAR_T >::advance | ( | void | ) |
Move to the next character in the string.
0 | All characters have been seen. |
1 | Items still remain to be seen. |
|
inline |
Test if the iterator has seen all characters.
0 | Characters still remain. |
1 | All characters have been seen. |
int ACE_String_Base_Iterator< ACE_CHAR_T >::next | ( | ACE_CHAR_T *& | ch | ) | const |
Get the current character.
[out] | ch | The current character. |
0 | All characters have been seen. |
1 | Items still remain to be seen. |
|
inline |
Ineqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
|
inline |
Dereference operator
|
inline |
Prefix operator
|
inline |
Postfix operator
|
inline |
Prefix operator
|
inline |
Postfix operator
|
inline |
|
inline |
const ACE_String_Base_Iterator< ACE_CHAR_T > & ACE_String_Base_Iterator< ACE_CHAR_T >::operator= | ( | const ACE_String_Base_Iterator< ACE_CHAR_T > & | iter | ) |
Assignment operator
[in] | iter | Right-hand side of operator. |
|
inline |
Eqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
|
inline |
|
inline |
|
private |
Current location in the string.
|
private |
Target string to iterate over.