Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

lyx::back_insert_fun_iterator Class Template Reference

#include <lyxfunctional.h>

Collaboration diagram for lyx::back_insert_fun_iterator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Cont container_type
typedef std::output_iterator_tag iterator_category
typedef void value_type
typedef void difference_type
typedef void pointer
typedef void reference

Public Methods

 back_insert_fun_iterator (Cont &x, MemRet(Type::*p)())
back_insert_fun_iterator & operator= (Type *val)
back_insert_fun_iterator & operator= (Type &val)
back_insert_fun_iterator & operator * ()
back_insert_fun_iterator & operator++ ()
back_insert_fun_iterator & operator++ (int)

Protected Attributes

Cont * container
MemRet(Type::* pmf )()

template<class Cont, class Type, class MemRet>
class lyx::back_insert_fun_iterator< Cont, Type, MemRet >


Member Typedef Documentation

template<class Cont, class Type, class MemRet>
typedef Cont lyx::back_insert_fun_iterator::container_type
 

Definition at line 31 of file lyxfunctional.h.

template<class Cont, class Type, class MemRet>
typedef void lyx::back_insert_fun_iterator::difference_type
 

Definition at line 34 of file lyxfunctional.h.

template<class Cont, class Type, class MemRet>
typedef std::output_iterator_tag lyx::back_insert_fun_iterator::iterator_category
 

Definition at line 32 of file lyxfunctional.h.

template<class Cont, class Type, class MemRet>
typedef void lyx::back_insert_fun_iterator::pointer
 

Definition at line 35 of file lyxfunctional.h.

template<class Cont, class Type, class MemRet>
typedef void lyx::back_insert_fun_iterator::reference
 

Definition at line 36 of file lyxfunctional.h.

template<class Cont, class Type, class MemRet>
typedef void lyx::back_insert_fun_iterator::value_type
 

Definition at line 33 of file lyxfunctional.h.


Constructor & Destructor Documentation

template<class Cont, class Type, class MemRet>
lyx::back_insert_fun_iterator< Cont, Type, MemRet >::back_insert_fun_iterator Cont &    x,
MemRet(Type::*    p)()
[inline]
 

Definition at line 38 of file lyxfunctional.h.

References container, and pmf.

Referenced by operator *, and operator++.

00039                 : container(&x), pmf(p) {}


Member Function Documentation

template<class Cont, class Type, class MemRet>
back_insert_fun_iterator& lyx::back_insert_fun_iterator< Cont, Type, MemRet >::operator *   [inline]
 

Definition at line 53 of file lyxfunctional.h.

References back_insert_fun_iterator.

00053                                                {
00054                 return *this;
00055         }

template<class Cont, class Type, class MemRet>
back_insert_fun_iterator& lyx::back_insert_fun_iterator< Cont, Type, MemRet >::operator++ int    [inline]
 

Definition at line 59 of file lyxfunctional.h.

References back_insert_fun_iterator.

00059                                                    { // postfix ++
00060                 return *this;
00061         }

template<class Cont, class Type, class MemRet>
back_insert_fun_iterator& lyx::back_insert_fun_iterator< Cont, Type, MemRet >::operator++   [inline]
 

Definition at line 56 of file lyxfunctional.h.

References back_insert_fun_iterator.

00056                                                 { // prefix ++
00057                 return *this;
00058         }

template<class Cont, class Type, class MemRet>
back_insert_fun_iterator& lyx::back_insert_fun_iterator< Cont, Type, MemRet >::operator= Type &    val [inline]
 

Definition at line 48 of file lyxfunctional.h.

References container, and pmf.

00048                               {
00049                 container->push_back((val.*pmf)());
00050                 return *this;
00051         }

template<class Cont, class Type, class MemRet>
back_insert_fun_iterator& lyx::back_insert_fun_iterator< Cont, Type, MemRet >::operator= Type *    val [inline]
 

Definition at line 42 of file lyxfunctional.h.

References container, and pmf.

00042                               {
00043                 container->push_back((val->*pmf)());
00044                 return *this;
00045         }


Member Data Documentation

template<class Cont, class Type, class MemRet>
Cont* lyx::back_insert_fun_iterator::container [protected]
 

Definition at line 28 of file lyxfunctional.h.

Referenced by back_insert_fun_iterator, and operator=.

template<class Cont, class Type, class MemRet>
MemRet(Type::* lyx::back_insert_fun_iterator::pmf)() [protected]
 

Referenced by back_insert_fun_iterator, and operator=.


The documentation for this class was generated from the following file:
Generated on Fri Jul 18 01:19:06 2003 for lyx by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002