DUECA/DUSIME
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
dueca::ModuleState Struct Reference

Describes the state a module may be in. More...

#include <ModuleState.hxx>

Public Types

enum  Type {
  UnPrepared , InitialPrep , Safe , Prepared ,
  On , Neutral , Undefined
}
 Enum type for the different modulestate types. More...
 
typedef ModuleState __ThisDCOType__
 typedef for internal reference
 

Public Member Functions

 ModuleState ()
 default constructor.
 
 ModuleState (const Type &t)
 Constructor with arguments.
 
 ModuleState (const ModuleState &o)
 copy constructor.
 
 ModuleState (::dueca::AmorphReStore &r)
 constructor to restore an ModuleState from amorphous storage.
 
 ~ModuleState ()
 destructor.
 
void packData (::dueca::AmorphStore &s) const
 packs the ModuleState into amorphous storage.
 
void packDataDiff (::dueca::AmorphStore &s, const ModuleState &ref) const
 packs the ModuleState into amorphous storage.
 
void unPackData (::dueca::AmorphReStore &s)
 unpacks the ModuleState from an amorphous storage.
 
void unPackDataDiff (::dueca::AmorphReStore &s)
 unpacks the differences for ModuleState from an amorphous storage.
 
bool operator== (const ModuleState &o) const
 Test for equality.
 
bool operator!= (const ModuleState &o) const
 Test for inequality.
 
ModuleStateoperator= (const ModuleState &o)
 Assignment operator.
 
std::ostream & print (std::ostream &s) const
 prints the ModuleState to a stream.
 

Static Public Member Functions

static voidoperator new (size_t size)
 new operator "new", which places objects not on a heap, but in one of the memory arenas.
 
static void operator delete (void *p)
 new operator "delete", to go with the new version of operator new.
 
static voidoperator new (size_t size, ModuleState *&o)
 placement "new", needed for stl.
 

Public Attributes

Type t
 A class member.
 

Static Public Attributes

static const char *const classname
 The name of this class.
 
static const uint32_t magic_check_number
 a "magic" number, hashed out of the class definition, that will be used to check consistency of the sent objects across the dueca nodes.
 

Detailed Description

Describes the state a module may be in.

Member Enumeration Documentation

◆ Type

Enum type for the different modulestate types.

Enumerator
UnPrepared 

Existing, but cannot yet start.

InitialPrep 

Prepared to come to safe mode.

Safe 

Activities in safe mode, but not prepared to go on yet.

Prepared 

Prepared to be started further.

If there are critical activities, these are running in safe mode at least. Doubles as a command for going to this state.

On 

Activities in operating mode.

Doubles as a command.

Neutral 

Not a real state, for comparison/state joining purposes.

Undefined 

Not a valid state.

Member Function Documentation

◆ operator new()

static void * dueca::ModuleState::operator new ( size_t size)
static

new operator "new", which places objects not on a heap, but in one of the memory arenas.

This to speed up memory management.

◆ packDataDiff()

void dueca::ModuleState::packDataDiff ( ::dueca::AmorphStore & s,
const ModuleState & ref ) const

packs the ModuleState into amorphous storage.

only differences with a previous object are packed.


The documentation for this struct was generated from the following file: