The MAUVE Toolchain
mauve::runtime::RingBuffer< T > Class Template Referencefinal
Inheritance diagram for mauve::runtime::RingBuffer< T >:
Collaboration diagram for mauve::runtime::RingBuffer< T >:

Public Member Functions

 RingBuffer (std::string const &name, size_t size, T default_value)
 
 RingBuffer (RingBuffer const &other)=delete
 
void clear () override
 Clear the resource.
 
std::string display () const override
 
std::string type_name () const
 
- Public Member Functions inherited from mauve::runtime::Resource< SHELL, CORE, INTERFACE >
 Resource (std::string const &name)
 
 Resource (Resource const &other)=delete
 
void cleanup () override
 Cleanup the object.
 
bool cleanup_core () override
 Clean up the Core.
 
bool cleanup_interface () override
 Clean up the Interface.
 
bool cleanup_shell () override
 Clean up the shell.
 
bool clear_core () override
 Clear the Core.
 
bool clear_interface () override
 Clear the interface.
 
bool clear_shell () override
 Clear the shell.
 
bool configure () override
 Configure the object.
 
bool configure_core () override
 Configure the Core.
 
bool configure_interface () override
 Configure the Interface.
 
bool configure_shell () override
 Configure th shell.
 
CORE & core () const override
 Get the Core.
 
CORE * core_ptr () const override
 Get a pointer to the Core.
 
AbstractCoreget_core () const override
 Get a pointer to the Core.
 
AbstractInterfaceget_interface () const override
 Get a pointer to the Interface.
 
int get_service_index (const Service *service) const override
 
Shellget_shell () const override
 Get a pointer to the shell.
 
INTERFACE & interface () const override
 Get the interface.
 
bool is_configured () const override
 Get the configuration status of the configurable object. More...
 
bool is_empty () const override
 Check if the resource is empty.
 
bool is_empty_core () const override
 Check if the Core is empty.
 
bool is_empty_interface () const override
 Check if the Interface is empty.
 
bool is_empty_shell () const override
 Check if the shell is empty.
 
AbstractLoggerlogger () const override
 Get the logger.
 
template<typename... P>
bool make (P...parameters)
 
template<typename S , typename C , typename I , typename... P>
bool make (P...parameters)
 
template<typename... P>
bool make_core (P...parameters)
 
template<typename C , typename... P>
bool make_core (P...parameters)
 
template<typename... P>
bool make_interface (P...parameters)
 
template<typename I , typename... P>
bool make_interface (P...parameters)
 
template<typename... P>
bool make_shell (P...parameters)
 
template<typename S , typename... P>
bool make_shell (P...parameters)
 
Resourceoperator= (Resource const &other)=delete
 
template<typename C , typename... P>
bool replace_core (P...parameters)
 
template<typename I , typename... P>
bool replace_interface (P...parameters)
 
template<typename S , typename... P>
bool replace_shell (P...parameters)
 
SHELL & shell () const override
 Get the shell.
 
- Public Member Functions inherited from mauve::runtime::AbstractResource
 AbstractResource (std::string const &name)
 Constructor. More...
 
 AbstractResource (AbstractResource const &other)=delete
 Constructor. More...
 
std::string name () const overridefinal
 Get resource name.
 
std::string type_name () const
 Get resource type name.
 

Public Attributes

const T default_value
 
ReadService< StatusValue< T > > & read = mk_read_service<StatusValue<T>>("read", [this](){ return read_action(); })
 
ReadService< DataStatus > & read_status = mk_read_service<DataStatus>("read_status", [this](){ return read_status_action(); })
 
ReadService< T > & read_value = mk_read_service<T>("read_value", [this](){ return read_value_action(); })
 
EventServicereset = mk_event_service("reset", [this](){ reset_action(); })
 
const size_t size
 
WriteService< T > & write_service = mk_write_service<T>("write_service", [this](T value){ write_action(value); })