Unravel Engine C++ Reference
Loading...
Searching...
No Matches
size< T > Struct Template Reference

#include <basetypes.hpp>

Public Types

using value_type = T
 

Public Member Functions

 size ()=default
 
 size (T _width, T _height)
 
template<typename U , typename = typename std::enable_if<std::is_convertible<U, T>::value, void>::type>
 size (const std::array< U, 2 > &data)
 
bool operator== (const size &b) const
 
bool operator!= (const size &b) const
 
bool operator< (const size &b) const
 
bool operator> (const size &b) const
 
bool is_valid () const
 

Public Attributes

width = 0
 
height = 0
 

Detailed Description

template<typename T>
struct size< T >

Definition at line 42 of file basetypes.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using size< T >::value_type = T

Definition at line 44 of file basetypes.hpp.

Constructor & Destructor Documentation

◆ size() [1/3]

template<typename T >
size< T >::size ( )
default

◆ size() [2/3]

template<typename T >
size< T >::size ( T _width,
T _height )
inline

Definition at line 46 of file basetypes.hpp.

◆ size() [3/3]

template<typename T >
template<typename U , typename = typename std::enable_if<std::is_convertible<U, T>::value, void>::type>
size< T >::size ( const std::array< U, 2 > & data)
inlineexplicit

Definition at line 51 of file basetypes.hpp.

Member Function Documentation

◆ is_valid()

template<typename T >
bool size< T >::is_valid ( ) const
inline

Definition at line 88 of file basetypes.hpp.

◆ operator!=()

template<typename T >
bool size< T >::operator!= ( const size< T > & b) const
inline

Definition at line 63 of file basetypes.hpp.

◆ operator<()

template<typename T >
bool size< T >::operator< ( const size< T > & b) const
inline

Definition at line 67 of file basetypes.hpp.

◆ operator==()

template<typename T >
bool size< T >::operator== ( const size< T > & b) const
inline

Definition at line 59 of file basetypes.hpp.

◆ operator>()

template<typename T >
bool size< T >::operator> ( const size< T > & b) const
inline

Definition at line 75 of file basetypes.hpp.

Member Data Documentation

◆ height

template<typename T >
T size< T >::height = 0

Definition at line 56 of file basetypes.hpp.

◆ width

template<typename T >
T size< T >::width = 0

Definition at line 55 of file basetypes.hpp.


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