ad_physics
Public Types | Public Member Functions | Public Attributes | List of all members
ad::physics::SpeedRange Struct Reference

DataType SpeedRange. More...

#include <ad/physics/SpeedRange.hpp>

Collaboration diagram for ad::physics::SpeedRange:
Collaboration graph
[legend]

Public Types

typedef std::shared_ptr< SpeedRangePtr
 Smart pointer on SpeedRange.
 
typedef std::shared_ptr< SpeedRange const > ConstPtr
 Smart pointer on constant SpeedRange.
 

Public Member Functions

 SpeedRange ()=default
 standard constructor
 
 ~SpeedRange ()=default
 standard destructor
 
 SpeedRange (const SpeedRange &other)=default
 standard copy constructor
 
 SpeedRange (SpeedRange &&other)=default
 standard move constructor
 
SpeedRangeoperator= (const SpeedRange &other)=default
 standard assignment operator More...
 
SpeedRangeoperator= (SpeedRange &&other)=default
 standard move operator More...
 
bool operator== (const SpeedRange &other) const
 standard comparison operator More...
 
bool operator!= (const SpeedRange &other) const
 standard comparison operator More...
 

Public Attributes

::ad::physics::Speed minimum {std::numeric_limits<Speed>::lowest()}
 
::ad::physics::Speed maximum {std::numeric_limits<Speed>::max()}
 

Detailed Description

DataType SpeedRange.

A speed range described by its borders: [minimum, maximum].

Member Function Documentation

◆ operator!=()

bool ad::physics::SpeedRange::operator!= ( const SpeedRange other) const
inline

standard comparison operator

Parameters
[in]otherOther SpeedRange.
Returns
true if both SpeedRange are different

◆ operator=() [1/2]

SpeedRange& ad::physics::SpeedRange::operator= ( const SpeedRange other)
default

standard assignment operator

Parameters
[in]otherOther SpeedRange
Returns
Reference to this SpeedRange.

◆ operator=() [2/2]

SpeedRange& ad::physics::SpeedRange::operator= ( SpeedRange &&  other)
default

standard move operator

Parameters
[in]otherOther SpeedRange
Returns
Reference to this SpeedRange.

◆ operator==()

bool ad::physics::SpeedRange::operator== ( const SpeedRange other) const
inline

standard comparison operator

Parameters
[in]otherOther SpeedRange
Returns
true if both SpeedRange are equal

Member Data Documentation

◆ maximum

::ad::physics::Speed ad::physics::SpeedRange::maximum {std::numeric_limits<Speed>::max()}

The maximum value of the speed range.

◆ minimum

::ad::physics::Speed ad::physics::SpeedRange::minimum {std::numeric_limits<Speed>::lowest()}

The minimum value of the speed range.


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