SIMLIB/C++
3.07
|
Abstract 2D block with single 2D output. More...
#include <simlib2D.h>
Public Member Functions | |
aContiBlock2D () | |
~aContiBlock2D () | |
virtual void | _Eval () |
virtual Value2D | Value ()=0 |
void | Print () |
![]() | |
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 Attributes | |
bool | isEvaluated |
![]() | |
unsigned | _flags |
bool flags for internal use (TODO bitfield?) More... | |
Private Member Functions | |
virtual void | Eval () |
Additional Inherited Members | |
![]() | |
enum | _Flags { _CLEAR_ALL_FLAGS = 0, _ALLOCATED_FLAG = 1<<0, _EVAL_FLAG = 1<<1, _HAS_NAME_FLAG = 1<<2 } |
Abstract 2D block with single 2D output.
Definition at line 60 of file simlib2D.h.
simlib3::aContiBlock2D::aContiBlock2D | ( | ) |
Definition at line 92 of file simlib2D.cc.
References Dprintf.
simlib3::aContiBlock2D::~aContiBlock2D | ( | ) |
Definition at line 98 of file simlib2D.cc.
References Dprintf.
|
virtual |
Reimplemented in simlib3::_Norm2D, simlib3::_UMinus2D, simlib3::_Div2D, simlib3::_Mul2D1D, simlib3::_Sub2D, and simlib3::_Add2D.
Definition at line 113 of file simlib2D.cc.
References simlib3::AlgLoopDetected, Eval(), isEvaluated, and simlib3::SIMLIB_error().
|
inlineprivatevirtual |
Definition at line 64 of file simlib2D.h.
References simlib3::Value2D::Print().
Referenced by _Eval().
void simlib3::aContiBlock2D::Print | ( | ) |
Definition at line 105 of file simlib2D.cc.
References simlib3::Value2D::Print(), and Value().
|
pure virtual |
Implemented in simlib3::_Norm2D, simlib3::_UMinus2D, simlib3::_Div2D, simlib3::_Mul2D1D, simlib3::_Sub2D, simlib3::_Add2D, simlib3::Integrator2D, simlib3::Adaptor2D, simlib3::Expression2D, simlib3::Variable2D, and simlib3::Constant2D.
Referenced by Print(), and simlib3::Input2D::Value().
|
protected |
Definition at line 62 of file simlib2D.h.
Referenced by _Eval().