# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CSnappedVector Class Template Reference

a container that is like a vector, but snapped to (1<<snapPower) byte memory pages. More...

#include <ps_attrib.h>

List of all members.

Public Types

typedef T * iterator
typedef const T * const_iterator
typedef T value_type

Public Methods

 CSnappedVector ()
 ~CSnappedVector ()
iterator begin (void)
const_iterator begin (void) const
iterator end (void)
const_iterator end (void) const
T & operator[] (uint index)
const T & operator[] (uint index) const
void reserve (uint capacity)
 set a new usable size. More...

void resize (uint size)
void push_back (const T &t)
void pop_back ()
uint capacity () const
uint size () const
void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serialization. More...

void clear ()

Protected Attributes

uint8_Start
T * _Tab
uint32 _Size
uint32 _Capacity


Detailed Description

template<class T, const uint snapPower = 5>
class NL3D::CSnappedVector< T, snapPower >

a container that is like a vector, but snapped to (1<<snapPower) byte memory pages.

Definition at line 44 of file ps_attrib.h.


Member Typedef Documentation

template<class T, const uint snapPower = 5>
typedef const T* NL3D::CSnappedVector::const_iterator
 

Definition at line 48 of file ps_attrib.h.

Referenced by begin, and end.

template<class T, const uint snapPower = 5>
typedef T* NL3D::CSnappedVector::iterator
 

Definition at line 47 of file ps_attrib.h.

Referenced by begin, end, reserve, resize, and ~CSnappedVector.

template<class T, const uint snapPower = 5>
typedef T NL3D::CSnappedVector::value_type
 

Definition at line 49 of file ps_attrib.h.


Constructor & Destructor Documentation

template<class T, const uint snapPower = 5>
NL3D::CSnappedVector< T, snapPower >::CSnappedVector   [inline]
 

Definition at line 51 of file ps_attrib.h.

References _Capacity, _Size, _Start, and _Tab.

template<class T, const uint snapPower = 5>
NL3D::CSnappedVector< T, snapPower >::~CSnappedVector   [inline]
 

Definition at line 52 of file ps_attrib.h.

References _Capacity, _Size, _Start, _Tab, iterator, and nlassert.


Member Function Documentation

template<class T, const uint snapPower = 5>
const_iterator NL3D::CSnappedVector< T, snapPower >::begin void    const [inline]
 

Definition at line 62 of file ps_attrib.h.

References _Tab, and const_iterator.

template<class T, const uint snapPower = 5>
iterator NL3D::CSnappedVector< T, snapPower >::begin void    [inline]
 

Definition at line 61 of file ps_attrib.h.

References _Tab, and iterator.

template<class T, const uint snapPower = 5>
uint NL3D::CSnappedVector< T, snapPower >::capacity   const [inline]
 

Definition at line 179 of file ps_attrib.h.

References _Capacity.

Referenced by reserve.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::clear   [inline]
 

Definition at line 209 of file ps_attrib.h.

References resize.

Referenced by serial.

template<class T, const uint snapPower = 5>
const_iterator NL3D::CSnappedVector< T, snapPower >::end void    const [inline]
 

Definition at line 64 of file ps_attrib.h.

References _Size, _Tab, and const_iterator.

template<class T, const uint snapPower = 5>
iterator NL3D::CSnappedVector< T, snapPower >::end void    [inline]
 

Definition at line 63 of file ps_attrib.h.

References _Size, _Tab, and iterator.

Referenced by reserve.

template<class T, const uint snapPower = 5>
const T& NL3D::CSnappedVector< T, snapPower >::operator[] uint    index const [inline]
 

Definition at line 67 of file ps_attrib.h.

References _Size, _Tab, index, and nlassert.

template<class T, const uint snapPower = 5>
T& NL3D::CSnappedVector< T, snapPower >::operator[] uint    index [inline]
 

Definition at line 66 of file ps_attrib.h.

References _Size, _Tab, index, and nlassert.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::pop_back   [inline]
 

Definition at line 171 of file ps_attrib.h.

References _Size, _Tab, and nlassert.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::push_back const T &    t [inline]
 

Definition at line 140 of file ps_attrib.h.

References _Capacity, _Size, _Tab, nlassert, reserve, and t.

Referenced by serial.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::reserve uint    capacity [inline]
 

set a new usable size.

Definition at line 70 of file ps_attrib.h.

References _Capacity, _Size, _Start, _Tab, capacity, end, iterator, nlassert, and src.

Referenced by push_back, resize, and serial.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::resize uint    size [inline]
 

Definition at line 114 of file ps_attrib.h.

References _Capacity, _Size, _Tab, iterator, nlassert, reserve, and size.

Referenced by clear.

template<class T, const uint snapPower = 5>
void NL3D::CSnappedVector< T, snapPower >::serial NLMISC::IStream   f throw (NLMISC::EStream) [inline]
 

serialization.

Definition at line 183 of file ps_attrib.h.

References _Capacity, _Size, _Tab, clear, push_back, reserve, and size.

template<class T, const uint snapPower = 5>
uint NL3D::CSnappedVector< T, snapPower >::size   const [inline]
 

Definition at line 180 of file ps_attrib.h.

References _Size.

Referenced by resize, and serial.


Member Data Documentation

template<class T, const uint snapPower = 5>
uint32 NL3D::CSnappedVector::_Capacity [protected]
 

Definition at line 216 of file ps_attrib.h.

Referenced by capacity, CSnappedVector, push_back, reserve, resize, serial, and ~CSnappedVector.

template<class T, const uint snapPower = 5>
uint32 NL3D::CSnappedVector::_Size [protected]
 

Definition at line 215 of file ps_attrib.h.

Referenced by CSnappedVector, end, operator[], pop_back, push_back, reserve, resize, serial, size, and ~CSnappedVector.

template<class T, const uint snapPower = 5>
uint8* NL3D::CSnappedVector::_Start [protected]
 

Definition at line 213 of file ps_attrib.h.

Referenced by CSnappedVector, reserve, and ~CSnappedVector.

template<class T, const uint snapPower = 5>
T* NL3D::CSnappedVector::_Tab [protected]
 

Definition at line 214 of file ps_attrib.h.

Referenced by begin, CSnappedVector, end, operator[], pop_back, push_back, reserve, resize, serial, and ~CSnappedVector.


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