scenario_simulator_v2 C++ API
Public Member Functions | Public Attributes | List of all members
openscenario_interpreter::syntax::Trigger Struct Reference

#include <trigger.hpp>

Inheritance diagram for openscenario_interpreter::syntax::Trigger:
Inheritance graph
[legend]
Collaboration diagram for openscenario_interpreter::syntax::Trigger:
Collaboration graph
[legend]

Public Member Functions

 Trigger ()=default
 
 Trigger (const pugi::xml_node &, Scope &)
 
 Trigger (const std::list< ConditionGroup > &condition_groups)
 
auto activeConditionGroupIndex () const -> iterator::difference_type
 
auto activeConditionGroupDescription () const -> std::vector< std::pair< std::string, std::string >>
 
auto evaluate () -> Object
 

Public Attributes

bool current_value
 

Constructor & Destructor Documentation

◆ Trigger() [1/3]

openscenario_interpreter::syntax::Trigger::Trigger ( )
default

◆ Trigger() [2/3]

openscenario_interpreter::syntax::Trigger::Trigger ( const pugi::xml_node &  node,
Scope scope 
)
explicit

◆ Trigger() [3/3]

openscenario_interpreter::syntax::Trigger::Trigger ( const std::list< ConditionGroup > &  condition_groups)
inlineexplicit

Member Function Documentation

◆ activeConditionGroupDescription()

auto openscenario_interpreter::syntax::Trigger::activeConditionGroupDescription ( ) const -> std::vector<std::pair<std::string, std::string>>

◆ activeConditionGroupIndex()

auto openscenario_interpreter::syntax::Trigger::activeConditionGroupIndex ( ) const -> iterator::difference_type

◆ evaluate()

auto openscenario_interpreter::syntax::Trigger::evaluate ( ) -> Object

Member Data Documentation

◆ current_value

bool openscenario_interpreter::syntax::Trigger::current_value

The documentation for this struct was generated from the following files: