GL Studio API
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
WeakReferenceableMixin Class Reference

#include <weak_referenceable_mixin.h>

Inheritance diagram for WeakReferenceableMixin:
WeakReferenceable DisplayObject DistiAttributeBase GLPolygon GLPolygonGlyph GlsCylinder GlsDynamicPath GlsEyePoint GlsGeometryResourceMesh GlsLightSource GlsLinearFloatController GlsNurbCurve GlsPathManager GlsSphere Group DistiAttribute< T > DistiAttributeAlias DistiAttributeConnectionGlsAngularScaleDataArray DistiAttributeConnectionGlsLinearScaleDataArray DistiAttributeDictionaryAttribute DistiAttributeDictionaryAttributeSibling DistiAttributeDoubleArray DistiAttributeDynamicArray< T, showIndex > DistiAttributeEnum< containerClass, setType, getType > DistiAttributeEnumDirect< enumType > DistiAttributeFilePathClass DistiAttributeFixedString DistiAttributeFloatArray DistiAttributeHomogeneousItemArray< T > DistiAttributeMeshFaceArray DistiAttributeStdMap< Map_t > DistiAttributeStdVector< T, showIndex > DistiAttributeString DistiAttributeVertexArray< T > DistiAttributeVertexArray< Vertex > DistiAttributeViewDataArray DistiEmptyAttribute TexturePalette::DistiAttributeTexturePalette TexturePalette::DistiAttributeTexturePalette_V21 DistiAttribute< std::string > DistiAttribute< unsigned char > DistiAttribute< Vertex > DistiAttributeEnum< containerClass, const int, int > DistiAttributeEnum< containerClass, int, int > DistiAttributeEnum< GlsEyePoint, GlsEyePoint::FovConstraintType, GlsEyePoint::FovConstraintType > DistiAttributeEnum< GlsLightSource, int, int > DistiAttributeEnum< GlsSphere, glsSphereMapping_e, glsSphereMapping_e > DistiAttributeEnumDirect< glsImageCodec > DistiAttributeVertexArray< Vector >

Public Member Functions

void AddWeakReference (WeakReference *weakRef)
 
void NotifyWeakReferenceDestroyed (WeakReference *ref)
 

Protected Member Functions

 WeakReferenceableMixin (void)
 
virtual ~WeakReferenceableMixin ()
 

Protected Attributes

DynamicArray< WeakReference * > * _weakRefs
 

Detailed Description

utility helper mixin class for simplifying implementing WeakReferenceable. Classes that want to implement WeakReferenceable can simply inherit this class

Constructor & Destructor Documentation

WeakReferenceableMixin ( void  )
inlineprotected

constructor

virtual ~WeakReferenceableMixin ( )
inlineprotectedvirtual

destructor. Notifies all weak references that this object is being deleted

Member Function Documentation

void AddWeakReference ( WeakReference weakRef)
inlinevirtual
See also
WeakReferenceable

Implements WeakReferenceable.

void NotifyWeakReferenceDestroyed ( WeakReference ref)
inlinevirtual
See also
WeakReferenceable

Implements WeakReferenceable.

Member Data Documentation

DynamicArray<WeakReference*>* _weakRefs
protected

pointer to array of weak refs. Allocated on the first call to GetWeakReference()


The documentation for this class was generated from the following file: