ACE
6.3.3
|
Const iterator class for the ACE_String_Base class. More...
#include <String_Base.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef const ACE_CHAR_T | value_type |
typedef const ACE_CHAR_T & | reference |
typedef const ACE_CHAR_T * | pointer |
typedef ptrdiff_t | difference_type |
Private Attributes | |
const ACE_String_Base< ACE_CHAR_T > * | str_ |
Target string to iterate over. More... | |
size_t | index_ |
Current location in the string. More... | |
Const 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_Const_Iterator< ACE_CHAR_T >::difference_type |
typedef std::bidirectional_iterator_tag ACE_String_Base_Const_Iterator< ACE_CHAR_T >::iterator_category |
typedef const ACE_CHAR_T* ACE_String_Base_Const_Iterator< ACE_CHAR_T >::pointer |
typedef const ACE_CHAR_T& ACE_String_Base_Const_Iterator< ACE_CHAR_T >::reference |
typedef const ACE_CHAR_T ACE_String_Base_Const_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_Const_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_Const_Iterator< ACE_CHAR_T >::next | ( | const 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_Const_Iterator< ACE_CHAR_T > & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator= | ( | const ACE_String_Base_Const_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.