GL Studio C++ Runtime API
WeakReferenceable Class Referenceabstract

#include <weak_reference.h>

Inheritance diagram for WeakReferenceable:
WeakReferenceableMixin DisplayFrame DisplayObject DistiAttributeBase ComponentBase RuntimeDisplayFrame GLPolygon GLPolygonGlyph GlsCylinder GlsDynamicPath GlsEyePoint GlsGeometryResourceMesh GlsLightSource GlsLinearFloatController GlsMapChart GlsMapGrid 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

virtual void AddWeakReference (WeakReference *weakRef)=0
 
virtual void NotifyWeakReferenceDestroyed (WeakReference *weakReference)=0
 

Detailed Description

Interface for getting a weak reference to an object. To implement this class, inherit from WeakReferenceableMixin (see DisplayObject as an example)

Member Function Documentation

virtual void AddWeakReference ( WeakReference weakRef)
pure virtual

Add a weak reference to this object, that gets notified when this object is destroyed. Does not take ownership of weakRef.

Parameters
weakRefthe weak reference to add.

Implemented in WeakReferenceableMixin.

virtual void NotifyWeakReferenceDestroyed ( WeakReference weakReference)
pure virtual

Notify this object that its weak reference is being destroyed

Implemented in WeakReferenceableMixin.


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