Stride Reference Manual  1.0
stride::util Namespace Reference

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)
 

Detailed Description

Utilities for the project.

Typedef Documentation

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.

Function Documentation

template<typename T >
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().

template<typename Func >
Defer<Func> stride::util::_defer ( const Func &  f)

Definition at line 22 of file etc.h.

bool stride::util::operator== ( const GeoCoordinate coord1,
const GeoCoordinate coord2 
)
bool stride::util::operator< ( const GeoCoordinate coord1,
const GeoCoordinate coord2 
)
std::ostream & stride::util::operator<< ( std::ostream &  os,
const GeoCoordinate g 
)
double stride::util::rateToProbability ( double  rate)
inline
template<typename T >
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.

std::ostream& stride::util::operator<< ( std::ostream &  os,
TimeStamp  t 
)
inline

TimeStamp helper inserts string representation in output stream.

Definition at line 75 of file TimeStamp.h.

References stride::util::TimeStamp::toString().