unit_map::iterator_counter Struct Reference

Used so unit_map can keep a count of iterators and clean invalid pointers when no iterators exist. More...

Collaboration diagram for unit_map::iterator_counter:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 iterator_counter ()
 iterator_counter (const unit_map *map)
 iterator_counter (const iterator_counter &i)
iterator_counteroperator= (const iterator_counter &that)
 ~iterator_counter ()

Private Attributes

const unit_mapmap_


Detailed Description

Used so unit_map can keep a count of iterators and clean invalid pointers when no iterators exist.

Every iterator and accessor has a counter instance.

Definition at line 47 of file unit_map.hpp.


Constructor & Destructor Documentation

unit_map::iterator_counter::iterator_counter (  )  [inline]

Definition at line 48 of file unit_map.hpp.

unit_map::iterator_counter::iterator_counter ( const unit_map map  )  [inline]

Definition at line 49 of file unit_map.hpp.

References unit_map::add_iter(), and map_.

unit_map::iterator_counter::iterator_counter ( const iterator_counter i  )  [inline]

Definition at line 52 of file unit_map.hpp.

References unit_map::add_iter(), and map_.

unit_map::iterator_counter::~iterator_counter (  )  [inline]

Definition at line 68 of file unit_map.hpp.

References map_, and unit_map::remove_iter().


Member Function Documentation

iterator_counter& unit_map::iterator_counter::operator= ( const iterator_counter that  )  [inline]

Definition at line 56 of file unit_map.hpp.

References unit_map::add_iter(), map_, and unit_map::remove_iter().


Member Data Documentation

Definition at line 70 of file unit_map.hpp.

Referenced by iterator_counter(), operator=(), and ~iterator_counter().


The documentation for this struct was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs