netxsimdg
Loading...
Searching...
No Matches
Nextsim::Duration Class Reference
Collaboration diagram for Nextsim::Duration:
Collaboration graph

Public Types

typedef SystemDuration Basis
 

Public Member Functions

 Duration (const std::string &str)
 
 Duration (double seconds)
 
TimePoint operator+ (const TimePoint &t) const
 
Durationoperator+= (const Duration &a)
 
Durationoperator-= (const Duration &a)
 
Durationoperator*= (double a)
 
Durationoperator/= (double a)
 
Duration operator+ (const Duration &a) const
 
Duration operator- (const Duration &a) const
 
double seconds () const
 
std::istream & parse (std::istream &is)
 
Durationparse (const std::string &str)
 
std::ostream & format (std::ostream &os) const
 
std::string format () const
 

Public Attributes

friend TimePoint
 

Friends

Duration durationFromISO (const std::string &iso, int sign=+1)
 

Detailed Description

Definition at line 35 of file Time.hpp.

Member Typedef Documentation

◆ Basis

SystemDuration Nextsim::Duration::Basis

Definition at line 37 of file Time.hpp.

Constructor & Destructor Documentation

◆ Duration() [1/3]

Nextsim::Duration::Duration ( )
inline

Definition at line 38 of file Time.hpp.

◆ Duration() [2/3]

Nextsim::Duration::Duration ( const std::string & str)

Definition at line 222 of file Time.cpp.

◆ Duration() [3/3]

Nextsim::Duration::Duration ( double seconds)

Definition at line 224 of file Time.cpp.

Member Function Documentation

◆ format() [1/2]

std::string Nextsim::Duration::format ( ) const
inline

Definition at line 85 of file Time.hpp.

◆ format() [2/2]

std::ostream & Nextsim::Duration::format ( std::ostream & os) const
inline

Definition at line 83 of file Time.hpp.

◆ operator*=()

Duration & Nextsim::Duration::operator*= ( double a)
inline

Definition at line 58 of file Time.hpp.

◆ operator+() [1/2]

Duration Nextsim::Duration::operator+ ( const Duration & a) const
inline

Definition at line 69 of file Time.hpp.

◆ operator+() [2/2]

TimePoint Nextsim::Duration::operator+ ( const TimePoint & t) const

Definition at line 232 of file Time.cpp.

◆ operator+=()

Duration & Nextsim::Duration::operator+= ( const Duration & a)
inline

Definition at line 47 of file Time.hpp.

◆ operator-()

Duration Nextsim::Duration::operator- ( const Duration & a) const
inline

Definition at line 70 of file Time.hpp.

◆ operator-=()

Duration & Nextsim::Duration::operator-= ( const Duration & a)
inline

Definition at line 52 of file Time.hpp.

◆ operator/=()

Duration & Nextsim::Duration::operator/= ( double a)
inline

Definition at line 63 of file Time.hpp.

◆ parse() [1/2]

Duration & Nextsim::Duration::parse ( const std::string & str)
inline

Definition at line 76 of file Time.hpp.

◆ parse() [2/2]

std::istream & Nextsim::Duration::parse ( std::istream & is)

Definition at line 185 of file Time.cpp.

◆ seconds()

double Nextsim::Duration::seconds ( ) const
inline

Definition at line 72 of file Time.hpp.

Friends And Related Symbol Documentation

◆ durationFromISO

Duration durationFromISO ( const std::string & iso,
int sign = +1 )
friend

Definition at line 158 of file Time.cpp.

Member Data Documentation

◆ TimePoint

friend Nextsim::Duration::TimePoint

Definition at line 92 of file Time.hpp.


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