Module
Public Types | Public Member Functions | Static Public Attributes | List of all members
Module::Book< T > Class Template Reference

#include <Book.hpp>

Public Types

typedef std::vector< T * >::size_type page_size_type
 
typedef unsigned long size_type
 

Public Member Functions

 Book ()
 
 ~Book ()
 
T & operator[] (size_type index)
 
const T & operator[] (size_type index) const
 
T & get (size_type index)
 
const T & get (size_type index) const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
T * getPage (page_size_type index)
 
page_size_type getPageSize ()
 
page_size_type getNumPages ()
 
size_type size () const
 
size_type capacity ()
 
void push_back (const T &newVal)
 
page_size_type remainingElementsInPage (size_type index) const
 
const std::vector< T * > & getPageVec ()
 

Static Public Attributes

static const page_size_type maxPageSize = 4 * 1024
 

Member Typedef Documentation

template<class T>
typedef std::vector<T*>::size_type Module::Book< T >::page_size_type
template<class T>
typedef unsigned long Module::Book< T >::size_type

Constructor & Destructor Documentation

template<class T >
Module::Book< T >::Book ( )
template<class T >
Module::Book< T >::~Book ( )

Member Function Documentation

template<class T>
T& Module::Book< T >::back ( )
inline
template<class T>
const T& Module::Book< T >::back ( ) const
inline
template<class T>
size_type Module::Book< T >::capacity ( )
inline
template<class T>
T& Module::Book< T >::front ( )
inline
template<class T>
const T& Module::Book< T >::front ( ) const
inline
template<class T >
T & Module::Book< T >::get ( size_type  index)
template<class T >
const T & Module::Book< T >::get ( size_type  index) const
template<class T>
page_size_type Module::Book< T >::getNumPages ( )
inline
template<class T>
T* Module::Book< T >::getPage ( page_size_type  index)
inline
template<class T>
page_size_type Module::Book< T >::getPageSize ( )
inline
template<class T>
const std::vector<T*>& Module::Book< T >::getPageVec ( )
inline
template<class T>
T& Module::Book< T >::operator[] ( size_type  index)
inline
template<class T>
const T& Module::Book< T >::operator[] ( size_type  index) const
inline
template<class T>
void Module::Book< T >::push_back ( const T &  newVal)
template<class T>
page_size_type Module::Book< T >::remainingElementsInPage ( size_type  index) const
inline
template<class T>
size_type Module::Book< T >::size ( ) const
inline

Member Data Documentation

template<class T>
const page_size_type Module::Book< T >::maxPageSize = 4 * 1024
static