Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin > Struct Template Reference

#include <Container.hpp>

List of all members.


Detailed Description

template<typename T, typename CloneMixin = CloneAsNew<T>>
struct Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >

The default memory policy interface for plain old data.


Public Types

typedef const TptrconstPtr
typedef T * Tptr

Static Public Member Functions

static bool CompareArray (T **const array1, T **const array2, const size_t &commonSize)
 Compare array The type must have a defined "== operator".
static void CopyArray (T **&dest, T **const src, size_t &destSize, const size_t &srcSize)
static void CopyArray (T **dest, T **const src, const size_t &destSize, const size_t &srcSize)
static void CopyPtr (T *&dest, T *const &src)
static Tptr DefaultElement ()
 This method returns a default constructed element.
static T & DefaultSubElement ()
 This method returns a default constructed element or can throw.
static void DeleteArray (Tptr *const array, const size_t &currentSize)
 Delete the array.
static void DuplicateArray (T **&dest, T **const src, size_t &destSize, const size_t &srcSize)
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 The type must have a defined "== operator".
static size_t Search (T **const array, const size_t &arraySize, T *const &valueToLookFor)
 This method search for the given element and returns arraySize if not found The type must have a defined "== operator".
static size_t SearchRef (const Tptr *array, const size_t &arraySize, const T &valueToLookFor)
 This method search for the given element and returns arraySize if not found.


Member Typedef Documentation

template<typename T, typename CloneMixin = CloneAsNew<T>>
typedef const Tptr* Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::constPtr

template<typename T, typename CloneMixin = CloneAsNew<T>>
typedef T* Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::Tptr


Member Function Documentation

template<typename T, typename CloneMixin = CloneAsNew<T>>
static bool Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::CompareArray ( T **const  array1,
T **const  array2,
const size_t &  commonSize 
) [inline, static]

Compare array The type must have a defined "== operator".

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::CopyArray ( T **&  dest,
T **const  src,
size_t &  destSize,
const size_t &  srcSize 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::CopyArray ( T **  dest,
T **const  src,
const size_t &  destSize,
const size_t &  srcSize 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::CopyPtr ( T *&  dest,
T *const &  src 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static Tptr Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::DefaultElement (  )  [inline, static]

This method returns a default constructed element.

template<typename T, typename CloneMixin = CloneAsNew<T>>
static T& Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::DefaultSubElement (  )  [inline, static]

This method returns a default constructed element or can throw.

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::DeleteArray ( Tptr *const   array,
const size_t &  currentSize 
) [inline, static]

Delete the array.

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::DuplicateArray ( T **&  dest,
T **const  src,
size_t &  destSize,
const size_t &  srcSize 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static T* * Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::Insert ( T **const  array,
const size_t &  currentSize,
const size_t &  newSize,
const size_t &  index,
T *const &  elementToInsert 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static T** Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::NonDestructiveAlloc ( T **const  array,
const size_t &  currentSize,
const size_t &  newSize,
T *const &  fillWith 
) [inline, static]

template<typename T, typename CloneMixin = CloneAsNew<T>>
static void Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::Remove ( T *const  data  )  [inline, static]

Remove on item from the array.

template<typename T, typename CloneMixin = CloneAsNew<T>>
static size_t Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::ReverseSearch ( T **const  array,
const size_t &  arraySize,
T *const &  valueToLookFor 
) [inline, static]

This method search for the last element that match the given element and returns arraySize if not found The type must have a defined "== operator".

template<typename T, typename CloneMixin = CloneAsNew<T>>
static size_t Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::Search ( T **const  array,
const size_t &  arraySize,
T *const &  valueToLookFor 
) [inline, static]

This method search for the given element and returns arraySize if not found The type must have a defined "== operator".

template<typename T, typename CloneMixin = CloneAsNew<T>>
static size_t Container::WithCopyConstructorPolicy::DefaultMemoryListPolicy< T, CloneMixin >::SearchRef ( const Tptr array,
const size_t &  arraySize,
const T &  valueToLookFor 
) [inline, 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