Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends

wb::side_actions::iterator Class Reference

#include <side_actions.hpp>

Collaboration diagram for wb::side_actions::iterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 iterator ()
 iterator (side_actions::reverse_iterator const &that)
 iterator (const iterator &that)
 Copy constructor.
action_ptroperator* () const
action_ptroperator-> () const
this_toperator++ ()
this_toperator-- ()
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_tcontents_

Friends

class side_actions

Detailed Description

Definition at line 299 of file side_actions.hpp.


Member Typedef Documentation

typedef action_queue::iterator wb::side_actions::iterator::base_t [private]

Definition at line 303 of file side_actions.hpp.

Definition at line 304 of file side_actions.hpp.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

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.


Member Function Documentation

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++().

Here is the call graph for this function:

Here is the caller graph for this function:

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-().

Here is the caller graph for this function:

this_t& wb::side_actions::iterator::operator++ (  )  [inline]

Definition at line 333 of file side_actions.hpp.

References base_, and init().

Here is the call graph for this function:

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+().

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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.

References base_, contents_, and turn_num_.

bool wb::side_actions::iterator::operator== ( this_t const &  that  )  const [inline]

Definition at line 373 of file side_actions.hpp.

References base_, contents_, and turn_num_.


Friends And Related Function Documentation

friend class side_actions [friend]

Definition at line 302 of file side_actions.hpp.


Member Data Documentation

Definition at line 404 of file side_actions.hpp.

Referenced by init(), operator--(), operator<(), and operator==().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:26:39 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs