indexable Class Template Reference

#include <indexable.hpp>

Inherited by dictionary< float, wchar_t >, dictionary< gsgl::data::broker_creator *, gsgl::string >, dictionary< gsgl::data::dictionary< int, int >, int >, dictionary< gsgl::platform::texture *, wchar_t >, dictionary< gsgl::scenegraph::material_impl *, gsgl::string >, dictionary< gsgl::scenegraph::mesh *, gsgl::string >, dictionary< gsgl::string, gsgl::string >, dictionary< T *, gsgl::string >, dictionary< unsigned int, gsgl::string >, dictionary, list, pqueue, simple_array, string, list< gsgl::data::config_record >, list< gsgl::data::log_target * >, list< gsgl::data_object * >, list< gsgl::framework::package * >, list< gsgl::framework::pkg_library * >, list< gsgl::framework::pkg_scenery * >, list< gsgl::framework::pkg_vehicle * >, list< gsgl::framework::tabbox::tab_rec >, list< gsgl::framework::treebox_node * >, list< gsgl::io::directory >, list< gsgl::io::file >, list< gsgl::platform::shader_base * >, list< gsgl::platform::vertex_buffer * >, list< gsgl::scenegraph::node * >, list< gsgl::string >, pqueue< gsgl::scenegraph::light *, float >, pqueue< gsgl::scenegraph::node *, float >, simple_array< char >, simple_array< float >, simple_array< gsgl::data::dictionary< T, I >::dict_node * >, simple_array< gsgl::data::pair * >, simple_array< gsgl::framework::treebox_node * >, simple_array< gsgl::framework::widget * >, simple_array< gsgl::physics::vehicle_module * >, simple_array< gsgl::platform::buffer_pool::bucket * >, simple_array< gsgl::platform::buffer_pool::object_record >, simple_array< gsgl::scenegraph::light * >, simple_array< gsgl::scenegraph::model * >, simple_array< gsgl::scenegraph::model_part * >, simple_array< gsgl::scenegraph::node * >, simple_array< gsgl::scenegraph::submesh * >, simple_array< gsgl::string * >, simple_array< I >, simple_array< unsigned char >, simple_array< unsigned int >, and simple_array< wchar_t >.

List of all members.


Detailed Description

template<typename T, typename I>
class gsgl::data::indexable< T, I >

A collection whose elements may be indexed by a particular type.

Definition at line 48 of file indexable.hpp.


Public Member Functions

virtual bool contains_index (const I &) const =0
 indexable ()
virtual T & item (const I &index)=0
virtual const T & item (const I &index) const =0
T & operator[] (const I &index)
const T & operator[] (const I &index) const
virtual ~indexable ()

Constructor & Destructor Documentation

indexable (  )  [inline]

Definition at line 66 of file indexable.hpp.

~indexable (  )  [inline, virtual]

Definition at line 71 of file indexable.hpp.


Member Function Documentation

virtual bool contains_index ( const I &   )  const [pure virtual]

Implemented in dictionary.

virtual T& item ( const I &  index  )  [pure virtual]

Implemented in dictionary.

virtual const T& item ( const I &  index  )  const [pure virtual]

T& operator[] ( const I &  index  )  [inline]

Definition at line 58 of file indexable.hpp.

const T& operator[] ( const I &  index  )  const [inline]

Definition at line 57 of file indexable.hpp.


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

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5