iso::synth::SwitchPort Class Reference

#include <iso_synth_switch_port.h>

Inherits iso::synth::Port.

Inherited by iso::synth::SwitchPort2< FunctionValueType >.

Inheritance diagram for iso::synth::SwitchPort:

Inheritance graph
[legend]
Collaboration diagram for iso::synth::SwitchPort:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SwitchPort (PortOwner *pOwner, const data::Values &pValues)
 parameter based contructor
 SwitchPort (const String &pName, PortOwner *pOwner, const data::Values &pValues)
 name and parameter based contructor
 ~SwitchPort ()
 destructor
const data::Values & values () const
 return values
data::Values & values ()
 return values
virtual void set (data::Values pValues)=0 throw (SynthException)
 set values
virtual String info (bool pPropagate=false) const
 print info

Static Public Attributes

static const String sClassName
 default name

Protected Member Functions

void createName (const String &pPortName)
 creates a full input port name by concatenating it's unit name and port name

Protected Attributes

data::Values mValues
 internal values

Friends

std::ostream & operator<< (std::ostream &pOstream, const SwitchPort &pPort)
 print switch port information

Constructor & Destructor Documentation

SwitchPort::SwitchPort ( PortOwner pOwner,
const data::Values &  pValues 
)

parameter based contructor

Parameters:
pOwner the port owner this switch port belongs to
pValues switch port values

SwitchPort::SwitchPort ( const String pName,
PortOwner pOwner,
const data::Values &  pValues 
)

name and parameter based contructor

Parameters:
pName name of the input port
pOwner the port owner this switch port belongs to
pValues switch port values

SwitchPort::~SwitchPort (  ) 

destructor


Member Function Documentation

const data::Values & SwitchPort::values (  )  const

return values

Returns:
values

data::Values & SwitchPort::values (  ) 

return values

Returns:
values

virtual void iso::synth::SwitchPort::set ( data::Values  pValues  )  throw (SynthException) [pure virtual]

set values

Parameters:
pValues array of values
Exceptions:
SynthException failed to set values

Implemented in iso::synth::SwitchPort2< FunctionValueType >.

base::String SwitchPort::info ( bool  pPropagate = false  )  const [virtual]

print info

Parameters:
pPropagate if true, the info method invocation travels up the unit patch
prints some unit properties to the console

Reimplemented from iso::synth::Port.

void SwitchPort::createName ( const String pPortName  )  [protected]

creates a full input port name by concatenating it's unit name and port name

Parameters:
pPortName port name


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const SwitchPort pPort 
) [friend]

print switch port information


Member Data Documentation

const base::String SwitchPort::sClassName [static]

default name

Reimplemented from iso::synth::Port.

data::Values iso::synth::SwitchPort::mValues [protected]

internal values

this one stores values directly


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:18:42 2011 for synth by  doxygen 1.5.1