Container::PrivateGenericImplementation::MemoryListPolicy< T > Struct Template Reference

#include <Container.hpp>

List of all members.


Detailed Description

template<typename T>
struct Container::PrivateGenericImplementation::MemoryListPolicy< T >

The memory policy interface for index list.


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 &currentSize)
 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 &currentSize, const size_t &newSize, const size_t &index, T *const &elementToInsert)
static T ** NonDestructiveAlloc (T **const array, const size_t &currentSize, 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.


Member Function Documentation

template<typename T>
static bool Container::PrivateGenericImplementation::MemoryListPolicy< T >::CompareArray ( T **const  array1,
T **const  array2,
const size_t &  commonSize 
) [static]

Compare array.

template<typename T>
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.

Warning:
dest must not be NULL

template<typename T>
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).

template<typename T>
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.

template<typename T>
static T* Container::PrivateGenericImplementation::MemoryListPolicy< T >::DefaultElement (  )  [static]

This method returns a default constructed element.

template<typename T>
static T& Container::PrivateGenericImplementation::MemoryListPolicy< T >::DefaultSubElement (  )  [static]

This method returns a default constructed element or can throw.

template<typename T>
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::DeleteArray ( T **const  array,
const size_t &  currentSize 
) [static]

Delete the array.

template<typename T>
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.

Warning:
dest must not be NULL

template<typename T>
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]

template<typename T>
static T** Container::PrivateGenericImplementation::MemoryListPolicy< T >::NonDestructiveAlloc ( T **const  array,
const size_t &  currentSize,
const size_t &  newSize,
T *const &  fillWith 
) [static]

template<typename T>
static void Container::PrivateGenericImplementation::MemoryListPolicy< T >::Remove ( T *const  data  )  [static]

Remove on item from the array.

template<typename T>
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.

template<typename T>
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".

template<typename T>
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.


The documentation for this struct was generated from the following file:

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is