|
| template<template< typename > class C = DynList> |
| C< Key > | keys () const |
| |
| template<template< typename > class C = DynList> |
| C< Data > | values () const |
| |
| template<template< typename > class C = DynList> |
| C< Data * > | values_ptr () const |
| |
| template<template< typename > class C = DynList> |
| C< std::pair< Key, Data > > | items () const |
| |
| template<template< typename > class C = DynList> |
| C< std::pair< Key, Data * > > | items_ptr () const |
| |
| Data & | operator() (const Key &key) |
| |
| const Data & | operator() (const Key &key) const |
| |
template<class Container, typename Key, typename Data>
class MapSequencesMethods< Container, Key, Data >
Common methods to mapping containers.
template<class Container , typename Key , typename Data >
template<template< typename > class C = DynList>
Return a container with the entire mapping.
items() returns a container copy of an entire mapping. Each element of returned mapping is a pair <key, value>.
- Returns
- A new container, according the passed template parameter, containing all the pairs key,value of mapping.
- Exceptions
-
| bad_alloc | if there is no enough memory |
template<class Container , typename Key , typename Data >
template<template< typename > class C = DynList>
Return a container with the entire mapping where the range could be modified.
items_ptr() returns a container copy of an entire mapping. Each element of returned mapping is a pair <key, pointer to value>.
- Returns
- A new container, according the passed template parameter, containing all the pairs key,pointer-value of mapping.
- Exceptions
-
| bad_alloc | if there is no enough memory |
template<class Container , typename Key , typename Data >
template<template< typename > class C = DynList>
Return the domain set of container.
This is a template method whose unique parameter is the type of container where the domain set will be stored. By default this type is DynList.
Often the elements of domain are called "keys" and those of codomain or range "values".
- Returns
- A new container, according the passed template parameter, containing all the elements of domain of mapping.
- Exceptions
-
| bad_alloc | if there is no enough memory |
template<class Container , typename Key , typename Data >
template<template< typename > class C = DynList>
Return the range set of container.
This is a template method whose unique parameter is the type of container where the range set will be stored. By default this type is DynList.
Often the elements of range are called "value" and those of domain "values".
- Returns
- A new container, according the passed template parameter, containing all the elements of range of mapping.
- Exceptions
-
| bad_alloc | if there is no enough memory |
template<class Container , typename Key , typename Data >
template<template< typename > class C = DynList>
Return a container of pointers to the elements of range set of container.
This is a template method whose unique parameter is the type of container where the pointers set will be stored. By default this type is DynList.
Often the elements of range are called "value" and those of domain "values". This method returns a container with pointers to those elements. In this way, the value could be modified.
- Returns
- A new container, according the passed template parameter, containing all the pointers to elements of range of mapping.
- Exceptions
-
| bad_alloc | if there is no enough memory |