Public Member Functions
gim_array< T > Class Template Reference

Very simple array container with fast access and simd memory. More...

#include <gim_array.h>

List of all members.

Public Member Functions

T & at (GUINT i)
const T & at (GUINT i) const
T & back ()
const T & back () const
void clear ()
void clear_memory ()
void clear_range (GUINT start_range)
void destroyData ()
void erase (GUINT index)
 fast erase
void erase_sorted (GUINT index)
void erase_sorted_mem (GUINT index)
T & front ()
const T & front () const
T * get_pointer_at (GUINT i)
const T * get_pointer_at (GUINT i) const
 gim_array ()
 gim_array (GUINT reservesize)
bool growingCheck ()
void insert (const T &obj, GUINT index)
void insert_mem (GUINT index)
GUINT max_size () const
T & operator[] (size_t i)
const T & operator[] (size_t i) const
T * pointer ()
const T * pointer () const
void pop_back ()
void pop_back_mem ()
 Simply decrease the m_size, doesn't call the deleted element destructor.
void push_back (const T &obj)
void push_back_mem ()
 Simply increase the m_size, doesn't call the new element constructor.
void push_back_memcpy (const T &obj)
void refit ()
bool reserve (GUINT size)
void resize (GUINT size, bool call_constructor=true)
bool resizeData (GUINT newsize)
GUINT size () const
void swap (GUINT i, GUINT j)
 ~gim_array ()

Public Attributes

T * m_data
GUINT m_size
GUINT m_allocated_size

Detailed Description

template<typename T>
class gim_array< T >

Very simple array container with fast access and simd memory.

Definition at line 43 of file gim_array.h.


Constructor & Destructor Documentation

template<typename T>
gim_array< T >::gim_array ( ) [inline]

Definition at line 119 of file gim_array.h.

template<typename T>
gim_array< T >::gim_array ( GUINT  reservesize) [inline]

Definition at line 126 of file gim_array.h.

template<typename T>
gim_array< T >::~gim_array ( ) [inline]

Definition at line 135 of file gim_array.h.


Member Function Documentation

template<typename T>
T& gim_array< T >::at ( GUINT  i) [inline]

Definition at line 174 of file gim_array.h.

template<typename T>
const T& gim_array< T >::at ( GUINT  i) const [inline]

Definition at line 179 of file gim_array.h.

template<typename T>
T& gim_array< T >::back ( ) [inline]

Definition at line 194 of file gim_array.h.

template<typename T>
const T& gim_array< T >::back ( ) const [inline]

Definition at line 199 of file gim_array.h.

template<typename T>
void gim_array< T >::clear ( ) [inline]

Definition at line 107 of file gim_array.h.

template<typename T>
void gim_array< T >::clear_memory ( ) [inline]

Definition at line 113 of file gim_array.h.

template<typename T>
void gim_array< T >::clear_range ( GUINT  start_range) [inline]

Definition at line 99 of file gim_array.h.

template<typename T>
void gim_array< T >::destroyData ( ) [inline]

Definition at line 53 of file gim_array.h.

template<typename T>
void gim_array< T >::erase ( GUINT  index) [inline]

fast erase

Definition at line 244 of file gim_array.h.

template<typename T>
void gim_array< T >::erase_sorted ( GUINT  index) [inline]

Definition at line 262 of file gim_array.h.

template<typename T>
void gim_array< T >::erase_sorted_mem ( GUINT  index) [inline]

Definition at line 253 of file gim_array.h.

template<typename T>
T& gim_array< T >::front ( ) [inline]

Definition at line 184 of file gim_array.h.

template<typename T>
const T& gim_array< T >::front ( ) const [inline]

Definition at line 189 of file gim_array.h.

template<typename T>
T* gim_array< T >::get_pointer_at ( GUINT  i) [inline]

Definition at line 164 of file gim_array.h.

template<typename T>
const T* gim_array< T >::get_pointer_at ( GUINT  i) const [inline]

Definition at line 169 of file gim_array.h.

template<typename T>
bool gim_array< T >::growingCheck ( ) [inline]

Definition at line 81 of file gim_array.h.

template<typename T>
void gim_array< T >::insert ( const T &  obj,
GUINT  index 
) [inline]

Definition at line 278 of file gim_array.h.

template<typename T>
void gim_array< T >::insert_mem ( GUINT  index) [inline]

Definition at line 268 of file gim_array.h.

template<typename T>
GUINT gim_array< T >::max_size ( ) const [inline]

Definition at line 145 of file gim_array.h.

template<typename T>
T& gim_array< T >::operator[] ( size_t  i) [inline]

Definition at line 150 of file gim_array.h.

template<typename T>
const T& gim_array< T >::operator[] ( size_t  i) const [inline]

Definition at line 154 of file gim_array.h.

template<typename T>
T* gim_array< T >::pointer ( ) [inline]

Definition at line 159 of file gim_array.h.

template<typename T>
const T* gim_array< T >::pointer ( ) const [inline]

Definition at line 160 of file gim_array.h.

template<typename T>
void gim_array< T >::pop_back ( ) [inline]

Definition at line 231 of file gim_array.h.

template<typename T>
void gim_array< T >::pop_back_mem ( ) [inline]

Simply decrease the m_size, doesn't call the deleted element destructor.

Definition at line 238 of file gim_array.h.

template<typename T>
void gim_array< T >::push_back ( const T &  obj) [inline]

Definition at line 210 of file gim_array.h.

template<typename T>
void gim_array< T >::push_back_mem ( ) [inline]

Simply increase the m_size, doesn't call the new element constructor.

Definition at line 218 of file gim_array.h.

template<typename T>
void gim_array< T >::push_back_memcpy ( const T &  obj) [inline]

Definition at line 224 of file gim_array.h.

template<typename T>
void gim_array< T >::refit ( ) [inline]

Definition at line 311 of file gim_array.h.

template<typename T>
bool gim_array< T >::reserve ( GUINT  size) [inline]

Definition at line 93 of file gim_array.h.

template<typename T>
void gim_array< T >::resize ( GUINT  size,
bool  call_constructor = true 
) [inline]

Definition at line 284 of file gim_array.h.

template<typename T>
bool gim_array< T >::resizeData ( GUINT  newsize) [inline]

Definition at line 61 of file gim_array.h.

template<typename T>
GUINT gim_array< T >::size ( ) const [inline]

Definition at line 140 of file gim_array.h.

template<typename T>
void gim_array< T >::swap ( GUINT  i,
GUINT  j 
) [inline]

Definition at line 205 of file gim_array.h.


Member Data Documentation

template<typename T>
GUINT gim_array< T >::m_allocated_size

Definition at line 50 of file gim_array.h.

template<typename T>
T* gim_array< T >::m_data

properties

Definition at line 48 of file gim_array.h.

template<typename T>
GUINT gim_array< T >::m_size

Definition at line 49 of file gim_array.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


bullet
Author(s): Erwin Coumans, ROS package maintained by Tully Foote
autogenerated on Wed Oct 31 2012 07:54:33