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.
Definition at line 734 of file String_Base.h.
typedef ptrdiff_t ACE_String_Base_Const_Iterator< ACE_CHAR_T >::difference_type |
Definition at line 742 of file String_Base.h.
typedef std::bidirectional_iterator_tag ACE_String_Base_Const_Iterator< ACE_CHAR_T >::iterator_category |
Definition at line 738 of file String_Base.h.
typedef const ACE_CHAR_T* ACE_String_Base_Const_Iterator< ACE_CHAR_T >::pointer |
Definition at line 741 of file String_Base.h.
typedef const ACE_CHAR_T& ACE_String_Base_Const_Iterator< ACE_CHAR_T >::reference |
Definition at line 740 of file String_Base.h.
typedef const ACE_CHAR_T ACE_String_Base_Const_Iterator< ACE_CHAR_T >::value_type |
Definition at line 739 of file String_Base.h.
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base< ACE_CHAR_T > & | str, | |
int | end = 0 | |||
) |
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | iter | ) |
ACE_String_Base_Const_Iterator< ACE_CHAR_T >::~ACE_String_Base_Const_Iterator | ( | void | ) |
Destructor.
Definition at line 330 of file String_Base.inl.
{ ACE_TRACE ("ACE_String_Base_Const_Iterator<ACE_CHAR_T>::~ACE_String_Base_Const_Iterator"); }
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. |
Definition at line 547 of file String_Base.cpp.
int ACE_String_Base_Const_Iterator< ACE_CHAR_T >::done | ( | void | ) | const |
Test if the iterator has seen all characters.
0 | Characters still remain. | |
1 | All characters have been seen. |
Definition at line 336 of file String_Base.inl.
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. |
Definition at line 530 of file String_Base.cpp.
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator!= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Ineqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
Definition at line 412 of file String_Base.inl.
const ACE_CHAR_T & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator* | ( | void | ) |
Dereference operator
Definition at line 344 of file String_Base.inl.
ACE_String_Base_Const_Iterator< ACE_CHAR_T > & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator++ | ( | void | ) |
Prefix operator
Definition at line 353 of file String_Base.inl.
ACE_String_Base_Const_Iterator< ACE_CHAR_T > ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator++ | ( | int | ) |
Postfix operator
Definition at line 365 of file String_Base.inl.
{ ACE_TRACE ("ACE_String_Base_Const_Iterator<ACE_CHAR_T>::operator ++ (int)"); ACE_String_Base_Const_Iterator <ACE_CHAR_T> temp (*this); if (0 == this->done ()) ++ this->index_; return temp; }
ACE_String_Base_Const_Iterator< ACE_CHAR_T > & ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator-- | ( | void | ) |
Prefix operator
Definition at line 379 of file String_Base.inl.
ACE_String_Base_Const_Iterator< ACE_CHAR_T > ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator-- | ( | int | ) |
Postfix operator
Definition at line 391 of file String_Base.inl.
{ ACE_TRACE ("ACE_String_Base_Const_Iterator<ACE_CHAR_T>::operator -- (int)"); ACE_String_Base_Const_Iterator <ACE_CHAR_T> temp (*this); if (0 < this->index_) -- this->index_; return temp; }
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator< | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Definition at line 419 of file String_Base.inl.
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator<= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Definition at line 440 of file String_Base.inl.
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. |
Definition at line 565 of file String_Base.cpp.
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator== | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Eqaulity comparison operator
[in] | rhs | Right-hand side of operator. |
Definition at line 405 of file String_Base.inl.
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator> | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Definition at line 426 of file String_Base.inl.
bool ACE_String_Base_Const_Iterator< ACE_CHAR_T >::operator>= | ( | const ACE_String_Base_Const_Iterator< ACE_CHAR_T > & | rhs | ) | const |
Definition at line 433 of file String_Base.inl.
size_t ACE_String_Base_Const_Iterator< ACE_CHAR_T >::index_ [private] |
Current location in the string.
Definition at line 846 of file String_Base.h.
const ACE_String_Base<ACE_CHAR_T>* ACE_String_Base_Const_Iterator< ACE_CHAR_T >::str_ [private] |
Target string to iterate over.
Definition at line 843 of file String_Base.h.