#include <TFBase.h>
Inheritance diagram for TFBaseSP:
Text object-name | |
from SimBase | |
std::string | getObjName () |
std::string | getName () |
void | setName (std::string name) |
void | setName (const char *name) |
Debug prints | |
from SimBase: These print the object name with the error, mostly for convenience, but they are compiled to inline-no-op if you build in release mode | |
void | derr (const char *when, const char *where=0) const |
template<class T> void | derr (const char *when, const char *where, const T stuff) const |
Modification, AKA "changed" | |
from SimBase: id based, you can capture the current id for comparison later, if the id's don't match the class has been changed | |
virtual int | getChangeID () const |
virtual void | setChanged () |
Serialization: | |
from SimBase You MUST override these pure virtual functions, they "should" do something usefull. It is also nice if you declare a static std::istream &create(std::istream &is) const; function, to create a class from a stream. This is done on a per-concrete class basis.
These aren't pure virutal yet, but will be soon! | |
virtual std::ostream & | saveSelf (std::ostream &os) |
serialize | |
virtual std::istream & | readSelf (std::istream &is) |
unserialize | |
Public Types | |
typedef gutz::SmartPtrRef< TFGeneric > | btype |
typedef SmartPtr< TFGeneric > | type |
Public Member Functions | |
TFBaseSP () | |
TFBaseSP (VolumeSP vol) | |
TFBaseSP (TFGeneric *tf) | |
TFBaseSP (const TFBaseSP &tfbsp) | |
we are not really a reference, we are a double indirection thingy, not really a pointer pointer, not really a ref either. | |
TFBaseSP & | operator= (const TFBaseSP &tfbsp) |
virtual | ~TFBaseSP () |
virtual int | getChangeID () |
if you are keeping track of changes yourself use this function, if you want to use this object as an observer, DO NOT use this one, use the functions below | |
bool | tfChanged () const |
if you have one of thses objects, you don't need to keep track of the change id yourself. | |
void | updateChanged () |
TFGeneric * | getPtr () |
TFGenericconst * | getPtr () const |
TFGeneric * | operator-> () |
TFGenericconst * | operator-> () const |
TFGeneric & | operator * () |
TFGenericconst & | operator * () const |
operator T * () | |
Implicit conversion to T* (for function calls). | |
bool | operator! () const |
bool | operator== (const TFGeneric *ptr) const |
bool | operator== (const SmartPtrRef &sp) const |
bool | operator!= (const TFGeneric *ptr) const |
bool | operator!= (const SmartPtrRef &sp) const |
bool | operator< (const SmartPtrRef &sp) const |
these may or maynot be what you want! be carefull | |
bool | operator<= (const SmartPtrRef &sp) const |
bool | operator> (const SmartPtrRef &sp) const |
bool | operator>= (const SmartPtrRef &sp) const |
bool | isNull () const |
for convienence since if(mySP) is always true, use if(!myPtr.isNull())... | |
Protected Member Functions | |
void | assign (type *ref) |
Protected Attributes | |
int | _lastChanged |
type * | _ref |
Private from here down. | |
std::string | _name_ |
a text name for the object, SimBase | |
int | _changed |
change id, incremented whenever setChanged is called, SimBase |
|
|
|
Definition at line 318 of file smartptr.h. |
|
Definition at line 163 of file TFBase.h. References _lastChanged, gutz::SmartPtrRef< TFGeneric >::_ref, and getChangeID(). |
|
Definition at line 168 of file TFBase.h. References _lastChanged, gutz::SmartPtrRef< TFGeneric >::_ref, and getChangeID(). |
|
Definition at line 173 of file TFBase.h. References _lastChanged, gutz::SmartPtrRef< TFGeneric >::_ref, and getChangeID(). |
|
we are not really a reference, we are a double indirection thingy, not really a pointer pointer, not really a ref either. this means that we have to copy the pointer inside the ref for copy and assignment so that changes are reflected everywhere. Definition at line 183 of file TFBase.h. References _lastChanged, and gutz::SmartPtrRef< TFGeneric >::assign(). |
|
|
|
add a reference to the new guy deleting the old guy just a dec most of the time but if we are the last reference, nuke it Definition at line 387 of file smartptr.h. Referenced by operator=(), and TFBaseSP(). |
|
only prints in debug mode, -D_DEBUG Definition at line 130 of file simBase.h. References SimBase::_name_. |
|
|
Definition at line 73 of file simBase.h. References SimBase::_changed. |
|
if you are keeping track of changes yourself use this function, if you want to use this object as an observer, DO NOT use this one, use the functions below
Reimplemented from SimBase. Definition at line 203 of file TFBase.h. References _lastChanged, SimBase::getChangeID(), and SimBase::setChanged(). Referenced by TFBaseSP(). |
|
Definition at line 45 of file simBase.h. References SimBase::_name_. Referenced by MetaProg::operator<<(). |
|
Definition at line 44 of file simBase.h. References string. |
|
Definition at line 330 of file smartptr.h. |
|
Definition at line 329 of file smartptr.h. |
|
for convienence since if(mySP) is always true, use if(!myPtr.isNull())...
Definition at line 380 of file smartptr.h. Referenced by TFItemVec::update(). |
|
Definition at line 355 of file smartptr.h. |
|
Definition at line 354 of file smartptr.h. |
|
Implicit conversion to T* (for function calls).
Definition at line 360 of file smartptr.h. |
|
Definition at line 367 of file smartptr.h. |
|
Definition at line 371 of file smartptr.h. |
|
Definition at line 370 of file smartptr.h. |
|
Definition at line 347 of file smartptr.h. |
|
Definition at line 346 of file smartptr.h. |
|
these may or maynot be what you want! be carefull
Definition at line 373 of file smartptr.h. |
|
Definition at line 374 of file smartptr.h. |
|
Definition at line 189 of file TFBase.h. References _lastChanged, gutz::SmartPtrRef< TFGeneric >::_ref, gutz::SmartPtrRef< TFGeneric >::assign(), and SimBase::setChanged(). |
|
Definition at line 369 of file smartptr.h. |
|
Definition at line 368 of file smartptr.h. |
|
Definition at line 375 of file smartptr.h. |
|
Definition at line 376 of file smartptr.h. |
|
unserialize
Reimplemented in SimCore, and VolRenBase. |
|
serialize
Reimplemented in SimCore, and VolRenBase. |
|
Definition at line 74 of file simBase.h. References SimBase::_changed. Referenced by TFEltSP::getChangeID(), getChangeID(), operator=(), and TFGeneric::update(). |
|
Definition at line 47 of file simBase.h. References SimBase::_name_, and name. |
|
Reimplemented in Key. Definition at line 46 of file simBase.h. References SimBase::_name_, and name. Referenced by EventData::EventData(), and GenDataObj_base< Nrro, gutz::SmartPtr< Nrro > >::GenDataObj_base(). |
|
if you have one of thses objects, you don't need to keep track of the change id yourself. use these functions to see if the tf has changed since the last time you called "updateChanged()" Definition at line 215 of file TFBase.h. References _lastChanged. |
|
Definition at line 216 of file TFBase.h. References _lastChanged. |
|
change id, incremented whenever setChanged is called, SimBase
Definition at line 103 of file simBase.h. Referenced by SimBase::getChangeID(), SimBase::setChanged(), and SimBase::SimBase(). |
|
Definition at line 219 of file TFBase.h. Referenced by getChangeID(), operator=(), TFBaseSP(), tfChanged(), and updateChanged(). |
|
a text name for the object, SimBase
Definition at line 101 of file simBase.h. Referenced by SimBase::derr(), SimBase::getName(), SimBase::setName(), and SimBase::SimBase(). |
|
Private from here down.
Definition at line 385 of file smartptr.h. Referenced by operator=(), and TFBaseSP(). |