Android-cuttlefish cvd tool
Public Types | Public Member Functions | Private Attributes | List of all members
teeui::Coordinate< Unit, Numeric > Class Template Reference

#include <utils.h>

Public Types

using unit_t = Unit
 

Public Member Functions

constexpr Coordinate ()
 
constexpr Coordinate (Numeric value)
 
 Coordinate (const Coordinate &)=default
 
 Coordinate (Coordinate &&)=default
 
template<typename N >
 Coordinate (const Coordinate< Unit, N > &other)
 
Coordinateoperator= (const Coordinate &rhs)=default
 
Coordinateoperator= (Coordinate &&rhs)=default
 
constexpr Coordinate operator- (const Coordinate &v) const
 
constexpr Coordinate operator+ (const Coordinate &v) const
 
constexpr Coordinateoperator-= (const Coordinate &v)
 
constexpr Coordinateoperator+= (const Coordinate &v)
 
constexpr Coordinate operator* (const Coordinate &v) const
 
constexpr Coordinateoperator*= (const Coordinate &v)
 
constexpr Coordinate operator/ (const Coordinate &v) const
 
constexpr Coordinateoperator/= (const Coordinate &v)
 
constexpr Coordinate operator- () const
 
Coordinate abs () const
 
Coordinate ceil () const
 
Coordinate floor () const
 
Coordinate sqrt () const
 
constexpr bool operator== (const Coordinate &v) const
 
constexpr bool operator!= (const Coordinate &v) const
 
constexpr bool operator< (const Coordinate &v) const
 
constexpr bool operator> (const Coordinate &v) const
 
constexpr bool operator<= (const Coordinate &v) const
 
constexpr bool operator>= (const Coordinate &v) const
 
template<typename T >
constexpr add< Coordinate, T, Numeric > operator+ (const T &v) const
 
template<typename T >
constexpr sub< Coordinate, T, Numeric > operator- (const T &v) const
 
template<typename T >
constexpr mul< Coordinate, T, Numeric > operator* (const T &v) const
 
template<typename T >
constexpr div< Coordinate, T, Numeric > operator/ (const T &v) const
 
Numeric count () const
 

Private Attributes

Numeric value_
 

Member Typedef Documentation

◆ unit_t

template<typename Unit , typename Numeric >
using teeui::Coordinate< Unit, Numeric >::unit_t = Unit

Constructor & Destructor Documentation

◆ Coordinate() [1/5]

template<typename Unit , typename Numeric >
constexpr teeui::Coordinate< Unit, Numeric >::Coordinate ( )
inlineconstexpr

◆ Coordinate() [2/5]

template<typename Unit , typename Numeric >
constexpr teeui::Coordinate< Unit, Numeric >::Coordinate ( Numeric  value)
inlineconstexpr

◆ Coordinate() [3/5]

template<typename Unit , typename Numeric >
teeui::Coordinate< Unit, Numeric >::Coordinate ( const Coordinate< Unit, Numeric > &  )
default

◆ Coordinate() [4/5]

template<typename Unit , typename Numeric >
teeui::Coordinate< Unit, Numeric >::Coordinate ( Coordinate< Unit, Numeric > &&  )
default

◆ Coordinate() [5/5]

template<typename Unit , typename Numeric >
template<typename N >
teeui::Coordinate< Unit, Numeric >::Coordinate ( const Coordinate< Unit, N > &  other)
inline

Member Function Documentation

◆ abs()

template<typename Unit , typename Numeric >
Coordinate teeui::Coordinate< Unit, Numeric >::abs ( ) const
inline

◆ ceil()

template<typename Unit , typename Numeric >
Coordinate teeui::Coordinate< Unit, Numeric >::ceil ( ) const
inline

◆ count()

template<typename Unit , typename Numeric >
Numeric teeui::Coordinate< Unit, Numeric >::count ( ) const
inline

◆ floor()

template<typename Unit , typename Numeric >
Coordinate teeui::Coordinate< Unit, Numeric >::floor ( ) const
inline

◆ operator!=()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator!= ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator*() [1/2]

template<typename Unit , typename Numeric >
constexpr Coordinate teeui::Coordinate< Unit, Numeric >::operator* ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator*() [2/2]

template<typename Unit , typename Numeric >
template<typename T >
constexpr mul< Coordinate, T, Numeric > teeui::Coordinate< Unit, Numeric >::operator* ( const T &  v) const
inlineconstexpr

◆ operator*=()

template<typename Unit , typename Numeric >
constexpr Coordinate & teeui::Coordinate< Unit, Numeric >::operator*= ( const Coordinate< Unit, Numeric > &  v)
inlineconstexpr

◆ operator+() [1/2]

template<typename Unit , typename Numeric >
constexpr Coordinate teeui::Coordinate< Unit, Numeric >::operator+ ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator+() [2/2]

template<typename Unit , typename Numeric >
template<typename T >
constexpr add< Coordinate, T, Numeric > teeui::Coordinate< Unit, Numeric >::operator+ ( const T &  v) const
inlineconstexpr

◆ operator+=()

template<typename Unit , typename Numeric >
constexpr Coordinate & teeui::Coordinate< Unit, Numeric >::operator+= ( const Coordinate< Unit, Numeric > &  v)
inlineconstexpr

◆ operator-() [1/3]

template<typename Unit , typename Numeric >
constexpr Coordinate teeui::Coordinate< Unit, Numeric >::operator- ( ) const
inlineconstexpr

◆ operator-() [2/3]

template<typename Unit , typename Numeric >
constexpr Coordinate teeui::Coordinate< Unit, Numeric >::operator- ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator-() [3/3]

template<typename Unit , typename Numeric >
template<typename T >
constexpr sub< Coordinate, T, Numeric > teeui::Coordinate< Unit, Numeric >::operator- ( const T &  v) const
inlineconstexpr

◆ operator-=()

template<typename Unit , typename Numeric >
constexpr Coordinate & teeui::Coordinate< Unit, Numeric >::operator-= ( const Coordinate< Unit, Numeric > &  v)
inlineconstexpr

◆ operator/() [1/2]

template<typename Unit , typename Numeric >
constexpr Coordinate teeui::Coordinate< Unit, Numeric >::operator/ ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator/() [2/2]

template<typename Unit , typename Numeric >
template<typename T >
constexpr div< Coordinate, T, Numeric > teeui::Coordinate< Unit, Numeric >::operator/ ( const T &  v) const
inlineconstexpr

◆ operator/=()

template<typename Unit , typename Numeric >
constexpr Coordinate & teeui::Coordinate< Unit, Numeric >::operator/= ( const Coordinate< Unit, Numeric > &  v)
inlineconstexpr

◆ operator<()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator< ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator<=()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator<= ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator=() [1/2]

template<typename Unit , typename Numeric >
Coordinate & teeui::Coordinate< Unit, Numeric >::operator= ( const Coordinate< Unit, Numeric > &  rhs)
default

◆ operator=() [2/2]

template<typename Unit , typename Numeric >
Coordinate & teeui::Coordinate< Unit, Numeric >::operator= ( Coordinate< Unit, Numeric > &&  rhs)
default

◆ operator==()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator== ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator>()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator> ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ operator>=()

template<typename Unit , typename Numeric >
constexpr bool teeui::Coordinate< Unit, Numeric >::operator>= ( const Coordinate< Unit, Numeric > &  v) const
inlineconstexpr

◆ sqrt()

template<typename Unit , typename Numeric >
Coordinate teeui::Coordinate< Unit, Numeric >::sqrt ( ) const
inline

Member Data Documentation

◆ value_

template<typename Unit , typename Numeric >
Numeric teeui::Coordinate< Unit, Numeric >::value_
private

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