WeakDecoratorInterface Class Reference

#include <decorator.h>

Inheritance diagram for WeakDecoratorInterface:

Detailed Description

A weak decorator is a decorator which stores its decorated object as a weak reference.

Public Member Functions

MAXON_METHOD void PrivateSetDecoratedObject (const ObjectRef &object)
 
template<typename INTERFACE >
MAXON_FUNCTION void SetDecoratedObject (const ObjectBaseRef< INTERFACE > &object)
 

Private Member Functions

 MAXON_INTERFACE (WeakDecoratorInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.weakdecorator")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( WeakDecoratorInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.weakdecorator"   
)
private

◆ PrivateSetDecoratedObject()

MAXON_METHOD void PrivateSetDecoratedObject ( const ObjectRef &  object)

Sets the object where all calls should be forwarded to.

Parameters
[in]objectThe object to decorate. @MAXON_ANNOTATION{refclass=false}

◆ SetDecoratedObject()

MAXON_FUNCTION void SetDecoratedObject ( const ObjectBaseRef< INTERFACE > &  object)

Sets the object where all calls should be forwarded to.

Parameters
[in]objectThe object to decorate. @MAXON_ANNOTATION{interfaceParameter=INTERFACE}