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

VectorBaseCut< Row, Member > Class Template Reference

#include <VectorIterator.h>

Inheritance diagram for VectorBaseCut< Row, Member >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Row, class Member = bool>
class VectorBaseCut< Row, Member >

Returns a data member of a vector's row in a BaseCut.

Definition at line 323 of file VectorIterator.h.

Public Member Functions

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

bool operator() () const
 Returns the value of the data member, converted to bool.

virtual const FillIteratorgetIterator () const
 Returns pointer to iterator.


Protected Member Functions

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


Protected Attributes

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

Member Row::* p_mem
 Member pointer to data member.

const FillIteratoriter
 The iterator.


Constructor & Destructor Documentation

template<class Row, class Member = bool>
VectorBaseCut< Row, Member >::VectorBaseCut const std::vector< Row > &  theVector_,
Member Row::*  p_mem_,
const FillIterator iter_,
const char *  name_ = "?"
[inline]
 

Constructor.

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

Definition at line 326 of file VectorIterator.h.

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


Member Data Documentation

template<class Row, class Member = bool>
Member Row::* VectorBaseCut< Row, Member >::p_mem [protected]
 

Member pointer to data member.

p_mem is a pointer to a data member of T (indicated by "Row::*"), which has to be declared as Member member_name; (indicated by "Member"). Member must be convertible to bool.

Definition at line 356 of file VectorIterator.h.

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


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