Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

VectorIntFunFunArg< Row, Member, Arg > Class Template Reference

#include <VectorIterator.h>

Inheritance diagram for VectorIntFunFunArg< Row, Member, Arg >:

Inheritance graph
[legend]
Collaboration diagram for VectorIntFunFunArg< Row, Member, Arg >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Row, class Member = int, class Arg = int>
class VectorIntFunFunArg< Row, Member, Arg >

Returns the result of a member method of a vector's row that takes an argument in a IntFun.

Definition at line 272 of file VectorIterator.h.

Public Member Functions

 VectorIntFunFunArg (const std::vector< Row > &theVector_, Member(Row::*p_mem_)(Arg) const, Arg arg_, const FillIterator &iter_, const char *name_="?")
 Constructor.

int operator() () const
 Returns the value of the member method, converted to int.

virtual const FillIteratorgetIterator () const
 Returns pointer to iterator.


Protected Member Functions

virtual ~VectorIntFunFunArg ()
 Protected destructor ensures creation on the heap.


Protected Attributes

const std::vector< Row > & theVector
 The vector.

Member(Row::* p_mem )(Arg) const
 Member pointer to data member.

Arg arg
 The argument.

const FillIteratoriter
 The iterator.


Constructor & Destructor Documentation

template<class Row, class Member = int, class Arg = int>
VectorIntFunFunArg< Row, Member, Arg >::VectorIntFunFunArg const std::vector< Row > &  theVector_,
Member(Row::*  p_mem_)(Arg) const,
Arg  arg_,
const FillIterator iter_,
const char *  name_ = "?"
[inline]
 

Constructor.

Parameters:
theVector_  The vector
p_mem_  Member pointer
arg_  The argument
iter_  The iterator
name_  The variable name

Definition at line 275 of file VectorIterator.h.

References VectorIntFunFunArg< Row, Member, Arg >::arg, NamedO::getName(), VectorIntFunFunArg< Row, Member, Arg >::iter, VectorIntFunFunArg< Row, Member, Arg >::p_mem, and VectorIntFunFunArg< Row, Member, Arg >::theVector.


Member Data Documentation

template<class Row, class Member = int, class Arg = int>
Arg VectorIntFunFunArg< Row, Member, Arg >::arg [protected]
 

The argument.

p_mem is a pointer to a member function of T (indicated by "Row::*"), which has to be declared as Member function_name() const; (indicated by "Member(...)() const"). Member must be convertible to int.

Definition at line 308 of file VectorIterator.h.

Referenced by VectorIntFunFunArg< Row, Member, Arg >::operator()(), and VectorIntFunFunArg< Row, Member, Arg >::VectorIntFunFunArg().


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:55:25 2006 for SFH by doxygen 1.3.2