Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T > Struct Template Reference

#include <Container.hpp>

List of all members.


Detailed Description

template<typename T>
struct Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >

The default memory policy interface for plain old data.


Public Types

typedef const T * constPtr

Static Public Member Functions

static bool CompareArray (const T *array1, const T *array2, const size_t &commonSize)
 Compare array The type must have a defined "== operator".
static void Copy (T &dest, const T &src)
static void CopyArray (T *&dest, const T *src, size_t &destSize, const size_t &srcSize)
static void CopyArray (T *dest, const T *src, const size_t &destSize, const size_t &srcSize)
static T & DefaultElement ()
static void DeleteArray (const T *array, const size_t &currentSize)
static T * Insert (const T *array, const size_t &currentSize, const size_t &newSize, const size_t &index, const T &elementToInsert)
static T * NonDestructiveAlloc (const T *array, const size_t &currentSize, const size_t &newSize, const T &fillWith)
static size_t ReverseSearch (const T *array, const size_t &arraySize, const T &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 (const T *array, const size_t &arraySize, const T &valueToLookFor)
 This method search for the given element and returns arraySize if not found The type must have a defined "== operator".


Member Typedef Documentation

template<typename T>
typedef const T* Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >::constPtr


Member Function Documentation

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

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

template<typename T>
static void Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >::Copy ( T &  dest,
const T &  src 
) [inline, static]

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

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

template<typename T>
static T& Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >::DefaultElement (  )  [inline, static]

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

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

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

template<typename T>
static size_t Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >::ReverseSearch ( const T *  array,
const size_t &  arraySize,
const T &  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>
static size_t Container::WithCopyConstructorPolicy::SimplerMemoryPolicy< T >::Search ( const T *  array,
const size_t &  arraySize,
const T &  valueToLookFor 
) [inline, static]

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


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