SObjectizer  5.5
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
so_5::layer_t Class Reference

An interface of the additional SObjectizer Environment layer. More...

#include <so_layer.hpp>

Public Member Functions

 layer_t ()=default
 
virtual ~layer_t () noexcept=default
 
virtual void start ()
 Start hook. More...
 
virtual void shutdown ()
 Shutdown signal hook. More...
 
virtual void wait ()
 Waiting for the complete shutdown of a layer. More...
 

Protected Member Functions

environment_tso_environment ()
 Access to the SObjectizer Environment. More...
 

Private Member Functions

 layer_t (const layer_t &)=delete
 
 layer_t (layer_t &&)=delete
 
layer_toperator= (const layer_t &)=delete
 
layer_toperator= (layer_t &&)=delete
 
void bind_to_environment (environment_t *env)
 Bind layer to the SObjectizer Environment. More...
 

Private Attributes

environment_tm_env {}
 SObjectizer Environment to which layer is bound. More...
 

Friends

class impl::layer_core_t
 

Detailed Description

An interface of the additional SObjectizer Environment layer.

Constructor & Destructor Documentation

◆ layer_t() [1/3]

so_5::layer_t::layer_t ( const layer_t )
privatedelete

◆ layer_t() [2/3]

so_5::layer_t::layer_t ( layer_t &&  )
privatedelete

◆ layer_t() [3/3]

so_5::layer_t::layer_t ( )
default

◆ ~layer_t()

virtual so_5::layer_t::~layer_t ( )
virtualdefaultnoexcept

Member Function Documentation

◆ bind_to_environment()

void so_5::layer_t::bind_to_environment ( environment_t env)
private

Bind layer to the SObjectizer Environment.

◆ operator=() [1/2]

layer_t& so_5::layer_t::operator= ( const layer_t )
privatedelete

◆ operator=() [2/2]

layer_t& so_5::layer_t::operator= ( layer_t &&  )
privatedelete

◆ shutdown()

void so_5::layer_t::shutdown ( )
virtual

Shutdown signal hook.

The default implementation do nothing.

◆ so_environment()

environment_t & so_5::layer_t::so_environment ( )
protected

Access to the SObjectizer Environment.

Throws an exception if a layer is not bound to the SObjectizer Environment.

◆ start()

void so_5::layer_t::start ( )
virtual

Start hook.

The default implementation do nothing.

◆ wait()

void so_5::layer_t::wait ( )
virtual

Waiting for the complete shutdown of a layer.

The default implementation do nothing and returned immediately.

Friends And Related Function Documentation

◆ impl::layer_core_t

friend class impl::layer_core_t
friend

Member Data Documentation

◆ m_env

environment_t* so_5::layer_t::m_env {}
private

SObjectizer Environment to which layer is bound.

Pointer has the actual value only after binding to the SObjectizer Environment.


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