#include <Container.hpp>
Static Public Member Functions | |
static bool | CompareArray (T **const array1, T **const array2, const size_t &commonSize) |
Compare array. | |
static void | CopyArray (T **&dest, T **const src, size_t &destSize, const size_t &srcSize) |
This method copy the srcSize data from src to dest, resizing dest if required. | |
static void | CopyArray (T **dest, T **const src, const size_t &destSize, const size_t &srcSize) |
This method copy the srcSize data from src to dest, but doesn't resizing dest if it's too small (Copy is then limited to destSize elements). | |
static void | CopyPtr (T *&dest, T *const &src) |
This method copy (can also move depending on policy) the given data. | |
static T * | DefaultElement () |
This method returns a default constructed element. | |
static T & | DefaultSubElement () |
This method returns a default constructed element or can throw. | |
static void | DeleteArray (T **const array, const size_t ¤tSize) |
Delete the array. | |
static void | DuplicateArray (T **&dest, T **const src, size_t &destSize, const size_t &srcSize) |
This method duplicate array and clone every member in it resizing dest if required. | |
static T ** | Insert (T **const array, const size_t ¤tSize, const size_t &newSize, const size_t &index, T *const &elementToInsert) |
static T ** | NonDestructiveAlloc (T **const array, const size_t ¤tSize, const size_t &newSize, T *const &fillWith) |
static void | Remove (T *const data) |
Remove on item from the array. | |
static size_t | ReverseSearch (T **const array, const size_t &arraySize, T *const &valueToLookFor) |
This method search for the last element that match the given element and returns arraySize if not found. | |
static size_t | Search (T **const array, const size_t &arraySize, T *const &valueToLookFor) |
This method search for the first element that match the given element and returns arraySize if not found The type must have a defined "== operator". | |
static size_t | SearchRef (const T **array, const size_t &arraySize, const T &valueToLookFor) |
This method search for the given element and returns arraySize if not found. |
static bool Container::PrivateGenericImplementation::MemoryListPolicy< T >::CompareArray | ( | T **const | array1, | |
T **const | array2, | |||
const size_t & | commonSize | |||
) | [static] |
Compare array.
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::CopyArray | ( | T **& | dest, | |
T **const | src, | |||
size_t & | destSize, | |||
const size_t & | srcSize | |||
) | [static] |
This method copy the srcSize data from src to dest, resizing dest if required.
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::CopyArray | ( | T ** | dest, | |
T **const | src, | |||
const size_t & | destSize, | |||
const size_t & | srcSize | |||
) | [static] |
This method copy the srcSize data from src to dest, but doesn't resizing dest if it's too small (Copy is then limited to destSize elements).
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::CopyPtr | ( | T *& | dest, | |
T *const & | src | |||
) | [static] |
This method copy (can also move depending on policy) the given data.
static T* Container::PrivateGenericImplementation::MemoryListPolicy< T >::DefaultElement | ( | ) | [static] |
This method returns a default constructed element.
static T& Container::PrivateGenericImplementation::MemoryListPolicy< T >::DefaultSubElement | ( | ) | [static] |
This method returns a default constructed element or can throw.
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::DeleteArray | ( | T **const | array, | |
const size_t & | currentSize | |||
) | [static] |
Delete the array.
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::DuplicateArray | ( | T **& | dest, | |
T **const | src, | |||
size_t & | destSize, | |||
const size_t & | srcSize | |||
) | [static] |
This method duplicate array and clone every member in it resizing dest if required.
static T* * Container::PrivateGenericImplementation::MemoryListPolicy< T >::Insert | ( | T **const | array, | |
const size_t & | currentSize, | |||
const size_t & | newSize, | |||
const size_t & | index, | |||
T *const & | elementToInsert | |||
) | [static] |
static T** Container::PrivateGenericImplementation::MemoryListPolicy< T >::NonDestructiveAlloc | ( | T **const | array, | |
const size_t & | currentSize, | |||
const size_t & | newSize, | |||
T *const & | fillWith | |||
) | [static] |
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::Remove | ( | T *const | data | ) | [static] |
Remove on item from the array.
static size_t Container::PrivateGenericImplementation::MemoryListPolicy< T >::ReverseSearch | ( | T **const | array, | |
const size_t & | arraySize, | |||
T *const & | valueToLookFor | |||
) | [static] |
This method search for the last element that match the given element and returns arraySize if not found.
static size_t Container::PrivateGenericImplementation::MemoryListPolicy< T >::Search | ( | T **const | array, | |
const size_t & | arraySize, | |||
T *const & | valueToLookFor | |||
) | [static] |
This method search for the first element that match the given element and returns arraySize if not found The type must have a defined "== operator".
static size_t Container::PrivateGenericImplementation::MemoryListPolicy< T >::SearchRef | ( | const T ** | array, | |
const size_t & | arraySize, | |||
const T & | valueToLookFor | |||
) | [static] |
This method search for the given element and returns arraySize if not found.