FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CLogic Class Reference
+ Inheritance diagram for CLogic:
+ Collaboration diagram for CLogic:

Public Member Functions

 CLogic (std::string sSimObjectName, ISimObjectCreator *pCreator)
 The constructor sets the pointer to the output object and the parser object.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot) const
 
const double * Output (const double T, const double *const X)
 
- Public Member Functions inherited from fhsim_base::SignalBlock
 SignalBlock (const std::string &name, ISimObjectCreator *creator, PortWidthRule rule=PortWidthRule::DefaultOne)
 

Protected Types

enum  ELogicType { LogicType_OR , LogicType_XOR , LogicType_AND }
 An enumerator which tells which kind of logics is wanted.
 

Protected Attributes

std::vector< ISignalPort * > m_Input
 
int m_iNumInput
 
ELogicType m_ELogicType
 The type of logic.
 
- Protected Attributes inherited from fhsim_base::SignalBlock
std::vector< double > m_out
 The output buffer, PortWidth() elements. A block may resize it, for example to the width of an output port that differs from PortWidth.
 

Additional Inherited Members

- Public Types inherited from fhsim_base::SignalBlock
enum class  PortWidthRule { DefaultOne , Required }
 Whether the parameter PortWidth must be in the input file. More...
 
- Static Public Member Functions inherited from fhsim_base::SignalBlock
static int ReadCount (ISimObjectCreator *creator, const std::string &name, int defaultValue)
 
static int ReadCount (ISimObjectCreator *creator, const std::string &name)
 As above for a count that must be in the file.
 
- Protected Member Functions inherited from fhsim_base::SignalBlock
int PortWidth () const
 The number of elements in the signals of the block (the parameter PortWidth).
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name, double defaultValue) const
 
std::vector< double > ReadScalarOrVector (ISimObjectCreator *creator, const std::string &name) const
 

Member Data Documentation

◆ m_iNumInput

int CLogic::m_iNumInput
protected

The number of input ports


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