csl::CVariable Class Reference

#include <Variable.h>

Inheritance diagram for csl::CVariable:

csl::DynamicVariable csl::StaticVariable

List of all members.

Public Member Functions

 CVariable ()
 Constructors.
 CVariable (float tvalue)
float value ()
 Accessors.
void setValue (float x)
void setValue (int x)
void setValue (double x)

Protected Attributes

float mValue
 the value I represent


Detailed Description

CVariable is the the abstract external variable (plug or port) class. This is the abstract class for static and dynamic variables; it's a sample stream. Clients of Variable (oscillators, dsp units, etc) first ask whether its values are fixed over the length of the buffer or not. If the value is fixed, the client calls next_sample() to get the next sample and use it the DSP loop. If the value is not fixed, the client calls next_buffer() to get the next buffer of values.

Constructor & Destructor Documentation

csl::CVariable::CVariable (  )  [inline]

Constructors.

csl::CVariable::CVariable ( float  tvalue  )  [inline]


Member Function Documentation

float csl::CVariable::value (  )  [inline]

Accessors.

Reimplemented in csl::StaticVariable.

References mValue.

Referenced by csl::StaticVariable::value().

void csl::CVariable::setValue ( float  x  )  [inline]

Reimplemented in csl::StaticVariable, and csl::DynamicVariable.

References mValue.

void csl::CVariable::setValue ( int  x  )  [inline]

Reimplemented in csl::StaticVariable, and csl::DynamicVariable.

References mValue.

void csl::CVariable::setValue ( double  x  )  [inline]

Reimplemented in csl::StaticVariable, and csl::DynamicVariable.

References mValue.


Member Data Documentation

float csl::CVariable::mValue [protected]

the value I represent

Referenced by setValue(), and value().


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

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8