neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_length< T > Class Template Reference

#include <units.hpp>

Classes

struct  unknown_unit
 

Public Types

typedef T value_type
 

Public Member Functions

 basic_length (value_type aValue=value_type{}, neogfx::units aUnits=neogfx::units::Pixels)
 
bool operator== (const self_type &aRhs) const
 
bool operator!= (const self_type &aRhs) const
 
bool operator< (const self_type &aRhs) const
 
 operator value_type () const
 
value_type value () const
 
value_type unconverted_value () const
 
neogfx::units units () const
 
std::string to_string (bool aToEmit=true) const
 

Static Public Member Functions

static self_type from_string (std::string const &aValue)
 

Detailed Description

template<typename T>
class neogfx::basic_length< T >

Definition at line 210 of file units.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
typedef T neogfx::basic_length< T >::value_type

Definition at line 216 of file units.hpp.

Constructor & Destructor Documentation

◆ basic_length()

template<typename T >
neogfx::basic_length< T >::basic_length ( value_type  aValue = value_type{},
neogfx::units  aUnits = neogfx::units::Pixels 
)
inlineexplicit

Definition at line 218 of file units.hpp.

Member Function Documentation

◆ from_string()

template<typename T >
static self_type neogfx::basic_length< T >::from_string ( std::string const &  aValue)
inlinestatic

Definition at line 294 of file units.hpp.

◆ operator value_type()

template<typename T >
neogfx::basic_length< T >::operator value_type ( ) const
inline

Definition at line 236 of file units.hpp.

◆ operator!=()

template<typename T >
bool neogfx::basic_length< T >::operator!= ( const self_type &  aRhs) const
inline

Definition at line 227 of file units.hpp.

◆ operator<()

template<typename T >
bool neogfx::basic_length< T >::operator< ( const self_type &  aRhs) const
inline

Definition at line 231 of file units.hpp.

◆ operator==()

template<typename T >
bool neogfx::basic_length< T >::operator== ( const self_type &  aRhs) const
inline

Definition at line 223 of file units.hpp.

◆ to_string()

template<typename T >
std::string neogfx::basic_length< T >::to_string ( bool  aToEmit = true) const
inline

Definition at line 254 of file units.hpp.

◆ unconverted_value()

template<typename T >
value_type neogfx::basic_length< T >::unconverted_value ( ) const
inline

Definition at line 246 of file units.hpp.

◆ units()

template<typename T >
neogfx::units neogfx::basic_length< T >::units ( ) const
inline

Definition at line 250 of file units.hpp.

◆ value()

template<typename T >
value_type neogfx::basic_length< T >::value ( ) const
inline

Definition at line 240 of file units.hpp.


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