Flutter Impeller
size.h File Reference
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <ostream>
#include <string>
#include "impeller/geometry/scalar.h"

Go to the source code of this file.

Classes

struct  impeller::TSize< T >
 

Namespaces

 impeller
 
 std
 

Macros

#define ONLY_ON_FLOAT_M(Modifiers, Return)
 
#define ONLY_ON_FLOAT(Return)   DL_ONLY_ON_FLOAT_M(, Return)
 

Typedefs

using impeller::Size = TSize< Scalar >
 
using impeller::ISize32 = TSize< int32_t >
 
using impeller::ISize64 = TSize< int64_t >
 
using impeller::ISize = ISize64
 

Functions

template<class T , class U , class = std::enable_if_t<std::is_arithmetic_v<U>>>
constexpr TSize< T > impeller::operator* (U s, const TSize< T > &p)
 
template<class T , class U , class = std::enable_if_t<std::is_arithmetic_v<U>>>
constexpr TSize< T > impeller::operator/ (U s, const TSize< T > &p)
 
template<class T >
std::ostream & std::operator<< (std::ostream &out, const impeller::TSize< T > &s)
 

Macro Definition Documentation

◆ ONLY_ON_FLOAT

#define ONLY_ON_FLOAT (   Return)    DL_ONLY_ON_FLOAT_M(, Return)

Definition at line 22 of file size.h.

◆ ONLY_ON_FLOAT_M

#define ONLY_ON_FLOAT_M (   Modifiers,
  Return 
)
Value:
template <typename U = T> \
Modifiers std::enable_if_t<std::is_floating_point_v<U>, Return>

Definition at line 19 of file size.h.