OpenStructure
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< iteratorreverse_iterator
 
typedef const T * const_iterator
 
typedef std::reverse_iterator< const_iteratorconst_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

◆ const_iterator

typedef const T* const_iterator

Definition at line 57 of file pod_vector.hh.

◆ const_reference

typedef const T& const_reference

Definition at line 54 of file pod_vector.hh.

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> const_reverse_iterator

Definition at line 58 of file pod_vector.hh.

◆ iterator

typedef T* iterator

Definition at line 55 of file pod_vector.hh.

◆ reference

typedef T& reference

Definition at line 53 of file pod_vector.hh.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> reverse_iterator

Definition at line 56 of file pod_vector.hh.

◆ value_type

typedef T value_type

Definition at line 52 of file pod_vector.hh.

Constructor & Destructor Documentation

◆ PodVector() [1/2]

PodVector ( )
inline

Definition at line 40 of file pod_vector.hh.

◆ PodVector() [2/2]

PodVector ( const PodVector< T > &  rhs)
inline

Definition at line 41 of file pod_vector.hh.

◆ ~PodVector()

~PodVector ( )
inline

Definition at line 46 of file pod_vector.hh.

Member Function Documentation

◆ begin() [1/2]

iterator begin ( )
inline

Definition at line 60 of file pod_vector.hh.

◆ begin() [2/2]

const_iterator begin ( ) const
inline

Definition at line 62 of file pod_vector.hh.

◆ capacity()

size_t capacity ( ) const
inline

Definition at line 76 of file pod_vector.hh.

◆ clear()

void clear ( )
inline

Definition at line 102 of file pod_vector.hh.

◆ data() [1/2]

T* data ( )
inline

Definition at line 121 of file pod_vector.hh.

◆ data() [2/2]

const T* data ( ) const
inline

Definition at line 123 of file pod_vector.hh.

◆ end() [1/2]

iterator end ( )
inline

Definition at line 61 of file pod_vector.hh.

◆ end() [2/2]

const_iterator end ( ) const
inline

Definition at line 63 of file pod_vector.hh.

◆ front() [1/2]

reference front ( )
inline

Definition at line 79 of file pod_vector.hh.

◆ front() [2/2]

const_reference front ( ) const
inline

Definition at line 83 of file pod_vector.hh.

◆ operator[]() [1/2]

reference operator[] ( size_t  index)
inline

Definition at line 113 of file pod_vector.hh.

◆ operator[]() [2/2]

const_reference operator[] ( size_t  index) const
inline

Definition at line 117 of file pod_vector.hh.

◆ pop_back()

void pop_back ( )
inline

Definition at line 97 of file pod_vector.hh.

◆ push_back()

void push_back ( const_reference  val)
inline

Definition at line 88 of file pod_vector.hh.

◆ raw_set()

void raw_set ( T *  data,
size_t  n 
)
inline

Definition at line 125 of file pod_vector.hh.

◆ rbegin() [1/2]

reverse_iterator rbegin ( )
inline

Definition at line 65 of file pod_vector.hh.

◆ rbegin() [2/2]

const_reverse_iterator rbegin ( ) const
inline

Definition at line 67 of file pod_vector.hh.

◆ rend() [1/2]

reverse_iterator rend ( )
inline

Definition at line 66 of file pod_vector.hh.

◆ rend() [2/2]

const_reverse_iterator rend ( ) const
inline

Definition at line 71 of file pod_vector.hh.

◆ reserve()

void reserve ( size_t  n)
inline

Definition at line 108 of file pod_vector.hh.

◆ size()

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: