Go to Overview over all GrAL packages.
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ValueMask Class Template Reference
[Components for Containers]

This class gives a const view to the values sequences of an associative container. More...

#include <container-adapter.h>

Collaboration diagram for ValueMask:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Cont::value_type base_value_type
typedef Cont::const_iterator base_iter
typedef get_second< base_value_typefunctor_type
typedef mapped_value_const_iterator<
base_iter, functor_type
const_iterator
typedef const_iterator::value_type value_type

Public Methods

 ValueMask (const Cont &c)
const_iterator begin () const
const_iterator end () const
unsigned size () const

Detailed Description

template<class Cont>
class ValueMask< Cont >

This class gives a const view to the values sequences of an associative container.

Template parameters:

Todo:
Could be extended to KeyMask<Cont>.

Definition at line 25 of file container-adapter.h.


Member Typedef Documentation

template<class Cont>
typedef Cont::value_type ValueMask::base_value_type
 

Definition at line 29 of file container-adapter.h.

template<class Cont>
typedef Cont::const_iterator ValueMask::base_iter
 

Definition at line 30 of file container-adapter.h.

template<class Cont>
typedef get_second<base_value_type> ValueMask::functor_type
 

Definition at line 31 of file container-adapter.h.

Referenced by begin, and end.

template<class Cont>
typedef mapped_value_const_iterator<base_iter,functor_type> ValueMask::const_iterator
 

Definition at line 33 of file container-adapter.h.

Referenced by begin, and end.

template<class Cont>
typedef const_iterator::value_type ValueMask::value_type
 

Definition at line 34 of file container-adapter.h.


Constructor & Destructor Documentation

template<class Cont>
ValueMask< Cont >::ValueMask const Cont &    c [inline]
 

Definition at line 36 of file container-adapter.h.


Member Function Documentation

template<class Cont>
const_iterator ValueMask< Cont >::begin   const [inline]
 

Definition at line 38 of file container-adapter.h.

References const_iterator, and functor_type.

template<class Cont>
const_iterator ValueMask< Cont >::end   const [inline]
 

Definition at line 40 of file container-adapter.h.

References const_iterator, and functor_type.

template<class Cont>
unsigned ValueMask< Cont >::size   const [inline]
 

Definition at line 43 of file container-adapter.h.


The documentation for this class was generated from the following file:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:17 2002 for Sequence by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000