ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::fun::FunFactoryInstance Class Referencefinal

Utility class to simplify factory access. More...

#include <afactory.h>

Collaboration diagram for adore::fun::FunFactoryInstance:
Collaboration graph

Static Public Member Functions

static adore::fun::AFactoryget ()
 
static void init (adore::fun::AFactory *funFactory)
 Initialize private members of funFactory. More...
 

Private Member Functions

 FunFactoryInstance ()=default
 
 ~FunFactoryInstance ()=default
 
 FunFactoryInstance (const FunFactoryInstance &)=delete
 
FunFactoryInstanceoperator= (const FunFactoryInstance &)=delete
 
 FunFactoryInstance (FunFactoryInstance &&)=delete
 
FunFactoryInstanceoperator= (FunFactoryInstance &&)=delete
 

Static Private Member Functions

static FunFactoryInstancegetInstance ()
 Function to access singleton instance of the funFactory using magic static. More...
 

Private Attributes

adore::fun::AFactoryfunFactory_ = 0
 

Detailed Description

Utility class to simplify factory access.

init() function should be used once per process to set factories

Constructor & Destructor Documentation

◆ FunFactoryInstance() [1/3]

adore::fun::FunFactoryInstance::FunFactoryInstance ( )
privatedefault

◆ ~FunFactoryInstance()

adore::fun::FunFactoryInstance::~FunFactoryInstance ( )
privatedefault

◆ FunFactoryInstance() [2/3]

adore::fun::FunFactoryInstance::FunFactoryInstance ( const FunFactoryInstance )
privatedelete

◆ FunFactoryInstance() [3/3]

adore::fun::FunFactoryInstance::FunFactoryInstance ( FunFactoryInstance &&  )
privatedelete

Member Function Documentation

◆ get()

static adore::fun::AFactory* adore::fun::FunFactoryInstance::get ( )
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getInstance()

static FunFactoryInstance& adore::fun::FunFactoryInstance::getInstance ( )
inlinestaticprivate

Function to access singleton instance of the funFactory using magic static.

Returns
funFactory& reference on the threadsafe singleton instance
Here is the caller graph for this function:

◆ init()

static void adore::fun::FunFactoryInstance::init ( adore::fun::AFactory funFactory)
inlinestatic

Initialize private members of funFactory.

This function should ideally run only once per process before the singleton instance is used Makes no guarantees on thread-safety

Parameters
funFactory
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

FunFactoryInstance& adore::fun::FunFactoryInstance::operator= ( const FunFactoryInstance )
privatedelete

◆ operator=() [2/2]

FunFactoryInstance& adore::fun::FunFactoryInstance::operator= ( FunFactoryInstance &&  )
privatedelete

Member Data Documentation

◆ funFactory_

adore::fun::AFactory* adore::fun::FunFactoryInstance::funFactory_ = 0
private

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