#include <bbtkBlackBoxInputConnector.h>
Public Member Functions | |
BlackBoxInputConnector (BlackBoxPointer b) | |
Ctor. | |
~BlackBoxInputConnector () | |
Dtor. | |
void | SetConnection (Connection *c) |
Sets a connection. | |
void | UnsetConnection (Connection *c) |
IOStatus | BackwardUpdate () |
Connection * | GetConnection () const |
Returns the connection plugged into this input (const). | |
bool | IsConnected () const |
Returns true iff a connection is connected to it. | |
const IOStatus & | GetStatus () const |
Returns the status of the input (UPTODATE | MODIFIED). | |
BlackBoxPointer | GetBlackBox () const |
Private Attributes | |
BlackBoxWeakPointer | mBox |
Connection * | mConnection |
The connection plugged into the input. | |
IOStatus | mStatus |
The status of the input (UPTODATE | MODIFIED). |
Definition at line 53 of file bbtkBlackBoxInputConnector.h.
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 }
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 }
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.
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(); }
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().