The MAUVE Toolchain
mauve::base::MuxPriorityReadPortCore< T, N > Struct Template Reference

Priority Multiplexer core with read ports. More...

#include <MuxPriority.hpp>

Inheritance diagram for mauve::base::MuxPriorityReadPortCore< T, N >:
Collaboration diagram for mauve::base::MuxPriorityReadPortCore< T, N >:

Public Member Functions

virtual bool accept (const T &t)
 Function to specify when to accept an incoming data. More...
 
read ()
 Read data.
 
- Public Member Functions inherited from mauve::runtime::Core< MuxPriorityReadPortShell< T, N > >
 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
 

Additional Inherited Members

- Protected Member Functions inherited from mauve::runtime::Core< MuxPriorityReadPortShell< T, N > >
 Core ()
 Default constructor. More...
 
virtual ~Core () noexcept
 Default descructor. More...
 
MuxPriorityReadPortShell< T, N > & 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...
 

Detailed Description

template<typename T, int N>
struct mauve::base::MuxPriorityReadPortCore< T, N >

Priority Multiplexer core with read ports.

Template Parameters
Ttype of ports data
Nnumber of read ports to mux

Member Function Documentation

template<typename T, int N>
bool mauve::base::MuxPriorityReadPortCore< T, N >::accept ( const T &  t)
virtual

Function to specify when to accept an incoming data.

Parameters
tincoming data
Returns
true if the data must be forwarded

Reimplemented in mauve::base::MuxPriorityReadPortCoreWithStatus< T, N >.