replicode
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
Module< U > Class Template Reference

#include <application.h>

Inheritance diagram for Module< U >:
Inheritance graph
Collaboration diagram for Module< U >:
Collaboration graph

Public Member Functions

virtual ~Module ()
 
void _start ()
 
void _stop ()
 
void notify (_Payload *p)
 
void notify (uint16_t sid, _Payload *p)
 
module::_Module::Decision dispatch (_Payload *p)
 
- Public Member Functions inherited from mBrane::sdk::Object< Memory, module::_Module, U >
void * operator new (size_t s)
 
void operator delete (void *o)
 
- Public Member Functions inherited from mBrane::sdk::module::_Module
virtual ~_Module ()
 
virtual void loadParameters (const std::vector< int32_t > &numbers, const std::vector< std::string > &strings)
 
uint8_tpriority ()
 
bool canMigrate ()
 
bool isReady ()
 
virtual uint32_t dumpSize ()
 
virtual _Payloaddump ()
 
virtual void load (_Payload *chunk)
 
virtual void migrateOut ()
 
virtual void migrateIn ()
 
virtual void notify (_Payload *p)=0
 
virtual void notify (uint16_t sid, _Payload *p)=0
 
virtual Decision dispatch (_Payload *p)=0
 
- Public Member Functions inherited from core::_Object
virtual ~_Object ()
 
void incRef ()
 
virtual void decRef ()
 

Static Public Member Functions

static const uint16_t CID ()
 
static module::_Module * New ()
 
- Static Public Member Functions inherited from mBrane::sdk::Object< Memory, module::_Module, U >
static size_t Size ()
 

Protected Member Functions

 Module (bool canMigrate=true)
 
- Protected Member Functions inherited from mBrane::sdk::Object< Memory, module::_Module, U >
 Object ()
 
- Protected Member Functions inherited from mBrane::sdk::module::_Module
 _Module ()
 
void sleep (int64_t d)
 
void wait (std::thread *threads[], uint32_t threadCount)
 
void wait (std::thread *_thread)
 
- Protected Member Functions inherited from core::_Object
 _Object ()
 

Static Protected Attributes

static const uint16_t _CID = ModuleRegister::Load(New, U::ClassName)
 

Additional Inherited Members

- Public Types inherited from mBrane::sdk::module::_Module
enum  Decision { DISCARD = 0, WAIT = 1, PREEMPT = 2 }
 
- Protected Attributes inherited from mBrane::sdk::module::_Module
uint16_t _cid
 
uint16_t _id
 
bool _canMigrate
 
uint8_t _priority
 
bool _ready
 
- Protected Attributes inherited from core::_Object
std::atomic_int refCount
 

Constructor & Destructor Documentation

template<class U >
Module< U >::Module ( bool  canMigrate = true)
inlineprotected

Here is the call graph for this function:

template<class U >
virtual Module< U >::~Module ( )
inlinevirtual

Member Function Documentation

template<class U >
void Module< U >::_start ( )
inlinevirtual
template<class U >
void Module< U >::_stop ( )
inlinevirtual
template<class U >
static const uint16_t Module< U >::CID ( )
inlinestatic
template<class U >
module::_Module::Decision Module< U >::dispatch ( _Payload *  p)
inline
template<class U >
static module::_Module* Module< U >::New ( )
inlinestatic
template<class U >
void Module< U >::notify ( _Payload *  p)
inline
template<class U >
void Module< U >::notify ( uint16_t  sid,
_Payload *  p 
)
inline

Member Data Documentation

template<class U >
const uint16_t Module< U >::_CID = ModuleRegister::Load(New, U::ClassName)
staticprotected

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