template
class
IndexedChannel<class>
: public Channel
(Return to index)
Access to an indexed double data member.
Template class IndirectChannel allows access to an indexed double
data member of an object.
Type: |
Instantiable |
Superclasses: |
public Channel |
Include file: |
./Channels/IndexedChannel.hh |
Inheritance
Synopsis (including inherited members):
Documentation:
- Public members:
-
IndexedChannel
(T&,double(int)const,void(int,double),int)
;
- Constructor.
The constructed channel provides access to an array of an object
of class T. The channel keeps a reference to object,
the pointers to member getF and setF, and the index
index.
Values set are transmitted via object.*setF(index,value)
and read via value = object.*getF(index).
-
virtual IndexedChannel* clone
()const
;
- Duplicate the channel.
-
virtual bool get
(double&)const
;
- Fetch from channel.
If the channel can be read, set value and return true,
otherwise return false.
-
virtual bool isSettable
()const
;
- Test if settable.
Return true, if the channel can receive values, i.e. if the sefF
pointer is not NULL.
-
virtual bool set
(double)
;
- Store into channel.
If the channel can be written, store value into it and return true,
otherwise return false.
Documentation generated by fci on Mon Feb 7 11:41:40 2000