SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Namespace Platform::Containers

namespace Platform::Containers

Provides constructs that define generic collections such as dynamic arrays, lists, sets, maps etc.

Inner Compounds, Typedefs, and Enumscollapse
class Array
          A dynamically sized array container.
class HashMap
          A dynamically sized, unordered, associative hash map container.
class HashSet
          A dynamically sized, unordered hash set container.
class List
          A dynamically sized linked list container.
class Queue
          A dynamically sized queue container.
class SortedMap
          A dynamically sized, associative, ordered map container.
class SortedSet
          A dynamically sized, ordered set container.
class Stack
          A dynamically sized stack container.

Method Summarycollapse
template <typename Dictionary,
typename Collection>
Collection&
collectAllDictionaryKeys(const Dictionary& dictionary, Collection& collection)
          Collects all the keys in a given dictionary and places them into the specified collection container.
template <typename Dictionary,
typename Collection>
Collection&
collectAllDictionaryValues(const Dictionary& dictionary, Collection& collection)
          Collects all the values in a given dictionary and places them into the specified collection container.
template <typename Container>
Void
deleteAll(const Container& container)
          Enumerates a container and deletes all the elements using the delete or delete[] operator, whichever is appropriate.
template <typename Container>
Void
deleteAll(Container& container)
          Enumerates a container and deletes all the elements using the delete or delete[] operator, whichever is appropriate.
template <typename Container,
typename Action>
Action
enumerate(const Container& container, Action action)
          Performs the specified action on every element in a given container.
template <typename Container,
typename Action>
Action
enumerate(Container& container, Action action)
          Performs the specified action on every element in a given container.

 

Method Detail

collectAllDictionaryKeys[inline]

template <typename Dictionary, typename Collection>
Collection& collectAllDictionaryKeys(const Dictionary& dictionary, Collection& collection)

Collects all the keys in a given dictionary and places them into the specified collection container.

Parameters:
dictionary - a container implementing GeneralDictionaryType interface
collection - a container implementing GeneralCollectionType interface
Returns:
the collection container
See Also:
Lang::TypeConcepts::GeneralDictionaryType, Lang::TypeConcepts::GeneralCollectionType

collectAllDictionaryValues[inline]

template <typename Dictionary, typename Collection>
Collection& collectAllDictionaryValues(const Dictionary& dictionary, Collection& collection)

Collects all the values in a given dictionary and places them into the specified collection container.

Parameters:
dictionary - a container implementing GeneralDictionaryType interface
collection - a container implementing GeneralCollectionType interface
Returns:
the collection container
See Also:
Lang::TypeConcepts::GeneralDictionaryType, Lang::TypeConcepts::GeneralCollectionType

deleteAll[inline]

template <typename Container>
Void deleteAll(const Container& container)

Enumerates a container and deletes all the elements using the delete or delete[] operator, whichever is appropriate. This method is intended to clean up a container holding pointers allocated on heap with new or new[] operators.

Parameters:
container - a container implementing GeneralCollectionType interface
See Also:
Lang::TypeConcepts::GeneralCollectionType
operator new, operator new[], operator delete, operator delete[]

deleteAll[inline]

template <typename Container>
Void deleteAll(Container& container)

Enumerates a container and deletes all the elements using the delete or delete[] operator, whichever is appropriate. This method is intended to clean up a container holding pointers allocated on heap with new or new[] operators.

Parameters:
container - a container implementing GeneralCollectionType interface
See Also:
Lang::TypeConcepts::GeneralCollectionType
operator new, operator new[], operator delete, operator delete[]

enumerate[inline]

template <typename Container, typename Action>
Action enumerate(const Container& container, Action action)

Performs the specified action on every element in a given container.

Parameters:
container - a container
action - a function object specifying the action to perform on every element in the container
Returns:
the action object
See Also:
Lang::TypeConcepts::GeneralEnumeratorType, Lang::TypeConcepts::GeneralConstEnumeratorType

enumerate[inline]

template <typename Container, typename Action>
Action enumerate(Container& container, Action action)

Performs the specified action on every element in a given container.

Parameters:
container - a container
action - a function object specifying the action to perform on every element in the container
Returns:
the action object
See Also:
Lang::TypeConcepts::GeneralEnumeratorType, Lang::TypeConcepts::GeneralConstEnumeratorType


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND