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 CHAR | value_type |
| typedef const CHAR & | reference |
| typedef const CHAR * | pointer |
| typedef ptrdiff_t | difference_type |
Public Member Functions | |
| ACE_String_Base_Const_Iterator (const ACE_String_Base< CHAR > &str, int end=0) | |
| ACE_String_Base_Const_Iterator (const ACE_String_Base_Const_Iterator< CHAR > &iter) | |
| ~ACE_String_Base_Const_Iterator (void) | |
| Destructor. | |
| int | done (void) const |
| int | next (const CHAR *&ch) const |
| int | advance (void) |
| const ACE_String_Base_Const_Iterator < CHAR > & | operator= (const ACE_String_Base_Const_Iterator< CHAR > &iter) |
| const CHAR & | operator* (void) |
| ACE_String_Base_Const_Iterator < CHAR > & | operator++ (void) |
| ACE_String_Base_Const_Iterator < CHAR > | operator++ (int) |
| ACE_String_Base_Const_Iterator < CHAR > & | operator-- (void) |
| ACE_String_Base_Const_Iterator < CHAR > | operator-- (int) |
| bool | operator== (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
| bool | operator!= (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
| bool | operator< (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
| bool | operator> (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
| bool | operator<= (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
| bool | operator>= (const ACE_String_Base_Const_Iterator< CHAR > &rhs) const |
Private Attributes | |
| const ACE_String_Base< CHAR > * | 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< CHAR >::difference_type |
Definition at line 742 of file String_Base.h.
| typedef std::bidirectional_iterator_tag ACE_String_Base_Const_Iterator< CHAR >::iterator_category |
Definition at line 738 of file String_Base.h.
| typedef const CHAR* ACE_String_Base_Const_Iterator< CHAR >::pointer |
Definition at line 741 of file String_Base.h.
| typedef const CHAR& ACE_String_Base_Const_Iterator< CHAR >::reference |
Definition at line 740 of file String_Base.h.
| typedef const CHAR ACE_String_Base_Const_Iterator< CHAR >::value_type |
Definition at line 739 of file String_Base.h.
| ACE_String_Base_Const_Iterator< CHAR >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base< CHAR > & | str, | |
| int | end = 0 | |||
| ) | [inline] |
| ACE_String_Base_Const_Iterator< CHAR >::ACE_String_Base_Const_Iterator | ( | const ACE_String_Base_Const_Iterator< CHAR > & | iter | ) | [inline] |
| ACE_String_Base_Const_Iterator< CHAR >::~ACE_String_Base_Const_Iterator | ( | void | ) | [inline] |
Destructor.
Definition at line 330 of file String_Base.inl.
00331 { 00332 ACE_TRACE ("ACE_String_Base_Const_Iterator<CHAR>::~ACE_String_Base_Const_Iterator"); 00333 }
| int ACE_String_Base_Const_Iterator< CHAR >::advance | ( | void | ) | [inline] |
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< CHAR >::done | ( | void | ) | const [inline] |
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< CHAR >::next | ( | const CHAR *& | ch | ) | const [inline] |
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< CHAR >::operator!= | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
Ineqaulity comparison operator
| [in] | rhs | Right-hand side of operator. |
Definition at line 412 of file String_Base.inl.
| const CHAR & ACE_String_Base_Const_Iterator< CHAR >::operator* | ( | void | ) | [inline] |
Dereference operator
Definition at line 344 of file String_Base.inl.
| ACE_String_Base_Const_Iterator< CHAR > ACE_String_Base_Const_Iterator< CHAR >::operator++ | ( | int | ) | [inline] |
Postfix operator
Definition at line 365 of file String_Base.inl.
00366 { 00367 ACE_TRACE ("ACE_String_Base_Const_Iterator<CHAR>::operator ++ (int)"); 00368 00369 ACE_String_Base_Const_Iterator <CHAR> temp (*this); 00370 00371 if (0 == this->done ()) 00372 ++ this->index_; 00373 00374 return temp; 00375 }
| ACE_String_Base_Const_Iterator< CHAR > & ACE_String_Base_Const_Iterator< CHAR >::operator++ | ( | void | ) | [inline] |
Prefix operator
Definition at line 353 of file String_Base.inl.
| ACE_String_Base_Const_Iterator< CHAR > ACE_String_Base_Const_Iterator< CHAR >::operator-- | ( | int | ) | [inline] |
Postfix operator
Definition at line 391 of file String_Base.inl.
00392 { 00393 ACE_TRACE ("ACE_String_Base_Const_Iterator<CHAR>::operator -- (int)"); 00394 00395 ACE_String_Base_Const_Iterator <CHAR> temp (*this); 00396 00397 if (0 < this->index_) 00398 -- this->index_; 00399 00400 return temp; 00401 }
| ACE_String_Base_Const_Iterator< CHAR > & ACE_String_Base_Const_Iterator< CHAR >::operator-- | ( | void | ) | [inline] |
Prefix operator
Definition at line 379 of file String_Base.inl.
| bool ACE_String_Base_Const_Iterator< CHAR >::operator< | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
Definition at line 419 of file String_Base.inl.
| bool ACE_String_Base_Const_Iterator< CHAR >::operator<= | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
Definition at line 440 of file String_Base.inl.
| const ACE_String_Base_Const_Iterator< CHAR > & ACE_String_Base_Const_Iterator< CHAR >::operator= | ( | const ACE_String_Base_Const_Iterator< CHAR > & | iter | ) | [inline] |
Assignment operator
| [in] | iter | Right-hand side of operator. |
Definition at line 565 of file String_Base.cpp.
| bool ACE_String_Base_Const_Iterator< CHAR >::operator== | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
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< CHAR >::operator> | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
Definition at line 426 of file String_Base.inl.
| bool ACE_String_Base_Const_Iterator< CHAR >::operator>= | ( | const ACE_String_Base_Const_Iterator< CHAR > & | rhs | ) | const [inline] |
Definition at line 433 of file String_Base.inl.
size_t ACE_String_Base_Const_Iterator< CHAR >::index_ [private] |
Current location in the string.
Definition at line 846 of file String_Base.h.
const ACE_String_Base<CHAR>* ACE_String_Base_Const_Iterator< CHAR >::str_ [private] |
Target string to iterate over.
Definition at line 843 of file String_Base.h.
1.6.1