CLAM-Development  1.4.0
Public Member Functions
CLAM::OutControl< ControlDataType > Class Template Reference

Processing typed out control template class. More...

#include <OutControl.hxx>

List of all members.

Public Member Functions

 OutControl (const std::string &name="unnamed typed in control", Processing *proc=0)
void SendControl (const ControlDataType &val)
bool IsLinkable (const InControlBase &in)
 Returns whether the control can be connected to the provided in control.
virtual const std::type_info & GetTypeId () const
- Public Member Functions inherited from CLAM::OutControlBase
 OutControlBase (const std::string &name, Processing *proc=0)
 Class constructor.
virtual ~OutControlBase ()
 Class destructor.
const std::string & GetName () const
ProcessingGetProcessing () const
bool IsConnected ()
bool IsConnectedTo (InControlBase &in)
void AddLink (InControlBase &in)
 Set a connection with an in control.
void RemoveLink (InControlBase &in)
 Unsets an existing link with the provided in control.
Peers::iterator BeginInControlsConnected ()
Peers::iterator EndInControlsConnected ()

Additional Inherited Members

- Protected Types inherited from CLAM::OutControlBase
typedef std::list
< InControlBase * > 
Peers
- Protected Member Functions inherited from CLAM::OutControlBase
 OutControlBase (const OutControlBase &toBeCopied)
 Private copy constructor to avoid copies.
- Protected Attributes inherited from CLAM::OutControlBase
Peers mLinks
 Stores the pointers to the connected incontrols.

Detailed Description

template<class ControlDataType>
class CLAM::OutControl< ControlDataType >

Processing typed out control template class.

Definition at line 40 of file OutControl.hxx.


Constructor & Destructor Documentation

template<class ControlDataType >
CLAM::OutControl< ControlDataType >::OutControl ( const std::string &  name = "unnamed typed in control",
Processing proc = 0 
)

Definition at line 59 of file OutControl.hxx.


Member Function Documentation

template<class ControlDataType>
virtual const std::type_info& CLAM::OutControl< ControlDataType >::GetTypeId ( ) const
inlinevirtual

Implements CLAM::OutControlBase.

Definition at line 52 of file OutControl.hxx.

template<class ControlDataType >
bool CLAM::OutControl< ControlDataType >::IsLinkable ( const InControlBase in)
virtual

Returns whether the control can be connected to the provided in control.

             Concrete in controls redefine this function to provide or extend the set
             of conditions to be linkable.
Todo:
move here a base implementation by checking the typeid.

Implements CLAM::OutControlBase.

Definition at line 77 of file OutControl.hxx.

References CLAM::InControlBase::GetTypeId().

Referenced by CLAM::SendFloatToInControl().

template<class ControlDataType>
void CLAM::OutControl< ControlDataType >::SendControl ( const ControlDataType &  val)

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