SIMLIB/C++  3.07
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
simlib3::Condition Class Reference

change detector - Boolean version (int) More...

#include <simlib.h>

Inheritance diagram for simlib3::Condition:
Inheritance graph
[legend]
Collaboration diagram for simlib3::Condition:
Collaboration graph
[legend]

Public Member Functions

 Condition (Input i)
 
 ~Condition ()
 
bool Value ()
 boolean state of condition More...
 
Input SetInput (Input inp)
 
- Public Member Functions inherited from simlib3::aCondition
 aCondition ()
 
 ~aCondition ()
 
- Public Member Functions inherited from simlib3::SimObject
bool TestAndSetFlag (bool new_value, unsigned n)
 internal method for flag manipulation is used for algebraic loop checking in continuous blocks More...
 
 SimObject ()
 constructor More...
 
virtual ~SimObject ()
 virtual destructor More...
 
void * operator new (size_t size)
 allocate object, set _flags More...
 
void operator delete (void *ptr)
 deallocate object More...
 
void * operator new[] (size_t size)=delete
 
void operator delete[] (void *ptr)=delete
 
bool isAllocated () const
 
virtual std::string Name () const
 get object name More...
 
bool HasName () const
 
void SetName (const std::string &name)
 assign the name More...
 
virtual void Output () const
 print object to default output More...
 

Protected Member Functions

virtual bool Test () override
 Condition::operator () More...
 
bool Up ()
 
bool Down ()
 
bool Change ()
 

Private Member Functions

virtual void Init () override
 initialize More...
 
virtual void SetNewStatus () override
 update More...
 

Private Attributes

Input in
 
unsigned char cc
 state More...
 
unsigned char ccl
 old state More...
 

Additional Inherited Members

- Public Types inherited from simlib3::SimObject
enum  _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 }
 
- Static Public Member Functions inherited from simlib3::aCondition
static void InitAll ()
 
static void SetAll ()
 
static void TestAll ()
 
static void AllActions ()
 
static bool isAny ()
 
- Protected Attributes inherited from simlib3::SimObject
unsigned _flags
 bool flags for internal use (TODO bitfield?) More...
 

Detailed Description

change detector - Boolean version (int)

Definition at line 1506 of file simlib.h.

Constructor & Destructor Documentation

◆ Condition()

simlib3::Condition::Condition ( Input  i)
explicit

Definition at line 75 of file cond.cc.

◆ ~Condition()

simlib3::Condition::~Condition ( )

Definition at line 82 of file cond.cc.

Member Function Documentation

◆ Change()

bool simlib3::Condition::Change ( )
inlineprotected

Definition at line 1516 of file simlib.h.

Referenced by Test().

◆ Down()

bool simlib3::Condition::Down ( )
inlineprotected

Definition at line 1515 of file simlib.h.

◆ Init()

void simlib3::Condition::Init ( )
overrideprivatevirtual

initialize

Implements simlib3::aCondition.

Definition at line 89 of file cond.cc.

References cc, and ccl.

◆ SetInput()

Input simlib3::Condition::SetInput ( Input  inp)
inline

Definition at line 1521 of file simlib.h.

References simlib3::Input::Set().

◆ SetNewStatus()

void simlib3::Condition::SetNewStatus ( )
overrideprivatevirtual

update

Implements simlib3::aCondition.

Definition at line 97 of file cond.cc.

References cc, and ccl.

◆ Test()

bool simlib3::Condition::Test ( )
overrideprotectedvirtual

◆ Up()

bool simlib3::Condition::Up ( )
inlineprotected

Definition at line 1514 of file simlib.h.

◆ Value()

bool simlib3::Condition::Value ( )
inline

boolean state of condition

Definition at line 1520 of file simlib.h.

Member Data Documentation

◆ cc

unsigned char simlib3::Condition::cc
private

state

Definition at line 1508 of file simlib.h.

Referenced by Init(), SetNewStatus(), and Test().

◆ ccl

unsigned char simlib3::Condition::ccl
private

old state

Definition at line 1509 of file simlib.h.

Referenced by Init(), and SetNewStatus().

◆ in

Input simlib3::Condition::in
private

Definition at line 1507 of file simlib.h.

Referenced by Test().


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