fawkes::Exception::iterator Class Reference
Message iterator for exceptions. More...
#include <core/exception.h>
Public Member Functions | |
| iterator (const iterator &i) | |
| Copy constructor. | |
| iterator () | |
| Plain constructor. | |
| iterator & | operator++ () |
| Prefix ++ operator. | |
| iterator | operator++ (int inc) |
| Postfix ++ operator. | |
| bool | operator== (const iterator &i) const |
| Check equality. | |
| bool | operator!= (const iterator &i) const |
| Check inequality. | |
| const char * | operator* () const |
| Get current message. | |
| iterator & | operator= (const iterator &i) |
| Assignment operator. | |
Friends | |
| class | Exception |
Detailed Description
Message iterator for exceptions.This iterator allows for iterating over all messages carried by an Exception.
Definition at line 68 of file exception.h.
Constructor & Destructor Documentation
| fawkes::Exception::iterator::iterator | ( | const iterator & | i | ) |
| fawkes::Exception::iterator::iterator | ( | ) |
Plain constructor.
Creates a new invalid iterator (same as Exception::end()).
Definition at line 679 of file exception.cpp.
Member Function Documentation
| bool fawkes::Exception::iterator::operator!= | ( | const iterator & | i | ) | const |
Check inequality.
- Parameters:
-
i iterator to compare to
- Returns:
- true, if iterators point to different messages, false otherwise
Definition at line 738 of file exception.cpp.
| const char * fawkes::Exception::iterator::operator* | ( | ) | const |
Get current message.
Get message at current position. Returns NULL for the invalid ieterator.
- Returns:
- message or NULL if iterator is invalid
Definition at line 749 of file exception.cpp.
References fawkes::Exception::message_list_t::msg.
| Exception::iterator fawkes::Exception::iterator::operator++ | ( | int | inc | ) |
Postfix ++ operator.
- Parameters:
-
inc used to denote postfix operator
- Returns:
- copy of iterator before advancing.
Definition at line 712 of file exception.cpp.
References fawkes::Exception::message_list_t::next.
| Exception::iterator & fawkes::Exception::iterator::operator++ | ( | ) |
Prefix ++ operator.
- Returns:
- reference to this iterator after advancing.
Definition at line 698 of file exception.cpp.
References fawkes::Exception::message_list_t::next.
| Exception::iterator & fawkes::Exception::iterator::operator= | ( | const iterator & | i | ) |
Assignment operator.
- Returns:
- reference to this iterator.
Definition at line 764 of file exception.cpp.
| bool fawkes::Exception::iterator::operator== | ( | const iterator & | i | ) | const |
Check equality.
- Parameters:
-
i iterator to compare to
- Returns:
- true, if iterators point to the same message, false otherwise
Definition at line 727 of file exception.cpp.
The documentation for this class was generated from the following files:
- src/libs/core/exception.h
- src/libs/core/exception.cpp

