The Vish Visualization Shell  0.3
Vish
Public Member Functions | List of all members
A< Object > Class Template Reference
Inheritance diagram for A< Object >:
MemCore::ReferenceCount MemCore::Intercube MemCore::ReferenceBase< A > MemCore::Intercube

Public Member Functions

 A (Object *SomeObject)
 Construct referer object from newly created objects, sets reference counts to zero.
 
- Public Member Functions inherited from MemCore::Intercube
void addInterface (const RefPtr< InterfaceBase > &I) const
 Add an interface class object.
 
template<class Data >
void addInterfaceData (const Data &D)
 Add data via an interface class object.
 
template<class Data , typename TypeSelector >
void addInterfaceData (const Data &D)
 Add data via an interface class object.
 
void clearInterfaces ()
 Remove all interfaces.
 
bool const_iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) const
 Constant iterator.
 
virtual RefPtr< InterfaceBasecreateInterface (const type_info &) const
 Virtual function which allows derived objects to create Interface objects on demand.
 
RefPtr< InterfaceBasefindInterface (const type_info &t) const
 Find a certain interface of specified type. More...
 
RefPtr< InterfaceBasegetInterface (const type_info &t)
 Retrieve an interface object from a certain type. More...
 
template<class Data >
bool gotNewInterfaceData (const Data &D)
 Check whether data on the given interface have changed, and if so, set new data as interface.
 
template<class Data >
bool gotNewInterfaceData (const mutex &M, const Data &D)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D, const Selector *S)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D, const Selector &S)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data >
bool hasChangedInterfaceData (const Data &D) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D, const Selector *) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D, const Selector &) const
 Check whether interface data have changed.
 
bool hasInterface (const type_info &t) const
 Check if some Interface might exist. More...
 
 Intercube ()
 Constructor.
 
bool iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP)
 Modifyable iterator.
 
void printInterfaces () const
 Debug function that prints the names of all interfaces.
 
void registerInterface (const type_info &t)
 Register an interface type; when the interface is actually required, the virtual createInterface() function will be called.
 
void removeInterface (const type_info &t)
 Remove an interface.
 
virtual ~Intercube ()
 Destructor.
 
- Public Member Functions inherited from MemCore::ReferenceBase< A >
long getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain. More...
 
bool isIdentical (const WeakPtrImpl< A, A > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g. More...
 
int refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (A *that) noexcept
 Constructor, initializes reference counter to zero.
 
const WeakPtrImpl< A, A > & self () const
 Return weak pointer to the object self. More...
 
void speak (const char *s, const char *prefix="") const noexcept
 Print a debug message with the class name preceded.
 
int wrefcount () const noexcept
 The weak reference count.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< A >
using reference_domain_t = A
 The type of the base class.
 
using SelfPtr_t = WeakPtrImpl< A, A >
 Type for a pointer to this object itself.
 
- Protected Types inherited from MemCore::ReferenceBase< A >
using reference_domain_t = A
 The type of the base class.
 
using SelfPtr_t = WeakPtrImpl< A, A >
 Type for a pointer to this object itself.
 
- Protected Member Functions inherited from MemCore::ReferenceCount
 ReferenceCount () noexcept
 Initialize reference counts to zero.
 
refcount_t get_pointers () const noexcept
 Return the weak reference count, i.e. More...
 
refcount_t get_refs () const noexcept
 Return the strong reference count, i.e. More...
 
- Protected Member Functions inherited from MemCore::Intercube
void addInterface (const RefPtr< InterfaceBase > &I) const
 Add an interface class object.
 
template<class Data >
void addInterfaceData (const Data &D)
 Add data via an interface class object.
 
template<class Data , typename TypeSelector >
void addInterfaceData (const Data &D)
 Add data via an interface class object.
 
void clearInterfaces ()
 Remove all interfaces.
 
bool const_iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP) const
 Constant iterator.
 
virtual RefPtr< InterfaceBasecreateInterface (const type_info &) const
 Virtual function which allows derived objects to create Interface objects on demand.
 
RefPtr< InterfaceBasefindInterface (const type_info &t) const
 Find a certain interface of specified type. More...
 
RefPtr< InterfaceBasegetInterface (const type_info &t)
 Retrieve an interface object from a certain type. More...
 
template<class Data >
bool gotNewInterfaceData (const Data &D)
 Check whether data on the given interface have changed, and if so, set new data as interface.
 
template<class Data >
bool gotNewInterfaceData (const mutex &M, const Data &D)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D, const Selector *S)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data , typename Selector >
bool gotNewInterfaceData (const mutex &M, const Data &D, const Selector &S)
 Check whether interface data have changed, if so, then set new interface data and return true.
 
template<class Data >
bool hasChangedInterfaceData (const Data &D) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D, const Selector *) const
 Check whether interface data have changed.
 
template<class Data , typename Selector >
bool hasChangedInterfaceData (const Data &D, const Selector &) const
 Check whether interface data have changed.
 
bool hasInterface (const type_info &t) const
 Check if some Interface might exist. More...
 
 Intercube ()
 Constructor.
 
bool iterateInterfaces (const RefPtr< InterfaceIterationParameter > &IIP)
 Modifyable iterator.
 
void printInterfaces () const
 Debug function that prints the names of all interfaces.
 
void registerInterface (const type_info &t)
 Register an interface type; when the interface is actually required, the virtual createInterface() function will be called.
 
void removeInterface (const type_info &t)
 Remove an interface.
 
virtual ~Intercube ()
 Destructor.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< A >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed. More...
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called). More...
 
virtual ~ReferenceBase ()
 Virtual destructor.
 
long getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain. More...
 
bool isIdentical (const WeakPtrImpl< A, A > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g. More...
 
int refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (A *that) noexcept
 Constructor, initializes reference counter to zero.
 
const WeakPtrImpl< A, A > & self () const
 Return weak pointer to the object self. More...
 
void speak (const char *s, const char *prefix="") const noexcept
 Print a debug message with the class name preceded.
 
int wrefcount () const noexcept
 The weak reference count.
 
- Protected Attributes inherited from MemCore::ReferenceCount
interlocked_t strong_refs
 Strong references.
 
interlocked_t weak_refs
 Weak references.
 
- Static Protected Attributes inherited from MemCore::ReferenceCount
static constexpr long fading_object_refcount = 0x35000000L
 Some unrealistically large value that is used during premature destruction of objects to indicate that they are still alive even though they will be killed soon after. More...
 

Detailed Description

template<class Object>
class A< Object >

Examples:
ComputeGridStreamLines.cpp, and ComputeMultiStreamLines.cpp.