aimstil  5.0.5
til::func_container< TContainer, TFunctor > Class Template Reference

A wrapper on stl containers that returns func iterators. More...

#include <cathier/func_iterator.h>

Inheritance diagram for til::func_container< TContainer, TFunctor >:
Collaboration diagram for til::func_container< TContainer, TFunctor >:

Public Types

typedef TContainer Base
 
typedef TFunctor::result_type value_type
 
typedef func_iterator< TContainer, TFunctor > iterator
 
typedef const_func_iterator< TContainer, TFunctor > const_iterator
 

Public Member Functions

 func_container (TContainer &c)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
value_type operator[] (int i)
 

Detailed Description

template<typename TContainer, typename TFunctor>
class til::func_container< TContainer, TFunctor >

A wrapper on stl containers that returns func iterators.

It does not bring any functionality, but it is needed, because it is somewhat dangerous to have iterators and containers that are not consistent (e.g. having different value_type).

Definition at line 79 of file func_iterator.h.

Member Typedef Documentation

◆ Base

template<typename TContainer , typename TFunctor >
typedef TContainer til::func_container< TContainer, TFunctor >::Base

Definition at line 83 of file func_iterator.h.

◆ const_iterator

template<typename TContainer , typename TFunctor >
typedef const_func_iterator<TContainer, TFunctor> til::func_container< TContainer, TFunctor >::const_iterator

Definition at line 87 of file func_iterator.h.

◆ iterator

template<typename TContainer , typename TFunctor >
typedef func_iterator<TContainer, TFunctor> til::func_container< TContainer, TFunctor >::iterator

Definition at line 86 of file func_iterator.h.

◆ value_type

template<typename TContainer , typename TFunctor >
typedef TFunctor::result_type til::func_container< TContainer, TFunctor >::value_type

Definition at line 85 of file func_iterator.h.

Constructor & Destructor Documentation

◆ func_container()

template<typename TContainer , typename TFunctor >
til::func_container< TContainer, TFunctor >::func_container ( TContainer &  c)
inline

Definition at line 90 of file func_iterator.h.

Member Function Documentation

◆ begin() [1/2]

template<typename TContainer , typename TFunctor >
iterator til::func_container< TContainer, TFunctor >::begin ( )
inline

Definition at line 94 of file func_iterator.h.

◆ begin() [2/2]

template<typename TContainer , typename TFunctor >
const_iterator til::func_container< TContainer, TFunctor >::begin ( ) const
inline

Definition at line 96 of file func_iterator.h.

◆ end() [1/2]

template<typename TContainer , typename TFunctor >
iterator til::func_container< TContainer, TFunctor >::end ( )
inline

Definition at line 95 of file func_iterator.h.

◆ end() [2/2]

template<typename TContainer , typename TFunctor >
const_iterator til::func_container< TContainer, TFunctor >::end ( ) const
inline

Definition at line 97 of file func_iterator.h.

◆ operator[]()

template<typename TContainer , typename TFunctor >
value_type til::func_container< TContainer, TFunctor >::operator[] ( int  i)
inline

Definition at line 99 of file func_iterator.h.


The documentation for this class was generated from the following file: