bbtk::BlackBoxInputConnector Class Reference

#include <bbtkBlackBoxInputConnector.h>

Collaboration diagram for bbtk::BlackBoxInputConnector:

Collaboration graph
[legend]

List of all members.

Classes

class  Pimpl
 The Pimpl. More...

Public Member Functions

 BlackBoxInputConnector (BlackBoxPointer b)
 Ctor.
 ~BlackBoxInputConnector ()
 Dtor.
void SetConnection (Connection *c)
 Sets a connection.
void UnsetConnection (Connection *c)
ConnectionGetConnection () const
 Returns the connection plugged into this input (const).
bool IsConnected () const
 Returns true iff a connection is connected to it.
void RecursiveExecute ()
IOStatus GetStatus () const
 Returns the status of the input.
void SetStatus (IOStatus s)
 Sets the status of the input.
BlackBoxPointer GetBlackBox () const
 Returns the black box which owns the connector.

Private Member Functions

void PimplConstruct ()
void PimplCopyConstruct (const BlackBoxInputConnector &)
void PimplDestruct ()
 BlackBoxInputConnector (const BlackBoxInputConnector &)
 Purposedly not implemented.

Private Attributes

Pimplp


Detailed Description

Definition at line 54 of file bbtkBlackBoxInputConnector.h.


Constructor & Destructor Documentation

bbtk::BlackBoxInputConnector::BlackBoxInputConnector ( BlackBoxPointer  b  ) 

Ctor.

bbtk::BlackBoxInputConnector::~BlackBoxInputConnector (  ) 

Dtor.

Definition at line 78 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, and PimplDestruct().

00079   {
00080     bbtkDebugMessage("kernel",9,
00081                      "[DEAD BOX] ~BlackBoxInputConnector()"
00082                      <<std::endl);
00083     PimplDestruct();
00084   }

Here is the call graph for this function:

bbtk::BlackBoxInputConnector::BlackBoxInputConnector ( const BlackBoxInputConnector  )  [private]

Purposedly not implemented.


Member Function Documentation

BlackBoxPointer bbtk::BlackBoxInputConnector::GetBlackBox (  )  const

Returns the black box which owns the connector.

Definition at line 125 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::BlackBoxInputConnector::Pimpl::mBox, and p.

00126     { 
00127       return p->mBox.lock(); 
00128     } 

Connection * bbtk::BlackBoxInputConnector::GetConnection (  )  const

Returns the connection plugged into this input (const).

Definition at line 89 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::BlackBoxInputConnector::Pimpl::mConnection, and p.

00090   { 
00091     return p->mConnection; 
00092   }

IOStatus bbtk::BlackBoxInputConnector::GetStatus (  )  const

Returns the status of the input.

Definition at line 107 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::BlackBoxInputConnector::Pimpl::mStatus, and p.

00108    { 
00109      return p->mStatus; 
00110    }

bool bbtk::BlackBoxInputConnector::IsConnected (  )  const

Returns true iff a connection is connected to it.

Definition at line 98 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::BlackBoxInputConnector::Pimpl::mConnection, and p.

00099   { 
00100     return (p->mConnection != 0); 
00101   }

void bbtk::BlackBoxInputConnector::PimplConstruct (  )  [private]

Definition at line 61 of file bbtkBlackBoxInputConnector.cxx.

void bbtk::BlackBoxInputConnector::PimplCopyConstruct ( const BlackBoxInputConnector o  )  [private]

Definition at line 61 of file bbtkBlackBoxInputConnector.cxx.

void bbtk::BlackBoxInputConnector::PimplDestruct (  )  [private]

Definition at line 61 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage.

Referenced by ~BlackBoxInputConnector().

Here is the caller graph for this function:

void bbtk::BlackBoxInputConnector::RecursiveExecute (  ) 

Definition at line 154 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, bbtk::BlackBoxInputConnector::Pimpl::mBox, bbtk::BlackBoxInputConnector::Pimpl::mConnection, bbtk::BlackBoxInputConnector::Pimpl::mStatus, bbtk::OUTOFDATE, p, and bbtk::Connection::RecursiveExecute().

00155   {
00156     // If connected and OUTOFDATE : recursive update
00157     // Post-update status is updated by the connection 
00158     // (either MODIFIED or OUTOFDATE)
00159     if ( p->mConnection && (p->mStatus == OUTOFDATE) )
00160       {
00161         p->mConnection->RecursiveExecute();
00162       }
00163     else
00164       {
00165         if (!p->mBox.expired())
00166           bbtkDebugMessage("process",5,"["<<p->mBox.lock()->bbGetName()
00167                            <<"] --> BlackBoxInputConnector::RecursiveExecute() : "
00168                            <<"No connection or input not Out-of-date : nothing to do"
00169                            <<std::endl);
00170         else
00171           bbtkDebugMessage("process",5,
00172                            "[DEAD BOX] --> BlackBoxInputConnector::RecursiveExecute() : "
00173                            <<"No connection or input not Out-of-date : nothing to do"
00174                            <<std::endl);
00175           
00176       }
00177   }

Here is the call graph for this function:

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

Sets a connection.

Definition at line 133 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, bbtk::BlackBoxInputConnector::Pimpl::mBox, bbtk::BlackBoxInputConnector::Pimpl::mConnection, and p.

00134   { 
00135     bbtkDebugMessage("kernel",9,
00136                      "["<<p->mBox.lock()->bbGetName()
00137                      <<"] BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
00138     p->mConnection = c; 
00139   }

void bbtk::BlackBoxInputConnector::SetStatus ( IOStatus  s  ) 

Sets the status of the input.

Definition at line 115 of file bbtkBlackBoxInputConnector.cxx.

References bbtk::BlackBoxInputConnector::Pimpl::mStatus, and p.

Referenced by bbtk::BlackBox::bbSetStatusAndPropagate().

00116     { 
00117       p->mStatus = s; 
00118     }

Here is the caller graph for this function:

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 143 of file bbtkBlackBoxInputConnector.cxx.

References bbtkDebugMessage, bbtk::BlackBoxInputConnector::Pimpl::mBox, bbtk::BlackBoxInputConnector::Pimpl::mConnection, and p.

00144   { 
00145     bbtkDebugMessage("kernel",9,
00146                      "["<<p->mBox.lock()->bbGetName()
00147                      <<"] BlackBoxInputConnector::UnsetConnection("
00148                      <<c<<")"<<std::endl);
00149     p->mConnection = 0; 
00150   }


Member Data Documentation


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

Generated on Thu May 31 14:14:04 2012 for BBTK by  doxygen 1.5.7.1