World::Scene::Iterator< T > Class Template Reference

#include <Scene.hh>

Collaboration diagram for World::Scene::Iterator< T >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T>
class World::Scene::Iterator< T >

Template class for simplified scene iterators.

Definition at line 216 of file Scene.hh.


Public Member Functions

 Iterator (const Scene &S)
const T * Next ()
template<>
 Iterator (const Scene &S)
template<>
 Iterator (const Scene &S)
template<>
 Iterator (const Scene &S)
template<>
 Iterator (const Scene &S)

Protected Attributes

std::vector< T * >::const_iterator Cur
std::vector< T * >::const_iterator End

Friends

class Scene

Constructor & Destructor Documentation

template<typename T>
World::Scene::Iterator< T >::Iterator ( const Scene S  ) 

Initialize iterator from Scene.


Member Function Documentation

template<typename T>
const T* World::Scene::Iterator< T >::Next (  )  [inline]

Get next item

Definition at line 228 of file Scene.hh.

References World::Scene::Iterator< T >::Cur, and World::Scene::Iterator< T >::End.

Referenced by Testcases::Scene(), and Render::Raytracer::TraceLights().

Here is the caller graph for this function:


Member Data Documentation

template<typename T>
std::vector<T *>::const_iterator World::Scene::Iterator< T >::Cur [protected]

Current vector element

Definition at line 219 of file Scene.hh.

Referenced by World::Scene::Iterator< T >::Next().

template<typename T>
std::vector<T *>::const_iterator World::Scene::Iterator< T >::End [protected]

Element after the last element of vector

Definition at line 221 of file Scene.hh.

Referenced by World::Scene::Iterator< T >::Next().


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

Generated on Wed Mar 12 00:36:55 2008 for blaRAY by  doxygen 1.5.5