Very simple array container with fast access and simd memory. More...
#include <gim_array.h>
Public Member Functions | |
const T & | at (GUINT i) const |
T & | at (GUINT i) |
const T & | back () const |
T & | back () |
void | clear () |
void | clear_memory () |
void | clear_range (GUINT start_range) |
void | erase (GUINT index) |
fast erase | |
void | erase_sorted (GUINT index) |
void | erase_sorted_mem (GUINT index) |
const T & | front () const |
T & | front () |
const T * | get_pointer_at (GUINT i) const |
T * | get_pointer_at (GUINT i) |
gim_array (GUINT reservesize) | |
gim_array () | |
void | insert (const T &obj, GUINT index) |
void | insert_mem (GUINT index) |
GUINT | max_size () const |
const T & | operator[] (size_t i) const |
T & | operator[] (size_t i) |
const T * | pointer () const |
T * | pointer () |
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) |
GUINT | size () const |
void | swap (GUINT i, GUINT j) |
~gim_array () | |
void | destroyData () |
bool | growingCheck () |
bool | resizeData (GUINT newsize) |
Public Attributes | |
GUINT | m_allocated_size |
T * | m_data |
GUINT | m_size |
Very simple array container with fast access and simd memory.
Definition at line 43 of file gim_array.h.
Definition at line 123 of file gim_array.h.
Definition at line 130 of file gim_array.h.
Definition at line 139 of file gim_array.h.
const T& gim_array< T >::at | ( | GUINT | i | ) | const [inline] |
Definition at line 183 of file gim_array.h.
T& gim_array< T >::at | ( | GUINT | i | ) | [inline] |
Definition at line 178 of file gim_array.h.
const T& gim_array< T >::back | ( | ) | const [inline] |
Definition at line 203 of file gim_array.h.
T& gim_array< T >::back | ( | ) | [inline] |
Definition at line 198 of file gim_array.h.
void gim_array< T >::clear | ( | ) | [inline] |
Definition at line 111 of file gim_array.h.
void gim_array< T >::clear_memory | ( | ) | [inline] |
Definition at line 117 of file gim_array.h.
void gim_array< T >::clear_range | ( | GUINT | start_range | ) | [inline] |
Definition at line 103 of file gim_array.h.
void gim_array< T >::destroyData | ( | ) | [inline] |
protected operations
Definition at line 55 of file gim_array.h.
void gim_array< T >::erase | ( | GUINT | index | ) | [inline] |
fast erase
Definition at line 248 of file gim_array.h.
void gim_array< T >::erase_sorted | ( | GUINT | index | ) | [inline] |
Definition at line 266 of file gim_array.h.
void gim_array< T >::erase_sorted_mem | ( | GUINT | index | ) | [inline] |
Definition at line 257 of file gim_array.h.
const T& gim_array< T >::front | ( | ) | const [inline] |
Definition at line 193 of file gim_array.h.
T& gim_array< T >::front | ( | ) | [inline] |
Definition at line 188 of file gim_array.h.
const T* gim_array< T >::get_pointer_at | ( | GUINT | i | ) | const [inline] |
Definition at line 173 of file gim_array.h.
T* gim_array< T >::get_pointer_at | ( | GUINT | i | ) | [inline] |
Definition at line 168 of file gim_array.h.
bool gim_array< T >::growingCheck | ( | ) | [inline] |
Definition at line 83 of file gim_array.h.
void gim_array< T >::insert | ( | const T & | obj, | |
GUINT | index | |||
) | [inline] |
Definition at line 282 of file gim_array.h.
void gim_array< T >::insert_mem | ( | GUINT | index | ) | [inline] |
Definition at line 272 of file gim_array.h.
GUINT gim_array< T >::max_size | ( | ) | const [inline] |
Definition at line 149 of file gim_array.h.
const T& gim_array< T >::operator[] | ( | size_t | i | ) | const [inline] |
Definition at line 158 of file gim_array.h.
T& gim_array< T >::operator[] | ( | size_t | i | ) | [inline] |
Definition at line 154 of file gim_array.h.
const T* gim_array< T >::pointer | ( | ) | const [inline] |
Definition at line 164 of file gim_array.h.
T* gim_array< T >::pointer | ( | ) | [inline] |
Definition at line 163 of file gim_array.h.
void gim_array< T >::pop_back | ( | ) | [inline] |
Definition at line 235 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 242 of file gim_array.h.
void gim_array< T >::push_back | ( | const T & | obj | ) | [inline] |
Definition at line 214 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 222 of file gim_array.h.
void gim_array< T >::push_back_memcpy | ( | const T & | obj | ) | [inline] |
Definition at line 228 of file gim_array.h.
void gim_array< T >::refit | ( | ) | [inline] |
Definition at line 315 of file gim_array.h.
bool gim_array< T >::reserve | ( | GUINT | size | ) | [inline] |
public operations
Definition at line 97 of file gim_array.h.
void gim_array< T >::resize | ( | GUINT | size, | |
bool | call_constructor = true | |||
) | [inline] |
Definition at line 288 of file gim_array.h.
bool gim_array< T >::resizeData | ( | GUINT | newsize | ) | [inline] |
Definition at line 63 of file gim_array.h.
GUINT gim_array< T >::size | ( | ) | const [inline] |
Definition at line 144 of file gim_array.h.
void gim_array< T >::swap | ( | GUINT | i, | |
GUINT | j | |||
) | [inline] |
Definition at line 209 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.