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

2D vector variable More...

#include <simlib2D.h>

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

Public Member Functions

 Variable2D (Value2D x=Value2D(0, 0))
 
Variable2Doperator= (Value2D x)
 
virtual Value2D Value () override
 
- Public Member Functions inherited from simlib3::aContiBlock2D
 aContiBlock2D ()
 
 ~aContiBlock2D ()
 
virtual void _Eval ()
 
void Print ()
 
- 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 Attributes

Value2D value
 
- Protected Attributes inherited from simlib3::aContiBlock2D
bool isEvaluated
 
- Protected Attributes inherited from simlib3::SimObject
unsigned _flags
 bool flags for internal use (TODO bitfield?) 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 }
 

Detailed Description

2D vector variable

Definition at line 87 of file simlib2D.h.

Constructor & Destructor Documentation

◆ Variable2D()

simlib3::Variable2D::Variable2D ( Value2D  x = Value2D(0,0))
inlineexplicit

Definition at line 91 of file simlib2D.h.

Member Function Documentation

◆ operator=()

Variable2D& simlib3::Variable2D::operator= ( Value2D  x)
inline

Definition at line 92 of file simlib2D.h.

References simlib3::Value2D::x().

◆ Value()

virtual Value2D simlib3::Variable2D::Value ( )
inlineoverridevirtual

Implements simlib3::aContiBlock2D.

Definition at line 94 of file simlib2D.h.

Member Data Documentation

◆ value

Value2D simlib3::Variable2D::value
protected

Definition at line 89 of file simlib2D.h.


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