ACE
6.1.0
|
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 |
Public Member Functions | |
ACE_String_Base_Const_Iterator (const ACE_String_Base< ACE_CHAR_T > &str, int end=0) | |
ACE_String_Base_Const_Iterator (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &iter) | |
~ACE_String_Base_Const_Iterator (void) | |
Destructor. | |
int | done (void) const |
int | next (const ACE_CHAR_T *&ch) const |
int | advance (void) |
const ACE_String_Base_Const_Iterator < ACE_CHAR_T > & | operator= (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &iter) |
const ACE_CHAR_T & | operator* (void) |
ACE_String_Base_Const_Iterator < ACE_CHAR_T > & | operator++ (void) |
ACE_String_Base_Const_Iterator < ACE_CHAR_T > | operator++ (int) |
ACE_String_Base_Const_Iterator < ACE_CHAR_T > & | operator-- (void) |
ACE_String_Base_Const_Iterator < ACE_CHAR_T > | operator-- (int) |
bool | operator== (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator!= (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator< (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator> (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator<= (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
bool | operator>= (const ACE_String_Base_Const_Iterator< ACE_CHAR_T > &rhs) const |
Private Attributes | |
const ACE_String_Base < ACE_CHAR_T > * | str_ |
Target string to iterate over. | |
size_t | index_ |
Current location in the string. |
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 |
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base< ACE_CHAR_T > & | str, |
int | end = 0 |
||
) | [inline] |
Initializing constructor
[in] | str | Target string for iterator. |
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | iter | ) | [inline] |
Copy constructor
[in] | iter | Iterator to copy. |
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::~ACE_String_Base_Const_Iterator | ( | void | ) | [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. |
int ACE_String_Base_Const_Iterator< ACE_CHAR_T >::done | ( | void | ) | const [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. |
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator!= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [inline] |
Ineqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
const ACE_CHAR_T & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator* | ( | void | ) | [inline] |
Dereference operator
ACE_String_Base_Const_Iterator< ACE_CHAR_T > & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator++ | ( | void | ) | [inline] |
Prefix operator
ACE_String_Base_Const_Iterator< ACE_CHAR_T > ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator++ | ( | int | ) | [inline] |
Postfix operator
ACE_String_Base_Const_Iterator< ACE_CHAR_T > & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator-- | ( | void | ) | [inline] |
Prefix operator
ACE_String_Base_Const_Iterator< ACE_CHAR_T > ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator-- | ( | int | ) | [inline] |
Postfix operator
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator< | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [inline] |
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator<= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [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. |
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator== | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [inline] |
Eqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator> | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [inline] |
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator>= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const [inline] |
size_t ACE_String_Base_Const_Iterator< ACE_CHAR_T >::index_ [private] |
Current location in the string.
const ACE_String_Base<ACE_CHAR_T>* ACE_String_Base_Const_Iterator< ACE_CHAR_T >::str_ [private] |
Target string to iterate over.