Classes | Public Types | Public Member Functions | Public Attributes | List of all members
ion::SGrid< T > Struct Template Reference

#include <SGrid.h>

Collaboration diagram for ion::SGrid< T >:
Collaboration graph
[legend]

Classes

class  SConstRowAccess
 
class  SRowAccess
 

Public Types

typedef std::vector< T >::iterator iterator
 
typedef std::vector< T >::const_iterator const_iterator
 

Public Member Functions

 SGrid (vec2i const &dimensions=vec2i())
 
 SGrid (T const &init, vec2i const &dimensions=vec2i())
 
virtual void Allocate ()
 
virtual void Allocate (T const &value)
 
virtual bool const InBounds (vec2i const Index) const
 
virtual bool const InBounds (int const X, int const Y) const
 
virtual TGet (vec2i const Index)
 
virtual T const & Get (vec2i const Index) const
 
virtual TGet (int const X, int const Y)
 
virtual T const & Get (int const X, int const Y) const
 
virtual SRowAccess operator[] (int const X)
 
virtual SConstRowAccess operator[] (int const X) const
 
virtual Toperator[] (vec2i const &index)
 
virtual T const & operator[] (vec2i const &index) const
 
virtual iterator begin ()
 
virtual iterator end ()
 
virtual const_iterator begin () const
 
virtual const_iterator end () const
 

Public Attributes

vector< TValues
 
vec2i Dimensions
 

Member Typedef Documentation

template<typename T>
typedef std::vector<T>::const_iterator ion::SGrid< T >::const_iterator
template<typename T>
typedef std::vector<T>::iterator ion::SGrid< T >::iterator

Constructor & Destructor Documentation

template<typename T>
ion::SGrid< T >::SGrid ( vec2i const &  dimensions = vec2i())
inline
template<typename T>
ion::SGrid< T >::SGrid ( T const &  init,
vec2i const &  dimensions = vec2i() 
)
inline

Member Function Documentation

template<typename T>
virtual void ion::SGrid< T >::Allocate ( )
inlinevirtual
template<typename T>
virtual void ion::SGrid< T >::Allocate ( T const &  value)
inlinevirtual
template<typename T>
virtual iterator ion::SGrid< T >::begin ( )
inlinevirtual
template<typename T>
virtual const_iterator ion::SGrid< T >::begin ( ) const
inlinevirtual
template<typename T>
virtual iterator ion::SGrid< T >::end ( )
inlinevirtual
template<typename T>
virtual const_iterator ion::SGrid< T >::end ( ) const
inlinevirtual
template<typename T>
virtual T& ion::SGrid< T >::Get ( vec2i const  Index)
inlinevirtual
template<typename T>
virtual T const& ion::SGrid< T >::Get ( vec2i const  Index) const
inlinevirtual
template<typename T>
virtual T& ion::SGrid< T >::Get ( int const  X,
int const  Y 
)
inlinevirtual
template<typename T>
virtual T const& ion::SGrid< T >::Get ( int const  X,
int const  Y 
) const
inlinevirtual
template<typename T>
virtual bool const ion::SGrid< T >::InBounds ( vec2i const  Index) const
inlinevirtual
template<typename T>
virtual bool const ion::SGrid< T >::InBounds ( int const  X,
int const  Y 
) const
inlinevirtual
template<typename T>
virtual SRowAccess ion::SGrid< T >::operator[] ( int const  X)
inlinevirtual
template<typename T>
virtual SConstRowAccess ion::SGrid< T >::operator[] ( int const  X) const
inlinevirtual
template<typename T>
virtual T& ion::SGrid< T >::operator[] ( vec2i const &  index)
inlinevirtual
template<typename T>
virtual T const& ion::SGrid< T >::operator[] ( vec2i const &  index) const
inlinevirtual

Member Data Documentation

template<typename T>
vec2i ion::SGrid< T >::Dimensions
template<typename T>
vector<T> ion::SGrid< T >::Values

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