Clarisse 4.0 SP14 SDK
4.0.5.14.0
|
Public Member Functions | |
CoreArray () | |
CoreArray (const T *data, unsigned int size) | |
CoreArray (const CoreArray< T > &other) | |
CoreArray (CoreArray< T > &&other) | |
CoreArray (std::initializer_list< T > list) | |
CoreArray (const unsigned int &size) | |
~CoreArray () | |
void | append (const CoreBasicArray< T > &other) |
void | append (CoreBasicArray< T > &&other) |
const unsigned int & | get_count () const |
void | remove_all () |
void | resize (const unsigned int &size) |
void | resize (const unsigned int &size, const bool &preserve) |
void | resize (const unsigned int &size, const CoreArrayResizeMode &mode) |
void | copy_from (const CoreBasicArray< T > &other) |
void | copy_from (const CoreList< T > &list) |
void | copy_to (CoreArray< T > &dest) const |
void | get_list (CoreList< T > &list) const |
void | set_list (const CoreList< T > &list) |
T & | operator[] (const unsigned int &index) |
const T & | operator[] (const unsigned int &index) const |
CoreArray< T > & | operator= (const CoreArray< T > &other) |
CoreArray< T > & | operator= (CoreArray< T > &&other) |
const T * | get_data () const |
T * | get_data () |
size_t | get_memory_size () const |
const CoreClassInfo & | get_class_info () const |
![]() | |
CoreBasicArray () | |
Empty constructor. | |
CoreBasicArray (T *array, unsigned int count, unsigned int capacity=0) | |
Default constructor. | |
CoreBasicArray (const CoreBasicArray< T > &src) | |
Copy constructor. | |
CoreBasicArray (CoreBasicArray< T > &&src) noexcept | |
Move constructor. | |
![]() | |
bool | is_kindof (const CoreClassInfo &cinfo) const |
Static Public Member Functions | |
static const CoreClassInfo & | class_info () |
static bool | ___class_destructor__ (void *instance, const bool &is_array) |
Additional Inherited Members | |
![]() | |
static constexpr unsigned int | INVALID_INDEX = CORE_INVALID_INDEX |
For backward compatibility. Use CORE_INVALID_INDEX instead. | |
Default constructor.
Copy constructor.
[in] | other | array to copy |
Move constructor.
[in] | other | array to move |
Initializer list constructor.
Create an array with the given size.
[in] | size | size of the array |
void CoreArray< T >::append | ( | const CoreBasicArray< T > & | other | ) |
Append the given array to this array.
The array data is reallocated and resized to receive the values of the other array. If the array to be appended is empty, the data isn't reallocated nor resized.
[in] | other | array to append |
void CoreArray< T >::append | ( | CoreBasicArray< T > && | other | ) |
Append the given array to this array by moving it.
The array data is reallocated and resized to receive the values of the other array. If the array to be appended is empty, the data isn't reallocated nor resized.
[in] | other | array to append, emptied after moved |
void CoreArray< T >::copy_from | ( | const CoreBasicArray< T > & | other | ) |
Copy the given array into this array.
[in] | other | array to copy |
Copy the given CoreList into this array
[in] | list | source list |
Return the array as a CoreList.
[out] | list | destination list |
size_t CoreArray< T >::get_memory_size | ( | void | ) | const |
Return the number of bytes used by the array and it's content.
void CoreArray< T >::resize | ( | const unsigned int & | size, |
const bool & | preserve | ||
) |
Resize the array to the specified size.
[in] | size | new size of the array |
[in] | perserve | if true, previous content will be kept after the resize |
void CoreArray< T >::resize | ( | const unsigned int & | size, |
const CoreArrayResizeMode & | mode | ||
) |
Resize the array to the specified size.
[in] | size | new size of the array |
[in] | mode | tells which part of the data has to be kept: none, left or right |