scenario_simulator_v2 C++ API
Classes | Public Member Functions | Public Attributes | List of all members
openscenario_interpreter::Scope Class Reference

#include <scope.hpp>

Inherited by openscenario_interpreter::syntax::AcquirePositionAction [private], openscenario_interpreter::syntax::Act, openscenario_interpreter::syntax::Action, openscenario_interpreter::syntax::AddEntityAction [private], openscenario_interpreter::syntax::AssignRouteAction [private], openscenario_interpreter::syntax::ByEntityCondition [private], openscenario_interpreter::syntax::ByObjectType, openscenario_interpreter::syntax::CollisionCondition [private], openscenario_interpreter::syntax::Controller, openscenario_interpreter::syntax::ControllerAction [private], openscenario_interpreter::syntax::CustomCommandAction [private], openscenario_interpreter::syntax::DistanceCondition [private], openscenario_interpreter::syntax::DistributionRange [private], openscenario_interpreter::syntax::DistributionSet [private], openscenario_interpreter::syntax::EntitySelection, openscenario_interpreter::syntax::Environment, openscenario_interpreter::syntax::Event [private], openscenario_interpreter::syntax::FollowTrajectoryAction [private], openscenario_interpreter::syntax::Histogram [private], openscenario_interpreter::syntax::LaneChangeAction [private], openscenario_interpreter::syntax::Maneuver, openscenario_interpreter::syntax::ManeuverGroup, openscenario_interpreter::syntax::MiscObject, openscenario_interpreter::syntax::NormalDistribution [private], openscenario_interpreter::syntax::OpenScenario, openscenario_interpreter::syntax::ParameterCondition [private], openscenario_interpreter::syntax::ParameterModifyAction, openscenario_interpreter::syntax::ParameterSetAction [private], openscenario_interpreter::syntax::ParameterValueSet [private], openscenario_interpreter::syntax::Pedestrian, openscenario_interpreter::syntax::PoissonDistribution [private], openscenario_interpreter::syntax::Private, openscenario_interpreter::syntax::ProbabilityDistributionSet [private], openscenario_interpreter::syntax::RelativeClearanceCondition [private], openscenario_interpreter::syntax::RelativeDistanceCondition [private], openscenario_interpreter::syntax::RelativeSpeedCondition [private], openscenario_interpreter::syntax::Route, openscenario_interpreter::syntax::ScenarioObject, openscenario_interpreter::syntax::SpeedAction [private], openscenario_interpreter::syntax::SpeedCondition [private], openscenario_interpreter::syntax::SpeedProfileAction [private], openscenario_interpreter::syntax::Story, openscenario_interpreter::syntax::Storyboard, openscenario_interpreter::syntax::StoryboardElementStateCondition [private], openscenario_interpreter::syntax::TeleportAction [private], openscenario_interpreter::syntax::TimeToCollisionCondition [private], openscenario_interpreter::syntax::TrafficSignalControllerAction, openscenario_interpreter::syntax::UniformDistribution [private], openscenario_interpreter::syntax::UserDefinedDistribution [private], openscenario_interpreter::syntax::ValueSetDistribution, and openscenario_interpreter::syntax::Vehicle.

Public Member Functions

 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 Attributes

const std::string name
 
std::list< Entityactors
 
double seed
 

Constructor & Destructor Documentation

◆ Scope() [1/5]

openscenario_interpreter::Scope::Scope ( )
delete

◆ Scope() [2/5]

openscenario_interpreter::Scope::Scope ( const Scope )
default

◆ Scope() [3/5]

openscenario_interpreter::Scope::Scope ( Scope &&  )
default

◆ Scope() [4/5]

openscenario_interpreter::Scope::Scope ( const OpenScenario * const  open_scenario)
explicit

◆ Scope() [5/5]

openscenario_interpreter::Scope::Scope ( const std::string &  name,
const Scope outer 
)
explicit

Member Function Documentation

◆ dirname()

auto openscenario_interpreter::Scope::dirname ( ) const -> std::string

◆ global() [1/2]

auto openscenario_interpreter::Scope::global ( ) -> ScenarioDefinition &

◆ global() [2/2]

auto openscenario_interpreter::Scope::global ( ) const -> const ScenarioDefinition &

◆ insert()

auto openscenario_interpreter::Scope::insert ( const Name identifier,
const Object object 
) -> void

◆ local() [1/2]

auto openscenario_interpreter::Scope::local ( ) const -> const Scope &
noexcept

◆ local() [2/2]

auto openscenario_interpreter::Scope::local ( ) -> Scope &
noexcept

◆ ref() [1/2]

template<typename... Ts>
auto openscenario_interpreter::Scope::ref ( Ts &&...  xs) const -> decltype(auto)
inline

◆ ref() [2/2]

template<typename T , typename... Ts>
auto openscenario_interpreter::Scope::ref ( Ts &&...  xs) const -> decltype(auto)
inline

Member Data Documentation

◆ actors

std::list<Entity> openscenario_interpreter::Scope::actors

◆ name

const std::string openscenario_interpreter::Scope::name

◆ seed

double openscenario_interpreter::Scope::seed

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