Version: 8.3.0
YACS::ENGINE::OutputPort4DS2DF Class Reference

#include <Loop.hxx>

Inheritance diagram for YACS::ENGINE::OutputPort4DS2DF:
Collaboration diagram for YACS::ENGINE::OutputPort4DS2DF:

Public Member Functions

 OutputPort4DS2DF (DSToDFForLoop *node, TypeCode *type)
 
void getAllRepresented (std::set< OutPort * > &represented) const
 
void put (const void *data) throw (ConversionException)
 
OutputPortclone (Node *newHelder) const
 
void put (Any *data)
 
 ~OutputPort4DS2DF ()
 
- Public Member Functions inherited from YACS::ENGINE::OutputPort
virtual ~OutputPort ()
 
std::set< InPort * > edSetInPort () const
 
bool isAlreadyLinkedWith (InPort *withp) const
 
bool isAlreadyInSet (InputPort *inputPort) const
 
bool isConnected () const
 
std::string getNameOfTypeOfCurrentInstance () const
 
int removeInPort (InPort *inPort, bool forward) throw (Exception)
 
virtual bool edAddInputPort (InputPort *phyPort) throw (Exception)
 
virtual bool edAddInPropertyPort (InPropertyPort *phyPort) throw (Exception)
 
virtual int edRemoveInputPort (InputPort *inputPort, bool forward) throw (Exception)
 
bool addInPort (InPort *inPort) throw (Exception)
 
void edRemoveAllLinksLinkedWithMe () throw (Exception)
 
virtual void exInit ()
 
virtual void checkBasicConsistency () const throw (Exception)
 Check validity of output port. Nothing on base class. More...
 
virtual std::string dump ()
 
virtual std::string typeName ()
 
- Public Member Functions inherited from YACS::ENGINE::DataFlowPort
TypeOfChannel getTypeOfChannel () const
 returns type of channel the port will use for data exchange on runtime : DATAFLOW or DATASTREAM. More...
 
virtual ~DataFlowPort ()
 
virtual std::string valToStr ()
 Gives a string representation of the data, for user interfaces. More...
 
virtual void valFromStr (std::string valstr)
 Allows to set data from a string representation used in user interface. More...
 
- Public Member Functions inherited from YACS::ENGINE::DataPort
TypeCodeedGetType () const
 
void edSetType (TypeCode *type)
 
std::string getName () const
 
void setName (std::string theName)
 
bool isDifferentTypeOf (const DataPort *other) const
 
virtual std::string getAsString ()
 returns port value as a string that can be used in a GUI for example More...
 
- Public Member Functions inherited from YACS::ENGINE::Port
virtual ~Port ()
 
NodegetNode () const
 
int getNumId () const
 
void modified ()
 
- Public Member Functions inherited from YACS::ENGINE::OutPort
virtual void checkConsistency (LinkInfo &info) const
 
virtual int edGetNumberOfOutLinks () const
 
virtual ~OutPort ()
 
std::vector< DataPort * > calculateHistoryOfLinkWith (InPort *end)
 

Protected Attributes

Any_data
 
- Protected Attributes inherited from YACS::ENGINE::OutputPort
std::set< InputPort * > _setOfInputPort
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::ENGINE::DataPort
static DataPortisCrossingType (const std::vector< DataPort * > &historyOfLink)
 
- Static Public Attributes inherited from YACS::ENGINE::OutputPort
static const char NAME [] ="OutputPort"
 
- Protected Member Functions inherited from YACS::ENGINE::OutputPort
 OutputPort (const OutputPort &other, Node *newHelder)
 
 OutputPort (const std::string &name, Node *node, TypeCode *type)
 
const std::set< InputPort * > & getSetOfPhyLinks () const
 Returns physical links linked to this. Contrary to edSetInPort that returns semantic links. More...
 
- Static Protected Attributes inherited from YACS::ENGINE::Port
static int _total = 0
 
static const char NAME [] ="Port"
 

Detailed Description

Definition at line 78 of file Loop.hxx.

Constructor & Destructor Documentation

OutputPort4DS2DF::OutputPort4DS2DF ( DSToDFForLoop node,
TypeCode type 
)

Definition at line 150 of file Loop.cxx.

151  :
152  OutputPort("", node, type),
153  DataPort("", node, type),
154  Port(node),_data(0)
155 {
}
OutputPort4DS2DF::~OutputPort4DS2DF ( )

Definition at line 183 of file Loop.cxx.

References _data, and YACS::ENGINE::RefCounter::decrRef().

184 {
185  if(_data)
186  _data->decrRef();
187 }

Member Function Documentation

OutputPort * OutputPort4DS2DF::clone ( Node newHelder) const
virtual

Implements YACS::ENGINE::OutputPort.

Definition at line 170 of file Loop.cxx.

171 {
172  throw Exception("OutputPort4DS2DF::clone : Internal error");
173 }
void OutputPort4DS2DF::getAllRepresented ( std::set< OutPort * > &  represented) const
virtual

Reimplemented from YACS::ENGINE::OutPort.

Definition at line 157 of file Loop.cxx.

References YACS::ENGINE::Port::_node, YACS::ENGINE::InPort::edSetOutPort(), and YACS::ENGINE::Node::getInputDataStreamPort().

158 {
159  set<OutPort *> setO=_node->getInputDataStreamPort("")->edSetOutPort();
160  for(set<OutPort *>::iterator iter=setO.begin();iter!=setO.end();iter++)
161  (*iter)->getAllRepresented(represented);
162 }
void OutputPort4DS2DF::put ( const void *  data) throw (ConversionException)
virtual

Reimplemented from YACS::ENGINE::OutputPort.

Definition at line 164 of file Loop.cxx.

References YACS::ENGINE::OutputPort::put().

165 {
166  put((Any *)data);
167  OutputPort::put(data);
168 }
void OutputPort4DS2DF::put ( Any data)

Definition at line 175 of file Loop.cxx.

References _data, YACS::ENGINE::RefCounter::decrRef(), and YACS::ENGINE::RefCounter::incrRef().

176 {
177  if(_data)
178  _data->decrRef();
179  _data=data;
180  _data->incrRef();
181 }

Member Data Documentation

Any* YACS::ENGINE::OutputPort4DS2DF::_data
protected

Definition at line 88 of file Loop.hxx.

Referenced by put(), and ~OutputPort4DS2DF().


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