|
| uint16_t | getNbData () const |
| | Returns number of datas. More...
|
| |
| bool | hasData (uint8_t x) const |
| | Check if there is data inside. More...
|
| |
| bool | hasData (uint8_t x, uint8_t y) const |
| | Check if there is data inside. More...
|
| |
| bool | hasData (uint8_t x, uint8_t y, uint8_t z) const |
| | Check if data exist. More...
|
| |
| T * | findData (uint8_t x, uint8_t y, uint8_t z) |
| | Find data. More...
|
| |
| T const * | findData (uint8_t x, uint8_t y, uint8_t z) const |
| | Find data. More...
|
| |
| template<typename... Args> |
| bool | addData (uint8_t x, uint8_t y, uint8_t z, T *&data, Args &&... args) |
| | Add a data, don't update an existing data. More...
|
| |
| template<typename... Args> |
| bool | updateData (uint8_t x, uint8_t y, uint8_t z, T *&data, Args &&... args) |
| | Update an existing data, don't create a new one. More...
|
| |
| template<typename... Args> |
| void | putData (uint8_t x, uint8_t y, uint8_t z, T *&data, Args &&... args) |
| | Add or update a data. More...
|
| |
| bool | removeData (uint8_t x, uint8_t y, uint8_t z) |
| | Remove an existing data. More...
|
| |
| bool | removeData (uint8_t x, uint8_t y, uint8_t z, T *data) |
| | Remove an existing data. More...
|
| |
| void | serialize (std::string &str) const |
| | Serialize the structure. More...
|
| |
| size_t | unserialize (char const *str, size_t size) |
| | Unserialize str inside this. More...
|
| |
| void | shrinkToFit () |
| | Requests the sparse array to reduce its capacity to fit its size. More...
|
| |
|
| | AbstractSparseIDArray () |
| | Default constructor. More...
|
| |
| | AbstractSparseIDArray (AbstractSparseIDArray const &other) |
| | Copy constructor. More...
|
| |
| uint16_t | getId (uint8_t x, uint8_t y, uint8_t z) const |
| |
| void | setId (uint8_t x, uint8_t y, uint8_t z, uint16_t id) |
| |
| uint16_t | getNewId () |
| |
| template<typename T_Old , typename T_New > |
| void | reallocIds () |
| |
| template<typename Type > |
| void | changeId (uint16_t oldId, uint16_t newId) |
| |
| template<typename Type > |
| void | reset (Type &data) |
| |
| template<typename Type > |
| void | reset (std::unique_ptr< Type > &data) |
| |
| template<typename Type > |
| void | reset (std::shared_ptr< Type > &data) |
| |
| template<typename T_Data > |
| void | copy (T_Container< T_Data > const &other) |
| |
| template<typename T_Data > |
| void | copy (T_Container< std::unique_ptr< T_Data >> const &other) |
| |
| template<typename T_Data > |
| std::enable_if< std::is_trivially_copyable< T_Data >::value >::type | serializeContainer (std::string &str, T_Container< T_Data > const &datas) const |
| |
| template<typename T_Data > |
| std::enable_if<!std::is_trivially_copyable< T_Data >::value >::type | serializeContainer (std::string &str, T_Container< T_Data > const &datas) const |
| |
| template<typename T_Data > |
| void | serializeContainer (std::string &str, T_Container< T_Data * > const &datas) const |
| |
| template<typename T_Data > |
| void | serializeContainer (std::string &str, T_Container< std::unique_ptr< T_Data >> const &datas) const |
| |
| template<typename T_Data > |
| void | serializeContainer (std::string &str, T_Container< std::shared_ptr< T_Data >> const &datas) const |
| |
| template<typename T_Data > |
| std::enable_if< std::is_trivially_copyable< T_Data >::value >::type | serializeData (std::string &str, T_Data const &data) const |
| |
| template<typename T_Data > |
| std::enable_if<!std::is_trivially_copyable< T_Data >::value >::type | serializeData (std::string &str, T_Data const &data) const |
| |
| template<typename T_Data > |
| std::enable_if< std::is_trivially_copyable< T_Data >::value, size_t >::type | unserializeContainer (char const *str, size_t size, T_Container< T_Data > &datas) |
| |
| template<typename T_Data > |
| std::enable_if<!std::is_trivially_copyable< T_Data >::value, size_t >::type | unserializeContainer (char const *str, size_t size, T_Container< T_Data > &datas) |
| |
| template<typename T_Data > |
| size_t | unserializeContainer (char const *str, size_t size, T_Container< T_Data * > &datas) |
| |
| template<typename T_Data > |
| size_t | unserializeContainer (char const *str, size_t size, T_Container< std::unique_ptr< T_Data >> &datas) |
| |
| template<typename T_Data > |
| size_t | unserializeContainer (char const *str, size_t size, T_Container< std::shared_ptr< T_Data >> &datas) |
| |
| template<typename T_Data > |
| std::enable_if< std::is_trivially_copyable< T_Data >::value, size_t >::type | unserializeData (char const *str, size_t size, T_Data &data) |
| |
| template<typename T_Data > |
| std::enable_if<!std::is_trivially_copyable< T_Data >::value, size_t >::type | unserializeData (char const *str, size_t size, T_Data &data) |
| |
template<typename T, uint8_t T_Size, template< class... > class T_Container = std::vector>
class voxomap::AbstractSparseIDArray< T, T_Size, T_Container >
Definition at line 17 of file SparseIDArray.hpp.