Program: bbtk
Module: $RCSfile: bbtkBlackBoxInputConnector.h,v $
Language: C++
- Date: $Date: 2008/12/08 13:05:59 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2009/06/08 14:50:03 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
#define __bbtkBlackBoxInputConnector_h__
#include "bbtkConnection.h"
+#include "bbtkPimpl.h"
#include <vector>
namespace bbtk
BlackBoxInputConnector(BlackBoxPointer b);
/// Dtor
~BlackBoxInputConnector();
+
/// Sets a connection
void SetConnection(Connection* c);
/// Unsets the connection
/// The parameter is USELESS today but would be useful if we allow multiple connections on inputs
void UnsetConnection(Connection* c);
-
- // IOStatus
- void BackwardUpdate();
-
- /// Returns the ChangeTime of the output (const)
- // const ChangeTime& GetChangeTime() const { return mChangeTime; }
- /// Returns the ChangeTime of the output
- // ChangeTime& GetChangeTime() { return mChangeTime; }
- // bool SetChangeTime(const ChangeTime& t) { return mChangeTime.Set(t); }
-
/// Returns the connection plugged into this input (const)
- Connection* GetConnection() const { return mConnection; }
+ Connection* GetConnection() const;
/// Returns true iff a connection is connected to it
- bool IsConnected() const { return (mConnection != 0); }
+ bool IsConnected() const;
+ // Recursive execution
+ void RecursiveExecute();
+
+
/// Returns the status of the input
- IOStatus GetStatus() const { return mStatus; }
+ IOStatus GetStatus() const;
/// Sets the status of the input
- void SetStatus(IOStatus s) { mStatus = s; }
-
+ void SetStatus(IOStatus s);
-
/// Returns the black box which owns the connector
- BlackBoxPointer GetBlackBox() const { return mBox.lock(); }
- private:
- ///
- BlackBoxWeakPointer mBox;
- /// The connection plugged into the input
- Connection* mConnection;
- /// The status of the input (UPTODATE | MODIFIED | OUTOFDATE)
- IOStatus mStatus;
-
- // The change time
- // ChangeTime mChangeTime;
+ BlackBoxPointer GetBlackBox() const;
- /*
- /// Returns the TimeStamp
- const TimeStamp& GetTimeStamp() const { return mTimeStamp;}
- TimeStamp& GetTimeStamp() { return mTimeStamp;}
- /// Set the connector to MODIFIED status and increments the time stamp
- void SetModified()
- { mStatus = MODIFIED; mTimeStamp.Modified(); }
- /// The TimeStamp
- TimeStamp mTimeStamp;
- */
+
+ /// Private implementation
+ BBTK_DECLARE_PIMPL(BlackBoxInputConnector);
+
+ private:
+ /// Purposedly not implemented
+ BlackBoxInputConnector(const BlackBoxInputConnector&);
};
}