OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions
PodVector< T > Class Template Reference

#include <pod_vector.hh>

Public Types

typedef T value_type
 
typedef T & reference
 
typedef const T & const_reference
 
typedef T * iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 
typedef const T * const_iterator
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 

Public Member Functions

 PodVector ()
 
 PodVector (const PodVector< T > &rhs)
 
 ~PodVector ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
size_t capacity () const
 
size_t size () const
 
reference front ()
 
const_reference front () const
 
void push_back (const_reference val)
 
void pop_back ()
 
void clear ()
 
void reserve (size_t n)
 
reference operator[] (size_t index)
 
const_reference operator[] (size_t index) const
 
T * data ()
 
const T * data () const
 
void raw_set (T *data, size_t n)
 

Detailed Description

template<typename T>
class ost::PodVector< T >

vector container that treats its data as POD - even if it isn't in the strict sense.

Definition at line 38 of file pod_vector.hh.

Member Typedef Documentation

typedef const T* const_iterator

Definition at line 57 of file pod_vector.hh.

typedef const T& const_reference

Definition at line 54 of file pod_vector.hh.

typedef std::reverse_iterator<const_iterator> const_reverse_iterator

Definition at line 58 of file pod_vector.hh.

typedef T* iterator

Definition at line 55 of file pod_vector.hh.

typedef T& reference

Definition at line 53 of file pod_vector.hh.

typedef std::reverse_iterator<iterator> reverse_iterator

Definition at line 56 of file pod_vector.hh.

typedef T value_type

Definition at line 52 of file pod_vector.hh.

Constructor & Destructor Documentation

PodVector ( )
inline

Definition at line 40 of file pod_vector.hh.

PodVector ( const PodVector< T > &  rhs)
inline

Definition at line 41 of file pod_vector.hh.

~PodVector ( )
inline

Definition at line 46 of file pod_vector.hh.

Member Function Documentation

iterator begin ( )
inline

Definition at line 60 of file pod_vector.hh.

const_iterator begin ( ) const
inline

Definition at line 62 of file pod_vector.hh.

size_t capacity ( ) const
inline

Definition at line 76 of file pod_vector.hh.

void clear ( )
inline

Definition at line 102 of file pod_vector.hh.

T* data ( )
inline

Definition at line 121 of file pod_vector.hh.

const T* data ( ) const
inline

Definition at line 123 of file pod_vector.hh.

iterator end ( )
inline

Definition at line 61 of file pod_vector.hh.

const_iterator end ( ) const
inline

Definition at line 63 of file pod_vector.hh.

reference front ( )
inline

Definition at line 79 of file pod_vector.hh.

const_reference front ( ) const
inline

Definition at line 83 of file pod_vector.hh.

reference operator[] ( size_t  index)
inline

Definition at line 113 of file pod_vector.hh.

const_reference operator[] ( size_t  index) const
inline

Definition at line 117 of file pod_vector.hh.

void pop_back ( )
inline

Definition at line 97 of file pod_vector.hh.

void push_back ( const_reference  val)
inline

Definition at line 88 of file pod_vector.hh.

void raw_set ( T *  data,
size_t  n 
)
inline

Definition at line 125 of file pod_vector.hh.

reverse_iterator rbegin ( )
inline

Definition at line 65 of file pod_vector.hh.

const_reverse_iterator rbegin ( ) const
inline

Definition at line 67 of file pod_vector.hh.

reverse_iterator rend ( )
inline

Definition at line 66 of file pod_vector.hh.

const_reverse_iterator rend ( ) const
inline

Definition at line 71 of file pod_vector.hh.

void reserve ( size_t  n)
inline

Definition at line 108 of file pod_vector.hh.

size_t size ( ) const
inline

Definition at line 77 of file pod_vector.hh.


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