Program: bbtk
Module: $RCSfile: bbtkAny.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/20 16:05:38 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
class anyholder<ValueType*> : public anyplaceholder
{
public: // structors
-
+
anyholder(ValueType* const & value)
: held(value)
{ }
-
+
public: // queries
-
+
virtual const std::type_info & type() const
{
return typeid(ValueType*);
}
-
+
virtual bool is_pointer() const { return true; }
virtual const std::type_info & pointed_type() const { return typeid(ValueType); }
virtual void* get_pointer() const {
}
virtual anyplaceholder * clone() const { return new anyholder(held); }
-
+
public: // representation
-
+
ValueType* held;
-
+
};
//=========================================================
public:
typedef any< TypeTraits > self;
// structors
-
+
/// Default constructor
any()
: content(0)
{
}
-
+
/// Constructor with a value of template type
template<typename ValueType>
any(const ValueType & value)
{
delete content;
}
-
+
/// Swaps the content of this with another any
any & swap(any & rhs)
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.h,v $
Language: C++
- Date: $Date: 2008/02/07 11:06:37 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/20 16:05:38 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
///
/// First checks that re-processing is needed (either Status==MODIFIED or InputProcessMode==Always)
/// then :
- /// - updates its inputs by calling bbUpdateInputs (which recursively calls bbBackwardUpdate on amont boxes)
+ /// - updates its inputs by calling bbUpdateInputs (which recursively calls bbBackwardUpdate on upstream boxes)
/// - calls bbProcess which here simply calls the user callback bbUserProcess which does the actual processing.
/// bbProcess is overloaded in WxBlackBox to handle widget creation and show
IOStatus bbBackwardUpdate(Connection* caller);
Program: bbtk
Module: $RCSfile: bbtkBlackBox.cxx,v $
Language: C++
-Date: $Date: 2008/02/18 10:41:02 $
-Version: $Revision: 1.4 $
+Date: $Date: 2008/02/20 16:05:38 $
+Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
}
if (reaction) bbGlobalProcessExecutionList();
- bbtkDebugMessageDec("Process",5,
- "<= BlackBox::bbSignalOutputModification("
- <<output<<") ["
- <<bbGetFullName()<<"]"<<std::endl);
+ bbtkDebugMessageDec("Process",5,
+ "<= BlackBox::bbSignalOutputModification("
+ <<output<<") ["
+ <<bbGetFullName()<<"]"<<std::endl);
}
//=========================================================================
<<std::endl);
IOStatus s = UPTODATE;
-
+
InputConnectorMapType::iterator i;
for ( i = bbGetInputConnectorMap().begin();
i!= bbGetInputConnectorMap().end(); ++i)
Program: bbtk
Module: $RCSfile: bbtkBlackBox.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/20 16:05:38 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
///
/// First checks that re-processing is needed (either Status==MODIFIED or InputProcessMode==Always)
/// then :
- /// - updates its inputs by calling bbUpdateInputs (which recursively calls bbBackwardUpdate on amont boxes)
+ /// - updates its inputs by calling bbUpdateInputs (which recursively calls bbBackwardUpdate on upstream boxes)
/// - calls bbCreateWidget
/// - calls bbProcess which is the user callback which does the actual processing
/// - calls bbUpdateChildren
//==================================================================
/// Updates the BlackBox inputs and returns the final status of the inputs
/// (==UPTODATE iff all inputs are UPTODATE)
- // If excludeParent == true then excludes the amont box connected to input 'Parent' from recursive update
+ // If excludeParent == true then excludes the upstream box connected to input 'Parent' from recursive update
IOStatus bbUpdateInputs(bool excludeParent=false);
//==================================================================
//==================================================================
- /// Updates the pipeline in amont-aval direction along the "Child"-"Parent" connections only.
+ /// Updates the pipeline in upstream-downstream direction along the "Child"-"Parent" connections only.
/// Does nothing here. Overloaded in WxContainerBlackbox
//virtual void bbUpdateChildren( Connection* caller ) { }
//==================================================================
Program: bbtk
Module: $RCSfile: bbtkConnection.h,v $
Language: C++
- Date: $Date: 2008/01/22 15:02:00 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/02/20 16:05:38 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
const int UPTODATE = 1;
///
const int UPDATING = 2;
-
-
-
class BlackBox;
class BlackBoxInputConnector;
class BlackBoxOutputConnector;
-
-
class BBTK_EXPORT Connection
{
public:
~Connection();
/// Amont direction pipeline processing
- /// 1) call bbBackwardUpdate(this) on the amont box
- /// 2) copies the amont box output to the aval box input adapting it if needed
+ /// 1) call bbBackwardUpdate(this) on the upstream box
+ /// 2) copies the upstream box output to the downstream box input adapting it if needed
virtual IOStatus BackwardUpdate();
/// Aval direction pipeline processing :
- /// 1) copies the amont box output to the aval box input adapting it if needed
- /// 2) call bbForwardUpdate(this) on the aval box
+ /// 1) copies the upstream box output to the downstream box input adapting it if needed
+ /// 2) call bbForwardUpdate(this) on the downstream box
// virtual void ForwardUpdate();
-
virtual void SetModifiedStatus();
std::string GetFullName() const;
/// Returns the input of the final black box of the connection
const std::string& GetBlackBoxToInput() const { return mInput; }
-
-
protected:
/// Black box origin of the connection
BlackBox* mFrom;
/// Have to do dynamic_cast ?
bool mDoDynamicCast;
-
/// Ctor with the black box from and to and their input and output
/// and a dummy int to differentiate from the public constructor.
/// Sets the members but does not test compatibility (used by bbtk::AdaptiveConnection)
void TransferData();
};
-
}// namespace bbtk
-
-
#endif