ToolMap
Loading...
Searching...
No Matches
agg::pod_bvector< T, S > Class Template Reference

Public Types

enum  block_scale_e { block_shift = S , block_size = 1 << block_shift , block_mask = block_size - 1 }
 
typedef T value_type
 

Public Member Functions

 pod_bvector (unsigned block_ptr_inc)
 
 pod_bvector (const pod_bvector< T, S > &v)
 
const pod_bvector< T, S > & operator= (const pod_bvector< T, S > &v)
 
void remove_all ()
 
void clear ()
 
void free_all ()
 
void free_tail (unsigned size)
 
void add (const T &val)
 
void push_back (const T &val)
 
void modify_last (const T &val)
 
void remove_last ()
 
int allocate_continuous_block (unsigned num_elements)
 
void add_array (const T *ptr, unsigned num_elem)
 
template<class DataAccessor >
void add_data (DataAccessor &data)
 
void cut_at (unsigned size)
 
unsigned size () const
 
const Toperator[] (unsigned i) const
 
Toperator[] (unsigned i)
 
const Tat (unsigned i) const
 
Tat (unsigned i)
 
T value_at (unsigned i) const
 
const Tcurr (unsigned idx) const
 
Tcurr (unsigned idx)
 
const Tprev (unsigned idx) const
 
Tprev (unsigned idx)
 
const Tnext (unsigned idx) const
 
Tnext (unsigned idx)
 
const Tlast () const
 
Tlast ()
 
unsigned byte_size () const
 
void serialize (int8u *ptr) const
 
void deserialize (const int8u *data, unsigned byte_size)
 
void deserialize (unsigned start, const T &empty_val, const int8u *data, unsigned byte_size)
 
template<class ByteAccessor >
void deserialize (ByteAccessor data)
 
template<class ByteAccessor >
void deserialize (unsigned start, const T &empty_val, ByteAccessor data)
 
const Tblock (unsigned nb) const
 

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