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

#include <histogram.hpp>

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

Classes

struct  BinAdaptor
 

Public Member Functions

 Histogram (const pugi::xml_node &, Scope &scope)
 
auto evaluate () -> Object
 
- 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 Attributes

const std::list< HistogramBinbins
 
struct openscenario_interpreter::syntax::Histogram::BinAdaptor bin_adaptor
 
std::piecewise_constant_distribution< Double::value_typedistribute
 
std::mt19937 random_engine
 

Additional Inherited Members

- Static Public Member Functions inherited from openscenario_interpreter::Pointer< Expression >
static Pointer bind (Ts &&... xs)
 

Constructor & Destructor Documentation

◆ Histogram()

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

Member Function Documentation

◆ evaluate()

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

Member Data Documentation

◆ bin_adaptor

struct openscenario_interpreter::syntax::Histogram::BinAdaptor openscenario_interpreter::syntax::Histogram::bin_adaptor

◆ bins

const std::list<HistogramBin> openscenario_interpreter::syntax::Histogram::bins

Note: HistogramBin must be stored in continuous range and ascending order, to bins

◆ distribute

std::piecewise_constant_distribution<Double::value_type> openscenario_interpreter::syntax::Histogram::distribute

◆ random_engine

std::mt19937 openscenario_interpreter::syntax::Histogram::random_engine

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