Program: bbtk
Module: $RCSfile: bbtkBlackBox.h,v $
Language: C++
- Date: $Date: 2009/04/08 07:56:11 $
- Version: $Revision: 1.23 $
+ Date: $Date: 2009/04/30 14:31:31 $
+ Version: $Revision: 1.24 $
=========================================================================*/
/* ---------------------------------------------------------------------
-
+ //==================================================================
+ /// System callback which calls bbUserConstructor for all its ancestors
+ /// and the box itself
+ virtual void bbConstructor() {}
+ /// System callback which calls bbUserDestructor for all its ancestors
+ /// and the box itself
+ virtual void bbDestructor() {}
+ //==================================================================
+
/// Returns true iff the BlackBox has an input of name label
/// 2) Releases the box descriptor
struct BBTK_EXPORT Deleter : public Object::Deleter
{
- Deleter();
- void Delete(Object* p);
+ Deleter();
+ int Delete(Object* p);
};
//==================================================================
//==================================================================
//==================================================================
- virtual void bbDelete() { delete this; }
+ virtual int bbDelete() { delete this; return 0; }
//==================================================================
//==================================================================
// ATTRIBUTES
+ /// Is the box "constructed" ? (initialized)
+ bool bbmConstructed;
/// Is the box executing ?
bool bbmExecuting;
/// The name of the black-box