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

#include "steam/mobject/test-dummy-mobject.hpp"

Description

Test MObject subclass, which, contrary to any real MObject, can be created directly without involving MObjectFactory.

Definition at line 65 of file test-dummy-mobject.hpp.

Static Public Member Functions

static void killDummy (MObject *dum)
 

Public Member Functions

 DummyMO ()
 
 DummyMO (int i)
 
 DEFINE_PROCESSABLE_BY (BuilderTool)
 
virtual bool isValid () const
 MObject self-test (usable for asserting)
 
virtual string initShortID () const
 
virtual operator string () const
 
- Public Member Functions inherited from AbstractMO
DurationgetLength ()
 
bool isEquivalentTo (const MObject &oo) const override
 default/fallback implementation of equality using literal object identity (same address).
 
- Public Member Functions inherited from MObject
string const & shortID () const
 a short readable ID as a single name-token, denoting both the kind of MObject and some sort of instance identity.
 
- Public Member Functions inherited from Visitable< builder::BuilderTool >
virtual ReturnType apply (builder::BuilderTool &)=0
 to be defined by the DEFINE_PROCESSABLE_BY macro in all classes wanting to be treated by some tool
 

Protected Member Functions

string display (Symbol name) const
 
- Protected Member Functions inherited from AbstractMO
void throwIfInvalid () const
 
string buildShortID (lib::Literal typeID, string suffix="") const
 
- Protected Member Functions inherited from MObject
 MObject ()
 
virtual ~MObject ()
 
- Protected Member Functions inherited from Visitable< builder::BuilderTool >
virtual ~Visitable ()
 

Private Attributes

int id_
 

Additional Inherited Members

- Public Types inherited from Visitable< builder::BuilderTool >
using ReturnType = TOOL::ReturnType
 
- Static Public Attributes inherited from MObject
static session::MObjectFactory create
 Storage for the (single, static) MObject factory object.
 
- Protected Types inherited from MObject
typedef lib::time::Duration Duration
 
- Protected Types inherited from Visitable< builder::BuilderTool >
using ToolBase = TOOL::ToolBase
 
- Static Protected Member Functions inherited from Visitable< builder::BuilderTool >
static ReturnType dispatchOp (TAR &target, builder::BuilderTool &tool)
 
- Protected Attributes inherited from MObject
Duration length_
 
string shortID_
 

Constructor & Destructor Documentation

◆ DummyMO() [1/2]

DummyMO ( )
inline

Definition at line 70 of file test-dummy-mobject.hpp.

◆ DummyMO() [2/2]

DummyMO ( int  i)
inline

Definition at line 71 of file test-dummy-mobject.hpp.

Member Function Documentation

◆ DEFINE_PROCESSABLE_BY()

DEFINE_PROCESSABLE_BY ( BuilderTool  )

◆ isValid()

virtual bool isValid ( ) const
inlinevirtual

MObject self-test (usable for asserting)

Implements MObject.

Definition at line 75 of file test-dummy-mobject.hpp.

◆ initShortID()

virtual string initShortID ( ) const
inlinevirtual

Reimplemented from AbstractMO.

Definition at line 76 of file test-dummy-mobject.hpp.

References AbstractMO::buildShortID().

+ Here is the call graph for this function:

◆ operator string()

virtual operator string ( ) const
inlinevirtual

Reimplemented in TestSubMO1, TestSubMO2, and TestSubMO21.

Definition at line 77 of file test-dummy-mobject.hpp.

References DummyMO::display().

+ Here is the call graph for this function:

◆ killDummy()

static void killDummy ( MObject dum)
inlinestatic

Definition at line 78 of file test-dummy-mobject.hpp.

◆ display()

string display ( Symbol  name) const
inlineprotected

Definition at line 82 of file test-dummy-mobject.hpp.

References DummyMO::id_.

Referenced by DummyMO::operator string(), TestSubMO1::operator string(), TestSubMO2::operator string(), and TestSubMO21::operator string().

+ Here is the caller graph for this function:

Member Data Documentation

◆ id_

int id_
private

Definition at line 67 of file test-dummy-mobject.hpp.

Referenced by DummyMO::display().

+ Inheritance diagram for DummyMO:
+ Collaboration diagram for DummyMO:

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