Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CopyExample Class Reference
Inheritance diagram for CopyExample:
UpdateBackpointers< Unit::UNIT_ONLY >

Public Member Functions

 CopyExample (CollideArray::ResizableArray::iterator beg, CollideArray::ResizableArray::iterator end)
 
void operator() (Collidable &collidable)
 
- Public Member Functions inherited from UpdateBackpointers< Unit::UNIT_ONLY >
void updateBackpointer (Collidable &collidable)
 
void operator() (Collidable &collidable)
 

Public Attributes

CollideArray::ResizableArray::iterator examplebegin
 
CollideArray::ResizableArray::iterator exampleend
 

Detailed Description

Definition at line 166 of file collide_map.cpp.

Constructor & Destructor Documentation

CopyExample::CopyExample ( CollideArray::ResizableArray::iterator  beg,
CollideArray::ResizableArray::iterator  end 
)
inline

Definition at line 171 of file collide_map.cpp.

References examplebegin, and exampleend.

171  : CopyExample( CollideArray::ResizableArray::iterator beg, CollideArray::ResizableArray::iterator end )
172  {
173  examplebegin = beg;
174  exampleend = end;
175  }

Member Function Documentation

void CopyExample::operator() ( Collidable collidable)
inline

Definition at line 176 of file collide_map.cpp.

References examplebegin, exampleend, and UpdateBackpointers< Unit::UNIT_ONLY >::updateBackpointer().

177  {
178  assert( examplebegin != exampleend );
179  while ( !(examplebegin->radius > 0) ) {
180  ++examplebegin;
181  assert( examplebegin != exampleend );
182  }
183  collidable = *examplebegin++;
184  updateBackpointer( collidable );
185  }

Member Data Documentation

CollideArray::ResizableArray::iterator CopyExample::examplebegin

Definition at line 169 of file collide_map.cpp.

Referenced by CopyExample(), and operator()().

CollideArray::ResizableArray::iterator CopyExample::exampleend

Definition at line 170 of file collide_map.cpp.

Referenced by CopyExample(), and operator()().


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