Very simple array container with fast access and simd memory. More...
#include <gim_array.h>
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 |
Very simple array container with fast access and simd memory.
Definition at line 43 of file gim_array.h.
Definition at line 119 of file gim_array.h.
Definition at line 126 of file gim_array.h.
Definition at line 135 of file gim_array.h.
Definition at line 174 of file gim_array.h.
Definition at line 179 of file gim_array.h.
Definition at line 194 of file gim_array.h.
Definition at line 199 of file gim_array.h.
Definition at line 107 of file gim_array.h.
void gim_array< T >::clear_memory | ( | ) | [inline] |
Definition at line 113 of file gim_array.h.
void gim_array< T >::clear_range | ( | GUINT | start_range | ) | [inline] |
Definition at line 99 of file gim_array.h.
void gim_array< T >::destroyData | ( | ) | [inline] |
Definition at line 53 of file gim_array.h.
fast erase
Definition at line 244 of file gim_array.h.
void gim_array< T >::erase_sorted | ( | GUINT | index | ) | [inline] |
Definition at line 262 of file gim_array.h.
void gim_array< T >::erase_sorted_mem | ( | GUINT | index | ) | [inline] |
Definition at line 253 of file gim_array.h.
Definition at line 184 of file gim_array.h.
Definition at line 189 of file gim_array.h.
T* gim_array< T >::get_pointer_at | ( | GUINT | i | ) | [inline] |
Definition at line 164 of file gim_array.h.
const T* gim_array< T >::get_pointer_at | ( | GUINT | i | ) | const [inline] |
Definition at line 169 of file gim_array.h.
bool gim_array< T >::growingCheck | ( | ) | [inline] |
Definition at line 81 of file gim_array.h.
Definition at line 278 of file gim_array.h.
void gim_array< T >::insert_mem | ( | GUINT | index | ) | [inline] |
Definition at line 268 of file gim_array.h.
Definition at line 145 of file gim_array.h.
T& gim_array< T >::operator[] | ( | size_t | i | ) | [inline] |
Definition at line 150 of file gim_array.h.
const T& gim_array< T >::operator[] | ( | size_t | i | ) | const [inline] |
Definition at line 154 of file gim_array.h.
Definition at line 159 of file gim_array.h.
Definition at line 160 of file gim_array.h.
Definition at line 231 of file gim_array.h.
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.
Definition at line 210 of file gim_array.h.
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.
void gim_array< T >::push_back_memcpy | ( | const T & | obj | ) | [inline] |
Definition at line 224 of file gim_array.h.
Definition at line 311 of file gim_array.h.
Definition at line 93 of file gim_array.h.
void gim_array< T >::resize | ( | GUINT | size, |
bool | call_constructor = true |
||
) | [inline] |
Definition at line 284 of file gim_array.h.
bool gim_array< T >::resizeData | ( | GUINT | newsize | ) | [inline] |
Definition at line 61 of file gim_array.h.
Definition at line 140 of file gim_array.h.
Definition at line 205 of file gim_array.h.
GUINT gim_array< T >::m_allocated_size |
Definition at line 50 of file gim_array.h.
properties
Definition at line 48 of file gim_array.h.
Definition at line 49 of file gim_array.h.