template
class
IndirectChannel<class>
: public Channel
(Return to index)
Access to a double data member.
Template class IndirectChannel allows access to a double data
member of an object.
Type: |
Instantiable |
Superclasses: |
public Channel |
Include file: |
./Channels/IndirectChannel.hh |
Inheritance
Synopsis (including inherited members):
Documentation:
- Public members:
-
IndirectChannel
(T&,double()const,void(double))
;
- Constructor.
The constructed channel provides access to a member of an object
of class T. The channel keeps a reference to object
and the pointers to member getF and setF.
Values set are transmitted via object.*setF(value)
and read via value = object.*getF().
-
virtual IndirectChannel* 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 be written, i.e. if the set
method 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