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

#include <action.hpp>

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

Public Member Functions

 Action (const pugi::xml_node &, Scope &)
 
auto accomplished () const -> bool override
 
auto endsImmediately () const -> bool
 
auto run () -> void override
 
auto start () -> void override
 
auto stop () -> void override
 
virtual auto evaluate () -> Object
 
- Public Member Functions inherited from openscenario_interpreter::Scope
 Scope ()=delete
 
 Scope (const Scope &)=default
 
 Scope (Scope &&)=default
 
 Scope (const OpenScenario *const)
 
 Scope (const std::string &, const Scope &)
 
auto dirname () const -> std::string
 
template<typename... Ts>
auto ref (Ts &&... xs) const -> decltype(auto)
 
template<typename T , typename... Ts>
auto ref (Ts &&... xs) const -> decltype(auto)
 
auto global () const -> const ScenarioDefinition &
 
auto global () -> ScenarioDefinition &
 
auto local () const noexcept -> const Scope &
 
auto local () noexcept -> Scope &
 
auto insert (const Name &, const Object &) -> void
 
- Public Member Functions inherited from openscenario_interpreter::Pointer< Expression >
decltype(auto) rebind (Ts &&... xs)
 
decltype(auto) binding () const
 
auto type () const -> const std::type_info &
 
auto is () const -> bool
 
auto is_also () const
 
auto as () const -> U &
 
decltype(auto) evaluate (Ts &&... xs) const
 
decltype(auto) accomplished (Ts &&... xs) const
 
decltype(auto) description (Ts &&... xs) const
 
- Public Member Functions inherited from openscenario_interpreter::syntax::StoryboardElement
 StoryboardElement (const Trigger &stop_trigger)
 
 StoryboardElement (const Trigger &start_trigger, const Trigger &stop_trigger)
 
 StoryboardElement (const std::size_t maximum_execution_count, const Trigger &start_trigger)
 
 StoryboardElement (const std::size_t maximum_execution_count=1)
 
auto state () const -> const auto &
 
template<StoryboardElementState::value_type State>
auto is () const
 
auto override ()
 
void addTransitionCallback (StoryboardElementState::value_type transition, std::function< void(const StoryboardElement &)> callback)
 
auto transitionTo (const Object &state) -> bool
 

Public Attributes

bool overridden = false
 
- Public Attributes inherited from openscenario_interpreter::Scope
const std::string name
 
std::list< Entityactors
 
double seed
 

Friends

auto operator<< (boost::json::object &, const Action &) -> boost::json::object &
 

Additional Inherited Members

- Static Public Member Functions inherited from openscenario_interpreter::Pointer< Expression >
static Pointer bind (Ts &&... xs)
 
- Protected Member Functions inherited from openscenario_interpreter::syntax::StoryboardElement
auto rename (const std::string &name) const
 
auto unique (const std::string &name)
 
template<typename U , typename Node , typename... Ts>
auto readStoryboardElement (const Node &node, Scope &inner_scope, Ts &&... xs)
 
template<typename U , typename Node , typename... Ts>
auto readCatalogedStoryboardElement (const Node &node, Scope &inner_scope, Ts &&... xs)
 
- Protected Attributes inherited from openscenario_interpreter::syntax::StoryboardElement
Trigger stop_trigger
 
const std::size_t maximum_execution_count = 1
 
std::size_t current_execution_count = 0
 
Object current_state = standby_state
 
Elements elements
 
Trigger start_trigger {{ConditionGroup()}}
 
std::unordered_set< std::string > names
 

Constructor & Destructor Documentation

◆ Action()

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

Member Function Documentation

◆ accomplished()

auto openscenario_interpreter::syntax::Action::accomplished ( ) const -> bool
overridevirtual

◆ endsImmediately()

auto openscenario_interpreter::syntax::Action::endsImmediately ( ) const -> bool

◆ evaluate()

virtual auto openscenario_interpreter::syntax::StoryboardElement::evaluate
inlinevirtual

◆ run()

auto openscenario_interpreter::syntax::Action::run ( ) -> void
overridevirtual

◆ start()

auto openscenario_interpreter::syntax::Action::start ( ) -> void
overridevirtual

◆ stop()

auto openscenario_interpreter::syntax::Action::stop ( ) -> void
overridevirtual

Friends And Related Function Documentation

◆ operator<<

auto operator<< ( boost::json::object &  json,
const Action datum 
) -> boost::json::object &
friend

Member Data Documentation

◆ overridden

bool openscenario_interpreter::syntax::Action::overridden = false

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