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

Utility class to simplify factory access. More...

#include <afactory.h>

Collaboration diagram for adore::env::EnvFactoryInstance:
Collaboration graph

Static Public Member Functions

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

Private Member Functions

 EnvFactoryInstance ()=default
 
 ~EnvFactoryInstance ()=default
 
 EnvFactoryInstance (const EnvFactoryInstance &)=delete
 
EnvFactoryInstanceoperator= (const EnvFactoryInstance &)=delete
 
 EnvFactoryInstance (EnvFactoryInstance &&)=delete
 
EnvFactoryInstanceoperator= (EnvFactoryInstance &&)=delete
 

Static Private Member Functions

static EnvFactoryInstancegetInstance ()
 Function to access singleton instance of the envFactory using magic static. More...
 

Private Attributes

adore::env::AFactoryenvFactory_ = 0
 

Detailed Description

Utility class to simplify factory access.

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

Constructor & Destructor Documentation

◆ EnvFactoryInstance() [1/3]

adore::env::EnvFactoryInstance::EnvFactoryInstance ( )
privatedefault

◆ ~EnvFactoryInstance()

adore::env::EnvFactoryInstance::~EnvFactoryInstance ( )
privatedefault

◆ EnvFactoryInstance() [2/3]

adore::env::EnvFactoryInstance::EnvFactoryInstance ( const EnvFactoryInstance )
privatedelete

◆ EnvFactoryInstance() [3/3]

adore::env::EnvFactoryInstance::EnvFactoryInstance ( EnvFactoryInstance &&  )
privatedelete

Member Function Documentation

◆ get()

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

◆ getInstance()

static EnvFactoryInstance& adore::env::EnvFactoryInstance::getInstance ( )
inlinestaticprivate

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

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

◆ init()

static void adore::env::EnvFactoryInstance::init ( adore::env::AFactory envFactory)
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

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

◆ operator=() [1/2]

EnvFactoryInstance& adore::env::EnvFactoryInstance::operator= ( const EnvFactoryInstance )
privatedelete

◆ operator=() [2/2]

EnvFactoryInstance& adore::env::EnvFactoryInstance::operator= ( EnvFactoryInstance &&  )
privatedelete

Member Data Documentation

◆ envFactory_

adore::env::AFactory* adore::env::EnvFactoryInstance::envFactory_ = 0
private

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