The MAUVE Toolchain
mauve::runtime::Core< SHELL > Class Template Reference

The Core defines the methods of the component. More...

#include <Core.hpp>

Inheritance diagram for mauve::runtime::Core< SHELL >:
Collaboration diagram for mauve::runtime::Core< SHELL >:

Public Member Functions

 Core (Core const &core)=delete
 Constructor by copy. More...
 
void cleanup () overridefinal
 Cleanup the object.
 
bool configure () overridefinal
 Configure the object.
 
std::string container_name () const override
 Get the core container name.
 
bool is_configured () const overridefinal
 Get the configuration status of the configurable object. More...
 
AbstractLoggerlogger () const override
 Get the logger.
 
Coreoperator= (Core const &core)=delete
 Copy operator. More...
 
std::string shell_type_name () const override
 Get the shell type name. More...
 
- Public Member Functions inherited from mauve::runtime::AbstractCore
 AbstractCore ()
 Default constructor. More...
 
virtual ~AbstractCore () noexcept
 Default descructor. More...
 
virtual std::string to_string () const
 
std::string type_name () const
 Get type name. More...
 
- Public Member Functions inherited from mauve::runtime::HasProperty
const std::vector< AbstractProperty * > get_properties () const
 Get the properties of the shell. More...
 
std::size_t get_properties_size () const
 
AbstractPropertyget_property (std::string const &name) const
 
AbstractPropertyget_property (int index) const
 

Protected Member Functions

 Core ()
 Default constructor. More...
 
virtual ~Core () noexcept
 Default descructor. More...
 
SHELL & shell () const
 Access to the instantiated shell. More...
 
- Protected Member Functions inherited from mauve::runtime::HasProperty
template<typename T >
Property< T > & mk_property (std::string const &name, T init_value)
 Create a new property. More...
 
- Protected Member Functions inherited from mauve::runtime::WithHook
virtual void cleanup_hook ()
 Hook function called when cleaning the shell. More...
 
virtual bool configure_hook ()
 Hook function called when configuring the shell. More...
 

Friends

template<typename S , typename C , typename F >
class Component
 
template<typename C >
class ExecState
 
template<typename S , typename C , typename I >
class Resource
 
template<typename C >
class SynchroState
 

Detailed Description

template<typename SHELL>
class mauve::runtime::Core< SHELL >

The Core defines the methods of the component.

Template Parameters
SHELLShell instantiated by the core.

Constructor & Destructor Documentation

template<typename SHELL>
mauve::runtime::Core< SHELL >::Core ( Core< SHELL > const &  core)
delete

Constructor by copy.

Parameters
corethe core to copy
template<typename SHELL >
mauve::runtime::Core< SHELL >::Core ( )
protected

Default constructor.

template<typename SHELL >
mauve::runtime::Core< SHELL >::~Core ( )
protectedvirtualnoexcept

Default descructor.

Member Function Documentation

template<typename SHELL>
bool mauve::runtime::Core< SHELL >::is_configured ( ) const
inlinefinaloverridevirtual

Get the configuration status of the configurable object.

Returns
true if the object is configured

Implements mauve::runtime::Configurable.

template<typename SHELL>
Core& mauve::runtime::Core< SHELL >::operator= ( Core< SHELL > const &  core)
delete

Copy operator.

Parameters
corethe core to copy
Returns
this core
template<typename SHELL>
SHELL& mauve::runtime::Core< SHELL >::shell ( ) const
inlineprotected

Access to the instantiated shell.

Returns
a reference to the shell instance.
template<typename SHELL >
std::string mauve::runtime::Core< SHELL >::shell_type_name ( ) const
overridevirtual

Get the shell type name.

Returns
the type name of this instantiated shell

Implements mauve::runtime::AbstractCore.