Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
ClonedContext Class Reference

#include "steam/control/command-impl-clone-builder.hpp"

Description

Definition at line 64 of file command-impl-clone-builder.hpp.

Public Member Functions

template<typename ARG >
 ClonedContext (ARG const &origArgHolder, TypedAllocationManager &allocator)
 
- Public Member Functions inherited from CloneContext
virtual ~CloneContext ()
 

Private Member Functions

virtual UndoMutation constgetUndoFunc ()
 
virtual PClo constgetClosure ()
 
virtual bool isValid ()
 
template<typename ARG >
ARGdowncast ()
 helper for accessing the new cloned closure through the specific concrete type.
 

Private Attributes

PClo newClosure_
 
UndoMutation newUndoFunctor_
 

Constructor & Destructor Documentation

◆ ClonedContext()

template<typename ARG >
ClonedContext ( ARG const origArgHolder,
TypedAllocationManager allocator 
)
inline

Definition at line 93 of file command-impl-clone-builder.hpp.

Member Function Documentation

◆ getUndoFunc()

virtual UndoMutation const & getUndoFunc ( )
inlineprivatevirtual

Reimplemented from CloneContext.

Definition at line 70 of file command-impl-clone-builder.hpp.

References ClonedContext::newUndoFunctor_.

◆ getClosure()

virtual PClo const & getClosure ( )
inlineprivatevirtual

Reimplemented from CloneContext.

Definition at line 71 of file command-impl-clone-builder.hpp.

References ClonedContext::newClosure_.

◆ isValid()

virtual bool isValid ( )
inlineprivatevirtual

Reimplemented from CloneContext.

Definition at line 72 of file command-impl-clone-builder.hpp.

◆ downcast()

template<typename ARG >
ARG & downcast ( )
inlineprivate

helper for accessing the new cloned closure through the specific concrete type.

As we need to access the closure later, after discarding the exact type, we can store only a baseclass pointer.

Definition at line 82 of file command-impl-clone-builder.hpp.

References INSTANCEOF, and ClonedContext::newClosure_.

Member Data Documentation

◆ newClosure_

PClo newClosure_
private

◆ newUndoFunctor_

UndoMutation newUndoFunctor_
private

Definition at line 68 of file command-impl-clone-builder.hpp.

Referenced by ClonedContext::getUndoFunc().

+ Inheritance diagram for ClonedContext:
+ Collaboration diagram for ClonedContext:

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