Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TestAsset< A > Class Template Reference

#include "/Werk/devel/lumi/tests/core/steam/asset/testasset.hpp"

Description

template<class A>
class steam::asset::test::TestAsset< A >

Test(mock) asset subclass usable for hijacking a given asset class (template parameter) and subsequently accessing internal facilities for writing unit tests.

Prerequisite for using this template is that the used asset base class has a (protected) ctor taking an Asset::Ident....

Definition at line 43 of file testasset.hpp.

Public Types

using PA = lib::P< TestAsset< A > >
 

Static Public Member Functions

static PA create ()
 
static PA create (PAsset &pRef)
 

Public Member Functions

void call_unlink ()
 
void call_unlink (IDA target)
 
void set_depend (PAsset parent)
 

Private Member Functions

 TestAsset ()
 
 TestAsset (PAsset &)
 declared dependent on the given Asset
 
PA ptrFromThis ()
 

Static Private Member Functions

static void deleter (TestAsset< A > *aa)
 

Constructor & Destructor Documentation

◆ TestAsset() [1/2]

template<class A >
template TestAsset ( )
private

Definition at line 59 of file testasset.cpp.

◆ TestAsset() [2/2]

template<class A >
template TestAsset ( PAsset )
private

declared dependent on the given Asset

Definition at line 65 of file testasset.cpp.

Member Typedef Documentation

◆ PA

template<class A >
using PA = lib::P<TestAsset<A> >

Definition at line 51 of file testasset.hpp.

Member Function Documentation

◆ deleter()

template<class A >
static void deleter ( TestAsset< A > *  aa)
inlinestaticprivate

Definition at line 48 of file testasset.hpp.

◆ create() [1/2]

template<class A >
static PA create ( )
inlinestatic

Definition at line 53 of file testasset.hpp.

◆ create() [2/2]

template<class A >
static PA create ( PAsset pRef)
inlinestatic

Definition at line 54 of file testasset.hpp.

◆ call_unlink() [1/2]

template<class A >
void call_unlink ( )
inline

Definition at line 57 of file testasset.hpp.

◆ call_unlink() [2/2]

template<class A >
void call_unlink ( IDA  target)
inline

Definition at line 58 of file testasset.hpp.

◆ set_depend()

template<class A >
void set_depend ( PAsset  parent)
inline

Definition at line 59 of file testasset.hpp.

◆ ptrFromThis()

template<class A >
template lib::P< TestAsset< Unknown > > ptrFromThis ( )
private

helper for the create()-Functions retrieving the smart ptr created automatically within AssetManager by the Asset base class ctor

Definition at line 78 of file testasset.cpp.

References AssetManager::instance.

+ Inheritance diagram for TestAsset< A >:
+ Collaboration diagram for TestAsset< A >:

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