EagerDecoratorInterface Class Reference

#include <decorator.h>

Inheritance diagram for EagerDecoratorInterface:

Detailed Description

An eager decorator is a decorator which knows its decorated object already on construction (eagerly).

Public Member Functions

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

Private Member Functions

 MAXON_INTERFACE (EagerDecoratorInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.eagerdecorator")
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( EagerDecoratorInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.eagerdecorator"   
)
private

◆ PrivateSetDecoratedObject() [1/2]

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() [1/2]

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}

◆ PrivateSetDecoratedObject() [2/2]

MAXON_METHOD void PrivateSetDecoratedObject ( ObjectRef &&  object)

Sets the object where all calls should be forwarded to.

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

◆ SetDecoratedObject() [2/2]

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

Sets the object where all calls should be forwarded to.

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