|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
Access to an indexed [b]double[/b] data member. More...
#include <IndexedChannel.h>
Public Member Functions | |
| IndexedChannel (T &object, double(T::*getF)(int) const, void(T::*setF)(int, double), int index) | |
| Constructor. | |
| IndexedChannel (const IndexedChannel &) | |
| virtual | ~IndexedChannel () |
| virtual IndexedChannel * | clone () const |
| Duplicate the channel. | |
| virtual bool | get (double &) const |
| Fetch from channel. | |
| virtual bool | set (double) |
| Store into channel. | |
| virtual bool | isSettable () const |
| Test if settable. | |
| double | operator+= (double value) |
| Add and assign [b]value[/b] to channel. | |
| double | operator-= (double value) |
| Subtract and assign [b]value[/b] to channel. | |
| operator double () const | |
| Read channel. | |
Private Member Functions | |
| IndexedChannel () | |
| const IndexedChannel & | operator= (const IndexedChannel &) |
Private Attributes | |
| T & | itsObject |
| double(T::* | getF )(int) const |
| void(T::* | setF )(int, double) |
| int | bias |
Access to an indexed [b]double[/b] data member.
Definition at line 32 of file IndexedChannel.h.
| IndexedChannel< T >::IndexedChannel | ( | T & | object, |
| double(T::* | getF )(int) const, | ||
| void(T::* | setF )(int, double), | ||
| int | index ) |
Constructor.
Definition at line 87 of file IndexedChannel.h.
References bias, get(), getF, itsObject, set(), and setF.
Referenced by clone(), IndexedChannel(), and operator=().
| IndexedChannel< T >::IndexedChannel | ( | const IndexedChannel< T > & | rhs | ) |
Definition at line 94 of file IndexedChannel.h.
References bias, Channel::Channel(), getF, IndexedChannel(), itsObject, and setF.
|
virtual |
Definition at line 101 of file IndexedChannel.h.
|
private |
|
virtual |
Duplicate the channel.
Implements Channel.
Definition at line 106 of file IndexedChannel.h.
References IndexedChannel().
|
virtual |
Fetch from channel.
Implements ConstChannel.
Definition at line 112 of file IndexedChannel.h.
References bias, getF, and itsObject.
Referenced by IndexedChannel().
|
virtual |
Test if settable.
Reimplemented from Channel.
Definition at line 130 of file IndexedChannel.h.
References setF.
|
inlineinherited |
Read channel.
Definition at line 46 of file ConstChannel.h.
References get().
|
inlineinherited |
Add and assign [b]value[/b] to channel.
Definition at line 47 of file Channel.h.
References ConstChannel::get(), and set().
|
inlineinherited |
Subtract and assign [b]value[/b] to channel.
Definition at line 51 of file Channel.h.
References ConstChannel::get(), and set().
|
private |
|
virtual |
Store into channel.
Implements Channel.
Definition at line 119 of file IndexedChannel.h.
References bias, itsObject, and setF.
Referenced by IndexedChannel().
|
private |
Definition at line 82 of file IndexedChannel.h.
Referenced by get(), IndexedChannel(), IndexedChannel(), and set().
|
private |
Definition at line 78 of file IndexedChannel.h.
Referenced by get(), IndexedChannel(), and IndexedChannel().
|
private |
Definition at line 75 of file IndexedChannel.h.
Referenced by get(), IndexedChannel(), IndexedChannel(), and set().
|
private |
Definition at line 79 of file IndexedChannel.h.
Referenced by IndexedChannel(), IndexedChannel(), isSettable(), and set().