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

continuous block connection (transparent reference) wrapper for pointer to objects of aContiBlock derived classes
(small object, without virtual methods)
It is used for referencing of continuous blocks in block-expressions. More...

#include <simlib.h>

Collaboration diagram for simlib3::Input:
Collaboration graph
[legend]

Public Member Functions

 Input (const Input &i)
 transparent copy of block reference More...
 
 Input (aContiBlock &cb)
 reference to block More...
 
 Input (aContiBlock *cb)
 pointer to block More...
 
 Input (const double c)
 create block of type Constant WARNING: using C++ variable in block expression creates Constant block More...
 
 ~Input ()
 
Input Set (Input i)
 Redirect the reference. More...
 
Inputoperator= (const Input &x)
 Redirect the reference. More...
 
double Value () const
 get target block value More...
 
bool operator== (aContiBlock *p) const
 

Private Member Functions

 Input ()=delete
 

Private Attributes

aContiBlockbp
 

Detailed Description

continuous block connection (transparent reference) wrapper for pointer to objects of aContiBlock derived classes
(small object, without virtual methods)
It is used for referencing of continuous blocks in block-expressions.

All references are transparent. There is a problem with initialization order. Using uninitialized Input is an error. If you need a block independent on initialization order, use Expression.

Definition at line 895 of file simlib.h.

Constructor & Destructor Documentation

◆ Input() [1/5]

simlib3::Input::Input ( )
privatedelete

◆ Input() [2/5]

simlib3::Input::Input ( const Input i)
inline

transparent copy of block reference

Definition at line 900 of file simlib.h.

References RegisterReference.

◆ Input() [3/5]

simlib3::Input::Input ( aContiBlock cb)
inline

reference to block

Definition at line 903 of file simlib.h.

References RegisterReference.

◆ Input() [4/5]

simlib3::Input::Input ( aContiBlock cb)
inline

pointer to block

Definition at line 904 of file simlib.h.

References RegisterReference.

◆ Input() [5/5]

simlib3::Input::Input ( const double  c)
inline

create block of type Constant WARNING: using C++ variable in block expression creates Constant block

Definition at line 908 of file simlib.h.

References RegisterReference.

◆ ~Input()

simlib3::Input::~Input ( )
inline

Definition at line 910 of file simlib.h.

References UnRegisterReference.

Member Function Documentation

◆ operator=()

Input& simlib3::Input::operator= ( const Input x)
inline

Redirect the reference.

Definition at line 923 of file simlib.h.

References bp, RegisterReference, and UnRegisterReference.

◆ operator==()

bool simlib3::Input::operator== ( aContiBlock p) const
inline

Definition at line 933 of file simlib.h.

◆ Set()

Input simlib3::Input::Set ( Input  i)
inline

Redirect the reference.

Definition at line 913 of file simlib.h.

References bp, RegisterReference, and UnRegisterReference.

Referenced by simlib3::Integrator::SetInput(), and simlib3::Condition::SetInput().

◆ Value()

double simlib3::Input::Value ( ) const
inline

Member Data Documentation

◆ bp

aContiBlock* simlib3::Input::bp
private

Definition at line 896 of file simlib.h.

Referenced by operator=(), and Set().


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