#include <core/shm_array.h>
Public Types | |
typedef T | value_type |
typedef uint64_t | size_type |
typedef const value_type & | const_reference |
typedef allocator::pointer | pointer |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Types inherited from vistle::ShmData | |
enum | ShmType { INVALID , OBJECT , ARRAY } |
Public Member Functions | |
shm_array (const allocator &alloc=allocator()) | |
shm_array (const size_t size, const allocator &alloc=allocator()) | |
shm_array (const size_t size, const T &value, const allocator &alloc=allocator()) | |
shm_array (shm_array &&other) | |
~shm_array () | |
int | type () const |
bool | check () const |
iterator | begin () const |
iterator | end () const |
T * | data () const |
T & | operator[] (const size_t idx) |
T & | operator[] (const size_t idx) const |
T & | at (const size_t idx) |
T & | at (const size_t idx) const |
void | push_back (const T &v) |
template<class... Args> | |
void | emplace_back (Args &&...args) |
T & | back () |
T & | front () |
bool | empty () const |
void | clear () |
size_t | size () const |
void | resize (const size_t size) |
void | resize (const size_t size, const T &value) |
void | clearDimensionHint () |
void | setDimensionHint (const size_t sx, const size_t sy=1, const size_t sz=1) |
void | setExact (bool exact) |
size_t | capacity () const |
void | reserve (const size_t new_capacity) |
void | reserve_or_shrink (const size_t capacity) |
void | shrink_to_fit () |
template<class Archive > | |
void | save (Archive &ar) const |
Public Member Functions inherited from vistle::ShmData | |
ShmData (ShmType t, const std::string &name=std::string()) | |
~ShmData () | |
int | ref () const |
int | unref () const |
int | refcount () const |
Static Public Member Functions | |
static int | typeId () |
Additional Inherited Members | |
Public Attributes inherited from vistle::ShmData | |
const shm_name_t | name |
std::atomic< int > | m_refcount |
const ShmType | shmtype = INVALID |
typedef const T* vistle::shm_array< T, allocator >::const_iterator |
typedef const value_type& vistle::shm_array< T, allocator >::const_reference |
typedef T* vistle::shm_array< T, allocator >::iterator |
typedef allocator::pointer vistle::shm_array< T, allocator >::pointer |
typedef uint64_t vistle::shm_array< T, allocator >::size_type |
typedef T vistle::shm_array< T, allocator >::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void vistle::shm_array< T, allocator >::save | ( | Archive & | ar | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |