Documentation


animal::container_traits< Cont > Struct Template Reference

#include <container_traits.h>

List of all members.


Detailed Description

template<typename Cont>
struct animal::container_traits< Cont >

Abstraction of a container.

Definition at line 17 of file container_traits.h.

Public Types

typedef Cont::iterator iterator
 iterator type

typedef iterator iter_type
 iterator type, just for backward compatibility

typedef Cont::size_type size_type
 size type

typedef Cont::value_type value_type
 entry value type

typedef Cont::reference reference
 type of a reference to an entry

typedef T const * iterator
 iterator type

typedef iterator iter_type
 iterator type, just for backward compatibility

typedef std::size_t size_type
 size type

typedef T const  value_type
 entry value type

typedef value_typereference
 type of a reference to an entry


Static Public Member Functions

iterator begin (Cont &cont)
 get an iterator on the first element

iterator end (Cont &cont)
 get an iterator on the following of the last element

size_type size (Cont &cont)
 number of elements

iterator begin (T const(&array)[sz])
 get an iterator on the first element

iterator end (T const(&array)[sz])
 get an iterator on the following of the last element

size_type size (T const(&array)[sz])
 number of elements


Member Typedef Documentation

template<typename Cont>
typedef iterator animal::container_traits< Cont >::iter_type
 

iterator type, just for backward compatibility

Definition at line 80 of file container_traits.h.

template<typename Cont>
typedef iterator animal::container_traits< Cont >::iter_type
 

iterator type, just for backward compatibility

Definition at line 20 of file container_traits.h.

template<typename Cont>
typedef T const* animal::container_traits< Cont >::iterator
 

iterator type

Definition at line 79 of file container_traits.h.

template<typename Cont>
typedef Cont::iterator animal::container_traits< Cont >::iterator
 

iterator type

Definition at line 19 of file container_traits.h.

Referenced by animal::container_traits< Cont >::begin(), and animal::container_traits< Cont >::end().

template<typename Cont>
typedef value_type& animal::container_traits< Cont >::reference
 

type of a reference to an entry

Definition at line 83 of file container_traits.h.

template<typename Cont>
typedef Cont::reference animal::container_traits< Cont >::reference
 

type of a reference to an entry

Definition at line 23 of file container_traits.h.

template<typename Cont>
typedef std::size_t animal::container_traits< Cont >::size_type
 

size type

Definition at line 81 of file container_traits.h.

template<typename Cont>
typedef Cont::size_type animal::container_traits< Cont >::size_type
 

size type

Definition at line 21 of file container_traits.h.

Referenced by animal::container_traits< Cont >::size().

template<typename Cont>
typedef T const animal::container_traits< Cont >::value_type
 

entry value type

Definition at line 82 of file container_traits.h.

template<typename Cont>
typedef Cont::value_type animal::container_traits< Cont >::value_type
 

entry value type

Definition at line 22 of file container_traits.h.


Member Function Documentation

template<typename Cont>
iterator animal::container_traits< Cont >::begin T const &  array[sz]  )  [inline, static]
 

get an iterator on the first element

Definition at line 86 of file container_traits.h.

References animal::container_traits< Cont >::iterator.

template<typename Cont>
iterator animal::container_traits< Cont >::begin Cont &  cont  )  [inline, static]
 

get an iterator on the first element

Definition at line 26 of file container_traits.h.

References animal::container_traits< Cont >::iterator.

template<typename Cont>
iterator animal::container_traits< Cont >::end T const &  array[sz]  )  [inline, static]
 

get an iterator on the following of the last element

Definition at line 88 of file container_traits.h.

References animal::container_traits< Cont >::iterator.

template<typename Cont>
iterator animal::container_traits< Cont >::end Cont &  cont  )  [inline, static]
 

get an iterator on the following of the last element

Definition at line 28 of file container_traits.h.

References animal::container_traits< Cont >::iterator.

template<typename Cont>
size_type animal::container_traits< Cont >::size T const &  array[sz]  )  [inline, static]
 

number of elements

Definition at line 90 of file container_traits.h.

References animal::container_traits< Cont >::size_type.

template<typename Cont>
size_type animal::container_traits< Cont >::size Cont &  cont  )  [inline, static]
 

number of elements

Definition at line 30 of file container_traits.h.

References animal::container_traits< Cont >::size_type.


The documentation for this struct was generated from the following file:
Generated on Thu Dec 23 13:52:29 2004 by doxygen 1.3.6