OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IndexedChannel< T > Class Template Reference

Access to an indexed [b]double[/b] data member. More...

#include <IndexedChannel.h>

Inheritance diagram for IndexedChannel< T >:
Inheritance graph
[legend]
Collaboration diagram for IndexedChannel< T >:
Collaboration graph
[legend]

Public Member Functions

 IndexedChannel (T &object, double(T::*getF)(int) const, void(T::*setF)(int, double), int index)
 Constructor. More...
 
 IndexedChannel (const IndexedChannel &)
 
virtual ~IndexedChannel ()
 
virtual IndexedChannelclone () const
 Duplicate the channel. More...
 
virtual bool get (double &) const
 Fetch from channel. More...
 
virtual bool set (double)
 Store into channel. More...
 
virtual bool isSettable () const
 Test if settable. More...
 
- Public Member Functions inherited from Channel
 Channel ()
 
virtual ~Channel ()
 
double operator= (double value)
 Assign [b]value[/b] to channel. More...
 
double operator+= (double value)
 Add and assign [b]value[/b] to channel. More...
 
double operator-= (double value)
 Subtract and assign [b]value[/b] to channel. More...
 
- Public Member Functions inherited from ConstChannel
 ConstChannel ()
 
virtual ~ConstChannel ()
 
 operator double () const
 Read channel. More...
 

Private Member Functions

 IndexedChannel ()
 
const IndexedChanneloperator= (const IndexedChannel &)
 

Private Attributes

TitsObject
 
double(T::* getF )(int) const
 
void(T::* setF )(int, double)
 
int bias
 

Detailed Description

template<class T>
class IndexedChannel< T >

Access to an indexed [b]double[/b] data member.

Definition at line 32 of file IndexedChannel.h.

Constructor & Destructor Documentation

template<class T >
IndexedChannel< T >::IndexedChannel ( T object,
double(T::*)(int) const  getF,
void(T::*)(int, double)  setF,
int  index 
)

Constructor.

Definition at line 87 of file IndexedChannel.h.

template<class T >
IndexedChannel< T >::IndexedChannel ( const IndexedChannel< T > &  rhs)

Definition at line 94 of file IndexedChannel.h.

template<class T >
IndexedChannel< T >::~IndexedChannel ( )
virtual

Definition at line 101 of file IndexedChannel.h.

template<class T>
IndexedChannel< T >::IndexedChannel ( )
private

Member Function Documentation

template<class T >
IndexedChannel< T > * IndexedChannel< T >::clone ( ) const
virtual

Duplicate the channel.

Implements Channel.

Definition at line 106 of file IndexedChannel.h.

template<class T >
bool IndexedChannel< T >::get ( double &  value) const
virtual

Fetch from channel.

Implements ConstChannel.

Definition at line 112 of file IndexedChannel.h.

template<class T >
bool IndexedChannel< T >::isSettable ( ) const
virtual

Test if settable.

Reimplemented from Channel.

Definition at line 130 of file IndexedChannel.h.

template<class T>
const IndexedChannel& IndexedChannel< T >::operator= ( const IndexedChannel< T > &  )
private
template<class T >
bool IndexedChannel< T >::set ( double  value)
virtual

Store into channel.

Implements Channel.

Definition at line 119 of file IndexedChannel.h.

Member Data Documentation

template<class T>
int IndexedChannel< T >::bias
private

Definition at line 82 of file IndexedChannel.h.

template<class T>
double(T::* IndexedChannel< T >::getF)(int) const
private

Definition at line 78 of file IndexedChannel.h.

template<class T>
T& IndexedChannel< T >::itsObject
private

Definition at line 75 of file IndexedChannel.h.

template<class T>
void(T::* IndexedChannel< T >::setF)(int, double)
private

Definition at line 79 of file IndexedChannel.h.


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