SIMLIB/C++
3.07
|
#include <zdelay.h>
Public Member Functions | |
ZDelay (Input i, ZDelayTimer *clock=default_clock, double initvalue=0) | |
ZDelay (Input i, double initvalue) | |
~ZDelay () | |
void | Init (double iv) |
virtual void | Init () |
virtual double | Value () override |
get block output value this method should be defined in classes derived from aContiBlock More... | |
![]() | |
aContiBlock1 (Input i) | |
constructor for blocks with single input More... | |
double | InputValue () |
![]() | |
aContiBlock () | |
virtual void | _Eval () |
evaluate block (with loop detection) More... | |
![]() | |
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 void | SampleIn () |
virtual void | SampleOut () |
Protected Attributes | |
double | new_value |
double | old_value |
double | initval |
![]() | |
bool | isEvaluated |
![]() | |
unsigned | _flags |
bool flags for internal use (TODO bitfield?) More... | |
Static Protected Attributes | |
static ZDelayTimer * | default_clock = 0 |
Private Member Functions | |
ZDelay (const ZDelay &) | |
void | operator= (const ZDelay &) |
Private Attributes | |
double | input_value |
ZDelayTimer * | clock |
Friends | |
class | ZDelayTimer |
Additional Inherited Members | |
![]() | |
enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
|
private |
|
explicit |
Definition at line 197 of file zdelay.cc.
References clock, Dprintf, Init(), simlib3::ZDelayTimer::Register(), and SIMLIB_internal_error.
simlib3::ZDelay::ZDelay | ( | Input | i, |
double | initvalue | ||
) |
Definition at line 212 of file zdelay.cc.
References clock, Dprintf, Init(), simlib3::ZDelayTimer::Register(), and SIMLIB_internal_error.
simlib3::ZDelay::~ZDelay | ( | ) |
Definition at line 231 of file zdelay.cc.
References clock, Dprintf, and simlib3::ZDelayTimer::UnRegister().
void simlib3::ZDelay::Init | ( | double | iv | ) |
|
virtual |
|
private |
|
protectedvirtual |
Definition at line 254 of file zdelay.cc.
References Dprintf, input_value, and simlib3::aContiBlock1::InputValue().
|
protectedvirtual |
|
overridevirtual |
get block output value
this method should be defined in classes derived from aContiBlock
Implements simlib3::aContiBlock.
|
friend |
|
private |
Definition at line 59 of file zdelay.h.
Referenced by simlib3::ZDelayTimer::Register(), simlib3::ZDelayTimer::UnRegister(), ZDelay(), and ~ZDelay().
|
staticprotected |
Definition at line 69 of file zdelay.h.
Referenced by simlib3::SIMLIB_ZDelayTimer::InitAll().
|
protected |
|
private |
Definition at line 58 of file zdelay.h.
Referenced by Init(), SampleIn(), and SampleOut().
|
protected |
Definition at line 65 of file zdelay.h.
Referenced by Init(), and SampleOut().
|
protected |
Definition at line 66 of file zdelay.h.
Referenced by Init(), SampleOut(), and Value().