Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CSpeed Class Reference

#include <Speed.h>

Inheritance diagram for CSpeed:
IArchivable

Public Types

enum  Unit {
  UnitKilometresPerHour = 0 , UnitMetresPerMinute , UnitMetresPerSecond , UnitFeetPerHour ,
  UnitFeetPerMinute , UnitFeetPerSecond , UnitMilesPerHour , UnitKnots ,
  UnitBeaufort , UnitInchPerSecond , UnitYardPerSecond , UnitFurlongPerFortnight
}
 
typedef enum CSpeed::Unit Unit
 

Public Member Functions

 CSpeed ()
 
 CSpeed (const CSpeed &speed)
 
bool operator> (const CSpeed &right) const
 
bool operator>= (const CSpeed &right) const
 
bool operator< (const CSpeed &right) const
 
bool operator<= (const CSpeed &right) const
 
bool operator== (const CSpeed &right) const
 
bool operator!= (const CSpeed &right) const
 
CSpeedoperator= (const CSpeed &right)
 
const CSpeedoperator+= (const CSpeed &right)
 
const CSpeedoperator-= (const CSpeed &right)
 
const CSpeedoperator*= (const CSpeed &right)
 
const CSpeedoperator/= (const CSpeed &right)
 
CSpeed operator+ (const CSpeed &right) const
 
CSpeed operator- (const CSpeed &right) const
 
CSpeed operator* (const CSpeed &right) const
 
CSpeed operator/ (const CSpeed &right) const
 
bool operator> (double right) const
 
bool operator>= (double right) const
 
bool operator< (double right) const
 
bool operator<= (double right) const
 
bool operator== (double right) const
 
bool operator!= (double right) const
 
const CSpeedoperator+= (double right)
 
const CSpeedoperator-= (double right)
 
const CSpeedoperator*= (double right)
 
const CSpeedoperator/= (double right)
 
CSpeed operator+ (double right) const
 
CSpeed operator- (double right) const
 
CSpeed operator* (double right) const
 
CSpeed operator/ (double right) const
 
CSpeedoperator++ ()
 
CSpeedoperator-- ()
 
CSpeed operator++ (int)
 
CSpeed operator-- (int)
 
void Archive (CArchive &ar) override
 
bool IsValid () const
 
double ToKilometresPerHour () const
 
double ToMetresPerMinute () const
 
double ToMetresPerSecond () const
 
double ToFeetPerHour () const
 
double ToFeetPerMinute () const
 
double ToFeetPerSecond () const
 
double ToMilesPerHour () const
 
double ToKnots () const
 
double ToBeaufort () const
 
double ToInchPerSecond () const
 
double ToYardPerSecond () const
 
double ToFurlongPerFortnight () const
 
double To (Unit speedUnit) const
 
std::string ToString (Unit speedUnit) const
 
- Public Member Functions inherited from IArchivable

Static Public Member Functions

static CSpeed CreateFromKilometresPerHour (double value)
 
static CSpeed CreateFromMetresPerMinute (double value)
 
static CSpeed CreateFromMetresPerSecond (double value)
 
static CSpeed CreateFromFeetPerHour (double value)
 
static CSpeed CreateFromFeetPerMinute (double value)
 
static CSpeed CreateFromFeetPerSecond (double value)
 
static CSpeed CreateFromMilesPerHour (double value)
 
static CSpeed CreateFromKnots (double value)
 
static CSpeed CreateFromBeaufort (unsigned int value)
 
static CSpeed CreateFromInchPerSecond (double value)
 
static CSpeed CreateFromYardPerSecond (double value)
 
static CSpeed CreateFromFurlongPerFortnight (double value)
 

Protected Member Functions

 CSpeed (double value)
 
void SetValid (bool valid)
 
- Protected Member Functions inherited from IArchivable
virtual ~IArchivable ()=default
 

Protected Attributes

double m_value
 
bool m_valid
 

Member Typedef Documentation

◆ Unit

Member Enumeration Documentation

◆ Unit

Enumerator
UnitKilometresPerHour 
UnitMetresPerMinute 
UnitMetresPerSecond 
UnitFeetPerHour 
UnitFeetPerMinute 
UnitFeetPerSecond 
UnitMilesPerHour 
UnitKnots 
UnitBeaufort 
UnitInchPerSecond 
UnitYardPerSecond 
UnitFurlongPerFortnight 

Constructor & Destructor Documentation

◆ CSpeed() [1/3]

CSpeed::CSpeed ( )

◆ CSpeed() [2/3]

CSpeed::CSpeed ( const CSpeed & speed)

◆ CSpeed() [3/3]

CSpeed::CSpeed ( double value)
explicitprotected

Member Function Documentation

◆ Archive()

void CSpeed::Archive ( CArchive & ar)
overridevirtual

Implements IArchivable.

◆ CreateFromBeaufort()

CSpeed CSpeed::CreateFromBeaufort ( unsigned int value)
static

◆ CreateFromFeetPerHour()

CSpeed CSpeed::CreateFromFeetPerHour ( double value)
static

◆ CreateFromFeetPerMinute()

CSpeed CSpeed::CreateFromFeetPerMinute ( double value)
static

◆ CreateFromFeetPerSecond()

CSpeed CSpeed::CreateFromFeetPerSecond ( double value)
static

◆ CreateFromFurlongPerFortnight()

CSpeed CSpeed::CreateFromFurlongPerFortnight ( double value)
static

◆ CreateFromInchPerSecond()

CSpeed CSpeed::CreateFromInchPerSecond ( double value)
static

◆ CreateFromKilometresPerHour()

CSpeed CSpeed::CreateFromKilometresPerHour ( double value)
static

◆ CreateFromKnots()

CSpeed CSpeed::CreateFromKnots ( double value)
static

◆ CreateFromMetresPerMinute()

CSpeed CSpeed::CreateFromMetresPerMinute ( double value)
static

◆ CreateFromMetresPerSecond()

CSpeed CSpeed::CreateFromMetresPerSecond ( double value)
static

◆ CreateFromMilesPerHour()

CSpeed CSpeed::CreateFromMilesPerHour ( double value)
static

◆ CreateFromYardPerSecond()

CSpeed CSpeed::CreateFromYardPerSecond ( double value)
static

◆ IsValid()

bool CSpeed::IsValid ( ) const

◆ operator!=() [1/2]

bool CSpeed::operator!= ( const CSpeed & right) const

◆ operator!=() [2/2]

bool CSpeed::operator!= ( double right) const

◆ operator*() [1/2]

CSpeed CSpeed::operator* ( const CSpeed & right) const

◆ operator*() [2/2]

CSpeed CSpeed::operator* ( double right) const

◆ operator*=() [1/2]

const CSpeed & CSpeed::operator*= ( const CSpeed & right)

◆ operator*=() [2/2]

const CSpeed & CSpeed::operator*= ( double right)

◆ operator+() [1/2]

CSpeed CSpeed::operator+ ( const CSpeed & right) const

◆ operator+() [2/2]

CSpeed CSpeed::operator+ ( double right) const

◆ operator++() [1/2]

CSpeed & CSpeed::operator++ ( )

◆ operator++() [2/2]

CSpeed CSpeed::operator++ ( int )

◆ operator+=() [1/2]

const CSpeed & CSpeed::operator+= ( const CSpeed & right)

◆ operator+=() [2/2]

const CSpeed & CSpeed::operator+= ( double right)

◆ operator-() [1/2]

CSpeed CSpeed::operator- ( const CSpeed & right) const

◆ operator-() [2/2]

CSpeed CSpeed::operator- ( double right) const

◆ operator--() [1/2]

CSpeed & CSpeed::operator-- ( )

◆ operator--() [2/2]

CSpeed CSpeed::operator-- ( int )

◆ operator-=() [1/2]

const CSpeed & CSpeed::operator-= ( const CSpeed & right)

◆ operator-=() [2/2]

const CSpeed & CSpeed::operator-= ( double right)

◆ operator/() [1/2]

CSpeed CSpeed::operator/ ( const CSpeed & right) const

◆ operator/() [2/2]

CSpeed CSpeed::operator/ ( double right) const

◆ operator/=() [1/2]

const CSpeed & CSpeed::operator/= ( const CSpeed & right)

◆ operator/=() [2/2]

const CSpeed & CSpeed::operator/= ( double right)

◆ operator<() [1/2]

bool CSpeed::operator< ( const CSpeed & right) const

◆ operator<() [2/2]

bool CSpeed::operator< ( double right) const

◆ operator<=() [1/2]

bool CSpeed::operator<= ( const CSpeed & right) const

◆ operator<=() [2/2]

bool CSpeed::operator<= ( double right) const

◆ operator=()

CSpeed & CSpeed::operator= ( const CSpeed & right)

◆ operator==() [1/2]

bool CSpeed::operator== ( const CSpeed & right) const

◆ operator==() [2/2]

bool CSpeed::operator== ( double right) const

◆ operator>() [1/2]

bool CSpeed::operator> ( const CSpeed & right) const

◆ operator>() [2/2]

bool CSpeed::operator> ( double right) const

◆ operator>=() [1/2]

bool CSpeed::operator>= ( const CSpeed & right) const

◆ operator>=() [2/2]

bool CSpeed::operator>= ( double right) const

◆ SetValid()

void CSpeed::SetValid ( bool valid)
inlineprotected

◆ To()

double CSpeed::To ( Unit speedUnit) const

◆ ToBeaufort()

double CSpeed::ToBeaufort ( ) const

◆ ToFeetPerHour()

double CSpeed::ToFeetPerHour ( ) const

◆ ToFeetPerMinute()

double CSpeed::ToFeetPerMinute ( ) const

◆ ToFeetPerSecond()

double CSpeed::ToFeetPerSecond ( ) const

◆ ToFurlongPerFortnight()

double CSpeed::ToFurlongPerFortnight ( ) const

◆ ToInchPerSecond()

double CSpeed::ToInchPerSecond ( ) const

◆ ToKilometresPerHour()

double CSpeed::ToKilometresPerHour ( ) const

◆ ToKnots()

double CSpeed::ToKnots ( ) const

◆ ToMetresPerMinute()

double CSpeed::ToMetresPerMinute ( ) const

◆ ToMetresPerSecond()

double CSpeed::ToMetresPerSecond ( ) const

◆ ToMilesPerHour()

double CSpeed::ToMilesPerHour ( ) const

◆ ToString()

std::string CSpeed::ToString ( Unit speedUnit) const

◆ ToYardPerSecond()

double CSpeed::ToYardPerSecond ( ) const

Member Data Documentation

◆ m_valid

bool CSpeed::m_valid
protected

◆ m_value

double CSpeed::m_value
protected

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