Version: 8.3.0
YACS::ENGINE::InterceptorInputPort Class Reference

#include <ForEachLoop.hxx>

Inheritance diagram for YACS::ENGINE::InterceptorInputPort:
Collaboration diagram for YACS::ENGINE::InterceptorInputPort:

Private Member Functions

 InterceptorInputPort (const std::string &name, Node *node, TypeCode *type)
 
 InterceptorInputPort (const InterceptorInputPort &other, Node *newHelder)
 
void getAllRepresentants (std::set< InPort * > &repr) const
 
InputPortclone (Node *newHelder) const
 
void setRepr (AnySplitOutputPort *repr)
 

Private Attributes

AnySplitOutputPort_repr
 

Friends

class ForEachLoop
 
class SplitterNode
 

Additional Inherited Members

- Public Member Functions inherited from YACS::ENGINE::AnyInputPort
 AnyInputPort (const std::string &name, Node *node, TypeCode *type, bool canBeNull=false)
 
 AnyInputPort (const AnyInputPort &other, Node *newHelder)
 
virtual ~AnyInputPort ()
 
void exSaveInit ()
 Save the current data value for further reinitialization of the port. More...
 
void exRestoreInit ()
 Restore the saved data value to current data value. More...
 
AnygetValue () const
 
int getIntValue () const
 
void put (Any *data)
 
void * get () const
 
virtual std::string getAsString ()
 returns port value as a string that can be used in a GUI for example More...
 
virtual bool isEmpty ()
 
void put (const void *data) throw (ConversionException)
 
std::string dump ()
 
virtual std::string typeName ()
 
- Static Public Member Functions inherited from YACS::ENGINE::DataPort
static DataPortisCrossingType (const std::vector< DataPort * > &historyOfLink)
 
- Static Public Attributes inherited from YACS::ENGINE::InputPort
static const char NAME [] ="InputPort"
 
- Protected Member Functions inherited from YACS::ENGINE::InputPort
 InputPort (const InputPort &other, Node *newHelder)
 
 InputPort (const std::string &name, Node *node, TypeCode *type, bool canBeNull=false)
 
- Protected Attributes inherited from YACS::ENGINE::AnyInputPort
Any_value
 
- Static Protected Attributes inherited from YACS::ENGINE::Port
static int _total = 0
 
static const char NAME [] ="Port"
 

Detailed Description

Definition at line 40 of file ForEachLoop.hxx.

Constructor & Destructor Documentation

InterceptorInputPort::InterceptorInputPort ( const std::string &  name,
Node node,
TypeCode type 
)
private

Definition at line 54 of file ForEachLoop.cxx.

Referenced by clone().

54  :AnyInputPort(name,node,type),
55  DataPort(name,node,type),Port(node),
56  _repr(0)
57 {
58 }
InterceptorInputPort::InterceptorInputPort ( const InterceptorInputPort other,
Node newHelder 
)
private

Definition at line 60 of file ForEachLoop.cxx.

60  :AnyInputPort(other,newHelder),DataPort(other,newHelder),
61  Port(other,newHelder),
62  _repr(0)
63 {
64 }

Member Function Documentation

InputPort * InterceptorInputPort::clone ( Node newHelder) const
privatevirtual

Reimplemented from YACS::ENGINE::AnyInputPort.

Definition at line 73 of file ForEachLoop.cxx.

References InterceptorInputPort().

74 {
75  return new InterceptorInputPort(*this,newHelder);
76 }
void InterceptorInputPort::getAllRepresentants ( std::set< InPort * > &  repr) const
privatevirtual

Reimplemented from YACS::ENGINE::InPort.

Definition at line 66 of file ForEachLoop.cxx.

References _repr, and YACS::ENGINE::OutputPort::edSetInPort().

67 {
68  set<InPort *> ports=_repr->edSetInPort();
69  for(set<InPort *>::iterator iter=ports.begin();iter!=ports.end();iter++)
70  (*iter)->getAllRepresentants(repr);
71 }
void InterceptorInputPort::setRepr ( AnySplitOutputPort repr)
private

Definition at line 78 of file ForEachLoop.cxx.

References _repr.

Referenced by YACS::ENGINE::ForEachLoop::buildDelegateOf(), and YACS::ENGINE::ForEachLoop::ForEachLoop().

79 {
80  _repr=repr;
81 }

Friends And Related Function Documentation

friend class ForEachLoop
friend

Definition at line 42 of file ForEachLoop.hxx.

friend class SplitterNode
friend

Definition at line 43 of file ForEachLoop.hxx.

Member Data Documentation

AnySplitOutputPort* YACS::ENGINE::InterceptorInputPort::_repr
private

Definition at line 45 of file ForEachLoop.hxx.

Referenced by getAllRepresentants(), and setRepr().


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