#include <side_actions.hpp>

Public Member Functions | |
| iterator () | |
| iterator (side_actions::reverse_iterator const &that) | |
| iterator (const iterator &that) | |
| Copy constructor. | |
| action_ptr & | operator* () const |
| action_ptr * | operator-> () const |
| this_t & | operator++ () |
| this_t & | operator-- () |
| this_t | operator+ (int x) const |
| this_t | operator- (int x) const |
| size_t | operator- (this_t x) const |
| bool | operator< (this_t const &that) const |
| bool | operator== (this_t const &that) const |
| bool | operator!= (this_t const &that) const |
Private Types | |
| typedef action_queue::iterator | base_t |
| typedef iterator | this_t |
Private Member Functions | |
| iterator (base_t const &base, size_t turn_num, side_actions &sa) | |
| iterator (base_t const &base, size_t turn_num, side_actions::contents_t *contents) | |
| void | init () |
Private Attributes | |
| base_t | base_ |
| size_t | turn_num_ |
| contents_t * | contents_ |
Friends | |
| class | side_actions |
Definition at line 299 of file side_actions.hpp.
typedef action_queue::iterator wb::side_actions::iterator::base_t [private] |
Definition at line 303 of file side_actions.hpp.
typedef iterator wb::side_actions::iterator::this_t [private] |
Definition at line 304 of file side_actions.hpp.
| wb::side_actions::iterator::iterator | ( | ) | [inline] |
Definition at line 307 of file side_actions.hpp.
| wb::side_actions::iterator::iterator | ( | side_actions::reverse_iterator const & | that | ) | [inline, explicit] |
Definition at line 312 of file side_actions.hpp.
| wb::side_actions::iterator::iterator | ( | const iterator & | that | ) | [inline] |
Copy constructor.
If the contents_ is NULL the iterator is singular. Copying singular iterators is UB, so avoid it.
Definition at line 324 of file side_actions.hpp.
| wb::side_actions::iterator::iterator | ( | base_t const & | base, | |
| size_t | turn_num, | |||
| side_actions & | sa | |||
| ) | [inline, private] |
Definition at line 383 of file side_actions.hpp.
References init().

| wb::side_actions::iterator::iterator | ( | base_t const & | base, | |
| size_t | turn_num, | |||
| side_actions::contents_t * | contents | |||
| ) | [inline, private] |
Definition at line 387 of file side_actions.hpp.
| void wb::side_actions::iterator::init | ( | ) | [inline, private] |
Definition at line 394 of file side_actions.hpp.
References base_, contents_, wb::side_actions::end(), and turn_num_.
Referenced by iterator(), and operator++().


| bool wb::side_actions::iterator::operator!= | ( | this_t const & | that | ) | const [inline] |
Definition at line 380 of file side_actions.hpp.
| action_ptr& wb::side_actions::iterator::operator* | ( | ) | const [inline] |
Definition at line 331 of file side_actions.hpp.
References base_.
| this_t wb::side_actions::iterator::operator+ | ( | int | x | ) | const [inline] |
Definition at line 347 of file side_actions.hpp.
Referenced by operator-().

| this_t& wb::side_actions::iterator::operator++ | ( | ) | [inline] |
| size_t wb::side_actions::iterator::operator- | ( | this_t | x | ) | const [inline] |
Definition at line 359 of file side_actions.hpp.
| this_t wb::side_actions::iterator::operator- | ( | int | x | ) | const [inline] |
Definition at line 358 of file side_actions.hpp.
References operator+().

| this_t& wb::side_actions::iterator::operator-- | ( | ) | [inline] |
Definition at line 339 of file side_actions.hpp.
References base_, wb::side_actions::begin(), contents_, and turn_num_.

| action_ptr* wb::side_actions::iterator::operator-> | ( | ) | const [inline] |
Definition at line 332 of file side_actions.hpp.
References base_.
| bool wb::side_actions::iterator::operator< | ( | this_t const & | that | ) | const [inline] |
Definition at line 366 of file side_actions.hpp.
| bool wb::side_actions::iterator::operator== | ( | this_t const & | that | ) | const [inline] |
Definition at line 373 of file side_actions.hpp.
friend class side_actions [friend] |
Definition at line 302 of file side_actions.hpp.
base_t wb::side_actions::iterator::base_ [private] |
Definition at line 402 of file side_actions.hpp.
Referenced by init(), operator*(), operator++(), operator--(), operator->(), operator<(), operator==(), and wb::side_actions::queue_action().
contents_t* wb::side_actions::iterator::contents_ [private] |
Definition at line 404 of file side_actions.hpp.
Referenced by init(), operator--(), operator<(), and operator==().
size_t wb::side_actions::iterator::turn_num_ [private] |
Definition at line 403 of file side_actions.hpp.
Referenced by init(), operator--(), operator<(), operator==(), and wb::side_actions::queue_action().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:39 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |