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

Utility class to simplify factory access. More...

#include <afactory.h>

Collaboration diagram for adore::sim::SimFactoryInstance:
Collaboration graph

Static Public Member Functions

static adore::sim::AFactoryget ()
 
static void init (adore::sim::AFactory *factory)
 Initialize private members of AllFactory. More...
 

Private Member Functions

 SimFactoryInstance ()=default
 
 ~SimFactoryInstance ()=default
 
 SimFactoryInstance (const SimFactoryInstance &)=delete
 
SimFactoryInstanceoperator= (const SimFactoryInstance &)=delete
 
 SimFactoryInstance (SimFactoryInstance &&)=delete
 
SimFactoryInstanceoperator= (SimFactoryInstance &&)=delete
 

Static Private Member Functions

static SimFactoryInstancegetInstance ()
 Function to access singleton instance of the AllFactory using magic static. More...
 

Private Attributes

adore::sim::AFactoryfactory_ = 0
 

Detailed Description

Utility class to simplify factory access.

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

Constructor & Destructor Documentation

◆ SimFactoryInstance() [1/3]

adore::sim::SimFactoryInstance::SimFactoryInstance ( )
privatedefault

◆ ~SimFactoryInstance()

adore::sim::SimFactoryInstance::~SimFactoryInstance ( )
privatedefault

◆ SimFactoryInstance() [2/3]

adore::sim::SimFactoryInstance::SimFactoryInstance ( const SimFactoryInstance )
privatedelete

◆ SimFactoryInstance() [3/3]

adore::sim::SimFactoryInstance::SimFactoryInstance ( SimFactoryInstance &&  )
privatedelete

Member Function Documentation

◆ get()

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

◆ getInstance()

static SimFactoryInstance& adore::sim::SimFactoryInstance::getInstance ( )
inlinestaticprivate

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

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

◆ init()

static void adore::sim::SimFactoryInstance::init ( adore::sim::AFactory factory)
inlinestatic

Initialize private members of AllFactory.

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

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

◆ operator=() [1/2]

SimFactoryInstance& adore::sim::SimFactoryInstance::operator= ( const SimFactoryInstance )
privatedelete

◆ operator=() [2/2]

SimFactoryInstance& adore::sim::SimFactoryInstance::operator= ( SimFactoryInstance &&  )
privatedelete

Member Data Documentation

◆ factory_

adore::sim::AFactory* adore::sim::SimFactoryInstance::factory_ = 0
private

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