FlightGear next
FGXMLAutopilot::TFlipFlopImplementation Class Reference

Implements a T (toggle) flip flop. More...

Inherits FGXMLAutopilot::ClockedFlipFlopImplementation.

Public Member Functions

 TFlipFlopImplementation (bool rIsDominant=true)
 constructor for a TFlipFlopImplementation
 
virtual bool onRaisingEdge (DigitalComponent::InputMap input, bool &q)
 compute the output state according to the logic table on the raising edge of the clock
 
- Public Member Functions inherited from FGXMLAutopilot::ClockedFlipFlopImplementation
 ClockedFlipFlopImplementation (bool rIsDominant=true)
 constructor for a ClockedFlipFlopImplementation
 
virtual bool getState (double dt, DigitalComponent::InputMap input, bool &q)
 evaluates the output state from the input lines.
 
- Public Member Functions inherited from FGXMLAutopilot::RSFlipFlopImplementation
 RSFlipFlopImplementation (bool rIsDominant=true)
 
- Public Member Functions inherited from FGXMLAutopilot::FlipFlopImplementation
virtual ~FlipFlopImplementation ()
 
bool configure (SGPropertyNode &prop_root, SGPropertyNode &cfg)
 configure this component from a property node.
 
virtual bool isConfigProperty (const std::string &cfg_name) const
 

Additional Inherited Members

- Protected Member Functions inherited from FGXMLAutopilot::FlipFlopImplementation
virtual bool configure (SGPropertyNode &cfg_node, const std::string &cfg_name, SGPropertyNode &prop_root)
 configure this component from a property node.
 
- Protected Attributes inherited from FGXMLAutopilot::RSFlipFlopImplementation
bool _rIsDominant
 

Detailed Description

Implements a T (toggle) flip flop.

Definition at line 239 of file flipflop.cxx.

Constructor & Destructor Documentation

◆ TFlipFlopImplementation()

FGXMLAutopilot::TFlipFlopImplementation::TFlipFlopImplementation ( bool rIsDominant = true)
inline

constructor for a TFlipFlopImplementation

Parameters
rIsDominantboolean flag to signal if RESET shall be dominant (true) or SET shall be dominant (false)

Definition at line 245 of file flipflop.cxx.

Member Function Documentation

◆ onRaisingEdge()

virtual bool FGXMLAutopilot::TFlipFlopImplementation::onRaisingEdge ( DigitalComponent::InputMap input,
bool & q )
inlinevirtual

compute the output state according to the logic table on the raising edge of the clock

Parameters
inputa map of named input lines
qa reference to a boolean variable to receive the output state
Returns
true if the state has changed, false otherwise

Implements FGXMLAutopilot::ClockedFlipFlopImplementation.

Definition at line 253 of file flipflop.cxx.


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