OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Channel Class Referenceabstract

Abstract interface for read/write access to variable. More...

#include <Channel.h>

Inheritance diagram for Channel:
Collaboration diagram for Channel:

Public Member Functions

 Channel ()
virtual ~Channel ()
virtual Channelclone () const =0
 Duplicate the channel.
double operator= (double value)
 Assign [b]value[/b] to channel.
double operator+= (double value)
 Add and assign [b]value[/b] to channel.
double operator-= (double value)
 Subtract and assign [b]value[/b] to channel.
virtual bool set (double value)=0
 Store [b]value[/b] into channel.
virtual bool isSettable () const
 Test if settable.
virtual bool get (double &value) const =0
 Read channel.
 operator double () const
 Read channel.

Private Member Functions

 Channel (const Channel &)
const Channeloperator= (const Channel &)

Detailed Description

Abstract interface for read/write access to variable.

Definition at line 32 of file Channel.h.

Constructor & Destructor Documentation

◆ Channel() [1/2]

Channel::Channel ( )

Definition at line 27 of file Channel.cpp.

References ConstChannel::ConstChannel().

Referenced by Channel(), clone(), DirectChannel::DirectChannel(), IndexedChannel< T >::IndexedChannel(), IndirectChannel< T >::IndirectChannel(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Channel()

Channel::~Channel ( )
virtual

Definition at line 32 of file Channel.cpp.

◆ Channel() [2/2]

Channel::Channel ( const Channel & )
private

References Channel().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

virtual Channel * Channel::clone ( ) const
pure virtual

Duplicate the channel.

Implements ConstChannel.

Implemented in DirectChannel, IndexedChannel< T >, and IndirectChannel< T >.

References Channel().

Here is the call graph for this function:

◆ get()

virtual bool ConstChannel::get ( double & value) const
pure virtualinherited

Read channel.

Implemented in DirectChannel, IndexedChannel< T >, and IndirectChannel< T >.

Referenced by operator double(), Channel::operator+=(), and Channel::operator-=().

Here is the caller graph for this function:

◆ isSettable()

bool Channel::isSettable ( ) const
virtual

Test if settable.

Reimplemented from ConstChannel.

Reimplemented in IndexedChannel< T >, and IndirectChannel< T >.

Definition at line 36 of file Channel.cpp.

Referenced by ElementBase::setAttribute().

Here is the caller graph for this function:

◆ operator double()

ConstChannel::operator double ( ) const
inlineinherited

Read channel.

Definition at line 46 of file ConstChannel.h.

References get().

Here is the call graph for this function:

◆ operator+=()

double Channel::operator+= ( double value)
inline

Add and assign [b]value[/b] to channel.

Definition at line 47 of file Channel.h.

References ConstChannel::get(), and set().

Here is the call graph for this function:

◆ operator-=()

double Channel::operator-= ( double value)
inline

Subtract and assign [b]value[/b] to channel.

Definition at line 51 of file Channel.h.

References ConstChannel::get(), and set().

Here is the call graph for this function:

◆ operator=() [1/2]

const Channel & Channel::operator= ( const Channel & )
private

References Channel().

Here is the call graph for this function:

◆ operator=() [2/2]

double Channel::operator= ( double value)
inline

Assign [b]value[/b] to channel.

Definition at line 43 of file Channel.h.

References set().

Here is the call graph for this function:

◆ set()

virtual bool Channel::set ( double value)
pure virtual

Store [b]value[/b] into channel.

Implemented in DirectChannel, IndexedChannel< T >, and IndirectChannel< T >.

Referenced by operator+=(), operator-=(), and operator=().

Here is the caller graph for this function:

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