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

DataType MetricRange. More...

#include <ad/physics/MetricRange.hpp>

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

Public Types

typedef std::shared_ptr< MetricRangePtr
 Smart pointer on MetricRange.
 
typedef std::shared_ptr< MetricRange const > ConstPtr
 Smart pointer on constant MetricRange.
 

Public Member Functions

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

Public Attributes

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

Detailed Description

DataType MetricRange.

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

Member Function Documentation

◆ operator!=()

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

standard comparison operator

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

◆ operator=() [1/2]

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

standard assignment operator

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

◆ operator=() [2/2]

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

standard move operator

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

◆ operator==()

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

standard comparison operator

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

Member Data Documentation

◆ maximum

::ad::physics::Distance ad::physics::MetricRange::maximum {std::numeric_limits<Distance>::max()}

The maximum value of the metric range.

◆ minimum

::ad::physics::Distance ad::physics::MetricRange::minimum {std::numeric_limits<Distance>::lowest()}

The minimum value of the metric range.


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