|
Stride Reference Manual
1.0
|
Utilities for the project. More...
Classes | |
| struct | AliasBlock |
| class | AliasDistribution |
| Usage is very simple, construct with a vector of probabilities, then use as a distribution from the standard library (i.e. More... | |
| class | ConfigInfo |
| Info on revision id and commit date. More... | |
| class | Defer |
| class | Flag |
| struct | Flight |
| class | GeoCoordCalculator |
| struct | GeoCoordinate |
| class | InstallDirs |
| Install directories. More... | |
| class | MappedAliasDistribution |
| class | Observer |
| class | Random |
| The random number generator. More... | |
| struct | ReturnData |
| class | SimplePlanner |
| You can see this class as a kind of planner that stores events in the near future. More... | |
| class | Stopwatch |
| Provides a stopwatch interface to time: it accumulates time between start/stop pairs. More... | |
| class | StringUtils |
| String utilities. More... | |
| class | Subject |
| Template for Subject/Observer (or Publish/Subscribe). More... | |
| class | TimeStamp |
| Provides wall-clock time stamp using the time call. More... | |
| struct | TimeToString |
| Utilities to tag clocks and to reformat number of ticks to a string. More... | |
| class | TransportFacilityReader |
| struct | TravelData |
| class | TravellerScheduleReader |
Typedefs | |
| using | uint = unsigned int |
| using | Schedule = array< vector< Flight >, 7 > |
Functions | |
| template<typename T > | |
| vector< T > | future_pool (vector< future< T >> &futures) |
| template<typename Func > | |
| Defer< Func > | _defer (const Func &f) |
| bool | operator== (const GeoCoordinate &coord1, const GeoCoordinate &coord2) |
| bool | operator< (const GeoCoordinate &coord1, const GeoCoordinate &coord2) |
| std::ostream & | operator<< (std::ostream &os, const GeoCoordinate &g) |
| double | rateToProbability (double rate) |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &oss, Stopwatch< T > const &stopwatch) |
| Insert accumulated time into output stream without altering stopwatch state. More... | |
| std::ostream & | operator<< (std::ostream &os, TimeStamp t) |
| TimeStamp helper inserts string representation in output stream. More... | |
| bool | operator== (const Flight &flight1, const Flight &flight2) |
Utilities for the project.
| typedef unsigned int stride::util::uint |
Definition at line 12 of file TransportFacilityReader.h.
| using stride::util::Schedule = typedef array<vector<Flight>, 7> |
Definition at line 44 of file TravellerScheduleReader.h.
| vector<T> stride::util::future_pool | ( | vector< future< T >> & | futures | ) |
Definition at line 52 of file async.h.
References stride::util::Flag::set(), and stride::util::Flag::wait().
Referenced by stride::Coordinator::timeStep().
| Defer<Func> stride::util::_defer | ( | const Func & | f | ) |
| bool stride::util::operator== | ( | const GeoCoordinate & | coord1, |
| const GeoCoordinate & | coord2 | ||
| ) |
Definition at line 7 of file GeoCoordinate.cpp.
References stride::util::GeoCoordinate::m_latitude, and stride::util::GeoCoordinate::m_longitude.
| bool stride::util::operator< | ( | const GeoCoordinate & | coord1, |
| const GeoCoordinate & | coord2 | ||
| ) |
Definition at line 11 of file GeoCoordinate.cpp.
References stride::util::GeoCoordinate::m_latitude, and stride::util::GeoCoordinate::m_longitude.
| std::ostream & stride::util::operator<< | ( | std::ostream & | os, |
| const GeoCoordinate & | g | ||
| ) |
Definition at line 21 of file GeoCoordinate.cpp.
References stride::util::GeoCoordinate::m_latitude, and stride::util::GeoCoordinate::m_longitude.
Definition at line 34 of file Random.h.
Referenced by stride::util::Random::hasContact(), stride::util::Random::hasContactAndTransmission(), and stride::util::Random::hasTransmission().
| std::ostream& stride::util::operator<< | ( | std::ostream & | oss, |
| Stopwatch< T > const & | stopwatch | ||
| ) |
Insert accumulated time into output stream without altering stopwatch state.
Definition at line 120 of file Stopwatch.h.
|
inline |
TimeStamp helper inserts string representation in output stream.
Definition at line 75 of file TimeStamp.h.
References stride::util::TimeStamp::toString().
Definition at line 13 of file TravellerScheduleReader.cpp.
References stride::util::Flight::m_amount, stride::util::Flight::m_day_of_the_week, stride::util::Flight::m_destination_sim, stride::util::Flight::m_duration, and stride::util::Flight::m_source_sim.