bbtk::BlackBoxInputConnector Class Reference

#include <bbtkBlackBoxInputConnector.h>

List of all members.

Public Member Functions

 BlackBoxInputConnector (BlackBoxPointer b)
 Ctor.
 ~BlackBoxInputConnector ()
 Dtor.
void SetConnection (Connection *c)
 Sets a connection.
void UnsetConnection (Connection *c)
IOStatus BackwardUpdate ()
ConnectionGetConnection () const
 Returns the connection plugged into this input (const).
bool IsConnected () const
 Returns true iff a connection is connected to it.
const IOStatusGetStatus () const
 Returns the status of the input (UPTODATE | MODIFIED).
BlackBoxPointer GetBlackBox () const

Private Attributes

BlackBoxWeakPointer mBox
ConnectionmConnection
 The connection plugged into the input.
IOStatus mStatus
 The status of the input (UPTODATE | MODIFIED).


Detailed Description

Definition at line 53 of file bbtkBlackBoxInputConnector.h.


Constructor & Destructor Documentation

bbtk::BlackBoxInputConnector::BlackBoxInputConnector ( BlackBoxPointer  b  ) 

Ctor.

bbtk::BlackBoxInputConnector::~BlackBoxInputConnector (  ) 

Dtor.

Definition at line 49 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugDecTab, and bbtkDebugMessageInc.

00050   {
00051     bbtkDebugMessageInc("Kernel",9,"BlackBoxInputConnector::~BlackBoxInputConnector()"<<std::endl);
00052     bbtkDebugDecTab("Kernel",9);
00053   }


Member Function Documentation

void bbtk::BlackBoxInputConnector::SetConnection ( Connection c  ) 

Sets a connection.

Definition at line 55 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, and mConnection.

00056   { 
00057     bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
00058     mConnection = c; 
00059   }

void bbtk::BlackBoxInputConnector::UnsetConnection ( Connection c  ) 

Unsets the connection The parameter is USELESS today but would be useful if we allow multiple connections on inputs

Definition at line 61 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, and mConnection.

00062   { 
00063     bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
00064                      <<c<<")"<<std::endl);
00065     mConnection = 0; //.reset();
00066   }

IOStatus bbtk::BlackBoxInputConnector::BackwardUpdate (  ) 

Definition at line 68 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::Connection::BackwardUpdate(), bbtkDebugMessage, mConnection, mStatus, and bbtk::UPTODATE.

00069   {
00070     bbtkDebugMessage("process",9,"==> BlackBoxInputConnector::BackwardUpdate()"
00071                      <<std::endl);
00072 
00073     if (mConnection) //.lock()) 
00074       {
00075         IOStatus s = mConnection->BackwardUpdate();
00076         mStatus = s;
00077       }
00078     else 
00079       {
00080         mStatus = UPTODATE;
00081       }
00082 
00083     return mStatus;
00084 
00085   }

Here is the call graph for this function:

Connection* bbtk::BlackBoxInputConnector::GetConnection (  )  const [inline]

Returns the connection plugged into this input (const).

Definition at line 70 of file bbtkBlackBoxInputConnector.h.

00070 { return mConnection; }

bool bbtk::BlackBoxInputConnector::IsConnected (  )  const [inline]

Returns true iff a connection is connected to it.

Definition at line 72 of file bbtkBlackBoxInputConnector.h.

00072 { return (mConnection != 0); }

const IOStatus& bbtk::BlackBoxInputConnector::GetStatus (  )  const [inline]

Returns the status of the input (UPTODATE | MODIFIED).

Definition at line 74 of file bbtkBlackBoxInputConnector.h.

00074 { return mStatus; }

BlackBoxPointer bbtk::BlackBoxInputConnector::GetBlackBox (  )  const [inline]

Definition at line 76 of file bbtkBlackBoxInputConnector.h.

Referenced by bbtk::ComplexBlackBox::bbSetModifiedStatus().

00076 { return mBox.lock(); } 

Here is the caller graph for this function:


Member Data Documentation

BlackBoxWeakPointer bbtk::BlackBoxInputConnector::mBox [private]

Definition at line 79 of file bbtkBlackBoxInputConnector.h.

Connection* bbtk::BlackBoxInputConnector::mConnection [private]

The connection plugged into the input.

Definition at line 81 of file bbtkBlackBoxInputConnector.h.

Referenced by BackwardUpdate(), SetConnection(), and UnsetConnection().

IOStatus bbtk::BlackBoxInputConnector::mStatus [private]

The status of the input (UPTODATE | MODIFIED).

Definition at line 83 of file bbtkBlackBoxInputConnector.h.

Referenced by BackwardUpdate().


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

Generated on Wed Nov 12 11:38:36 2008 for BBTK by  doxygen 1.5.6