Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
LazyInit_test::LazyDemo Struct Reference

Description

elaborate setup used for integration test

Definition at line 312 of file lazy-init-test.cpp.

Public Types

using Fun = std::function< int(int)>
 

Public Attributes

int seed {0}
 
Fun fun
 

Public Member Functions

template<typename FUN >
auto buildInit (FUN &&fun2install)
 
 LazyDemo ()
 
template<typename FUN , typename = disable_if_self<LazyDemo, FUN>>
 LazyDemo (FUN &&someFun)
 
template<typename FUN >
LazyDemo && attach (FUN &&someFun)
 
- Public Member Functions inherited from LazyInit< PAR >
template<class SIG , class INI , typename... ARGS>
 LazyInit (std::function< SIG > &targetFunctor, INI &&initialiser, ARGS &&...parentCtorArgs)
 prepare an initialiser to be activated on first use
 
 LazyInit (LazyInit const &ref)
 
 LazyInit (LazyInit &&rref)
 
LazyInitoperator= (LazyInit const &ref)
 
LazyInitoperator= (LazyInit &&rref)
 
bool isInit () const
 
template<class SIG >
void installEmptyInitialiser ()
 
template<class SIG , class INI >
void installInitialiser (std::function< SIG > &targetFunctor, INI &&initialiser)
 

Additional Inherited Members

- Protected Member Functions inherited from LazyInit< PAR >
template<typename... ARGS>
 LazyInit (MarkDisabled, ARGS &&...parentCtorArgs)
 

Constructor & Destructor Documentation

◆ LazyDemo() [1/2]

LazyDemo ( )
inline

Definition at line 346 of file lazy-init-test.cpp.

References LazyInit_test::LazyDemo::buildInit(), LazyInit_test::LazyDemo::fun, and LazyInit< PAR >::installInitialiser().

+ Here is the call graph for this function:

◆ LazyDemo() [2/2]

template<typename FUN , typename = disable_if_self<LazyDemo, FUN>>
LazyDemo ( FUN &&  someFun)
inline

Definition at line 354 of file lazy-init-test.cpp.

References LazyInit_test::LazyDemo::buildInit(), LazyInit_test::LazyDemo::fun, and LazyInit< PAR >::installInitialiser().

+ Here is the call graph for this function:

Member Typedef Documentation

◆ Fun

using Fun = std::function<int(int)>

Definition at line 315 of file lazy-init-test.cpp.

Member Function Documentation

◆ buildInit()

template<typename FUN >
auto buildInit ( FUN &&  fun2install)
inline

Definition at line 322 of file lazy-init-test.cpp.

Referenced by LazyInit_test::LazyDemo::LazyDemo(), LazyInit_test::LazyDemo::LazyDemo(), and LazyInit_test::LazyDemo::attach().

+ Here is the caller graph for this function:

◆ attach()

template<typename FUN >
LazyDemo && attach ( FUN &&  someFun)
inline

Definition at line 363 of file lazy-init-test.cpp.

References LazyInit_test::LazyDemo::buildInit(), LazyInit_test::LazyDemo::fun, and LazyInit< PAR >::installInitialiser().

Referenced by LazyInit_test::verify_complexUsageWithCopy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ seed

int seed {0}

Definition at line 317 of file lazy-init-test.cpp.

Referenced by LazyInit_test::verify_complexUsageWithCopy().

◆ fun

+ Inheritance diagram for LazyInit_test::LazyDemo:
+ Collaboration diagram for LazyInit_test::LazyDemo:

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