DxLibEx
dxle Namespace Reference

Namespaces

 char_constant
 
 color
 
 detail
 
 DxStructs
 DxLibのstructのusing宣言を集めたnamespaceです
 
 graph2d
 2Dグラフィック
 
 impl
 実装用のものが集まる名前空間です。開発者以外がここの機能を使うのはお勧めできません。
 
 math
 
 time
 
 type_traits
 inline
 
 utility
 

Classes

struct  distance_result_type
 
class  point3d_c
 Template class for 3D points specified by its coordinates x and y. More...
 
class  point_c
 Template class for 2D points specified by its coordinates x and y. More...
 
class  size_c
 Template class for 2D sizes specified by its coordinates width and height. More...
 
struct  use_big_type_when_one_byte
 

Typedefs

template<typename T1 , typename T2 >
using distance_result_type_t = typename distance_result_type< T1, T2 >::type
 
typedef point_c< int > pointi
 
typedef point_c< std::uint8_t > pointu8i
 
typedef point_c< std::int8_t > point8i
 
typedef point_c< doublepointd
 
typedef point_c< float > pointf
 
typedef point3d_c< int > point3di
 
typedef point3d_c< std::uint8_t > point3du8i
 
typedef point3d_c< std::int8_t > point3d8i
 
typedef point3d_c< doublepoint3dd
 
typedef point3d_c< float > point3df
 
typedef size_c< unsigned int > sizeui
 
typedef size_c< doublesized
 
typedef size_c< float > sizef
 
typedef size_c< std::size_t > size
 
using tstring = std::basic_string< TCHAR >
 
template<typename T >
using use_big_type_when_one_byte_t = typename use_big_type_when_one_byte< T >::type
 for int8_t/uint8_t More...
 

Functions

template<typename from , typename to , bool do_cast>
DXLE_CONSTEXPR to static_cast_if (const from &n) DXLE_NOEXCEPT_IF_EXPR((dxle
 
template<typename from , typename to , bool do_cast>
DXLE_CONSTEXPR to static_cast_if (from &&n) DXLE_NOEXCEPT_IF_EXPR((dxle
 
template<typename T1 , typename T2 >
DXLE_CONSTEXPR auto safe_dist (const T1 &n1, const T2 &n2) DXLE_NOEXCEPT_IF_EXPR((n1 - n2)) -> decltype(n1 - n2)
 
point_c< T1 > T2 DXLE_CONSTEXPR auto operator+ (const point_c< T1 > &l, const point_c< T2 > &r) DXLE_NOEXCEPT_IF_EXPR(l.x+r.x) -> point_c< decltype(std::declval< std::remove_cv_t< T1 >>()+std::declval< std::remove_cv_t< T2 >>())>
 
point_c< T1 > T2 DXLE_CONSTEXPR auto operator/ (const point_c< T1 > &l, T2 r) DXLE_NOEXCEPT_IF_EXPR(l.x/r) -> point_c< decltype(std::declval< std::remove_cv_t< T1 >>()/std::declval< std::remove_cv_t< T2 >>())>
 
point_c< T1 > T2 DXLE_CONSTEXPR auto dot (const point_c< T1 > &p1, const point_c< T2 > &p2) DXLE_NOEXCEPT_IF_EXPR(p1.x *p2.x+p1.y *p2.y) -> decltype(std::declval< std::remove_cv_t< T1 >>() *std::declval< std::remove_cv_t< T2 >>())
 
point3d_c< T1 > T2 DXLE_CONSTEXPR auto operator+ (const point3d_c< T1 > &l, const point3d_c< T2 > &r) DXLE_NOEXCEPT_IF_EXPR(l.x+r.x) -> point3d_c< decltype(std::declval< std::remove_cv_t< T1 >>()+std::declval< std::remove_cv_t< T2 >>())>
 
point3d_c< T1 > T2 DXLE_CONSTEXPR auto operator/ (const point3d_c< T1 > &l, T2 r) DXLE_NOEXCEPT_IF_EXPR(l.x/r) -> point3d_c< decltype(std::declval< std::remove_cv_t< T1 >>() - std::declval< std::remove_cv_t< T2 >>())>
 
point3d_c< T1 > T2 DXLE_CONSTEXPR auto dot (const point3d_c< T1 > &p1, const point3d_c< T2 > &p2) DXLE_NOEXCEPT_IF_EXPR(p1.x *p2.x+p1.y *p2.y+p1.z *p2.z) -> decltype(std::declval< std::remove_cv_t< T1 >>() *std::declval< std::remove_cv_t< T2 >>())
 
size_c< T1 > T2 DXLE_CONSTEXPR auto operator+ (const size_c< T1 > &l, const size_c< T2 > &r) DXLE_NOEXCEPT_IF_EXPR(l.width+r.width) -> size_c< decltype(std::declval< std::remove_cv_t< T1 >>()+std::declval< std::remove_cv_t< T2 >>())>
 
size_c< T1 > T2 DXLE_CONSTEXPR auto operator/ (const size_c< T1 > &l, T2 r) DXLE_NOEXCEPT_IF_EXPR(l.width/r) -> size_c< decltype(std::declval< std::remove_cv_t< T1 >>()/std::declval< std::remove_cv_t< T2 >>())>
 
size_t tstrlen (const char *s)
 
size_t tstrlen (const wchar_t *s)
 
point_c< T1 > T2 DXLE_CONSTEXPR auto operator+ (const point_c< T1 > &l, const size_c< T2 > &r) DXLE_NOEXCEPT_IF_EXPR(l.x+r.width) -> point_c< decltype(std::declval< std::remove_cv_t< T1 >>()+std::declval< std::remove_cv_t< T2 >>())>
 
DXLE_CONSTEXPR int abs (int j) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR long labs (long j) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR long long llabs (long long j) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR long abs (long j) DXLE_NOEXCEPT_OR_NOTHROW
 
DXLE_CONSTEXPR long long abs (long long j) DXLE_NOEXCEPT_OR_NOTHROW
 
template<typename IntType , enable_if_t< std::is_integral< IntType >::value &&std::is_signed< IntType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR IntType abs (IntType j) DXLE_NOEXCEPT_OR_NOTHROW
 

Variables

point_c< T1 > T2
 
DXLE_CONSTEXPR double double
 

Typedef Documentation

§ distance_result_type_t

template<typename T1 , typename T2 >
using dxle::distance_result_type_t = typedef typename distance_result_type<T1, T2>::type

Definition at line 27 of file distance_result_type_t.hpp.

§ point3d8i

typedef point3d_c<std::int8_t> dxle::point3d8i

Definition at line 651 of file point3d.hpp.

§ point3dd

Definition at line 652 of file point3d.hpp.

§ point3df

typedef point3d_c<float> dxle::point3df

Definition at line 653 of file point3d.hpp.

§ point3di

typedef point3d_c<int> dxle::point3di

Definition at line 649 of file point3d.hpp.

§ point3du8i

typedef point3d_c<std::uint8_t> dxle::point3du8i

Definition at line 650 of file point3d.hpp.

§ point8i

typedef point_c<std::int8_t> dxle::point8i

Definition at line 667 of file point2d.hpp.

§ pointd

Definition at line 668 of file point2d.hpp.

§ pointf

typedef point_c<float> dxle::pointf

Definition at line 669 of file point2d.hpp.

§ pointi

typedef point_c<int> dxle::pointi

Definition at line 665 of file point2d.hpp.

§ pointu8i

typedef point_c<std::uint8_t> dxle::pointu8i

Definition at line 666 of file point2d.hpp.

§ size

typedef size_c<std::size_t> dxle::size

Definition at line 616 of file size.hpp.

§ sized

Definition at line 614 of file size.hpp.

§ sizef

typedef size_c<float> dxle::sizef

Definition at line 615 of file size.hpp.

§ sizeui

typedef size_c<unsigned int> dxle::sizeui

Definition at line 613 of file size.hpp.

§ tstring

using dxle::tstring = typedef std::basic_string<TCHAR>

Definition at line 27 of file tchar.hpp.

§ use_big_type_when_one_byte_t

template<typename T >
using dxle::use_big_type_when_one_byte_t = typedef typename use_big_type_when_one_byte<T>::type

for int8_t/uint8_t

Definition at line 30 of file use_big_type_when_one_byte_t.hpp.

Function Documentation

§ abs() [1/4]

DXLE_CONSTEXPR int dxle::abs ( int  j)
inline

Definition at line 22 of file abs.hpp.

§ abs() [2/4]

DXLE_CONSTEXPR long dxle::abs ( long  j)
inline

Definition at line 37 of file abs.hpp.

§ abs() [3/4]

DXLE_CONSTEXPR long long dxle::abs ( long long  j)
inline

Definition at line 39 of file abs.hpp.

§ abs() [4/4]

template<typename IntType , enable_if_t< std::is_integral< IntType >::value &&std::is_signed< IntType >::value, std::nullptr_t > = nullptr>
DXLE_CONSTEXPR IntType dxle::abs ( IntType  j)
inline

Definition at line 42 of file abs.hpp.

§ dot() [1/2]

point3d_c<T1> T2 DXLE_CONSTEXPR auto dxle::dot ( const point3d_c< T1 > &  p1,
const point3d_c< T2 > &  p2 
) -> decltype(std::declval<std::remove_cv_t<T1>>() * std::declval<std::remove_cv_t<T2>>())

Definition at line 607 of file point3d.hpp.

§ dot() [2/2]

point_c<T1> T2 DXLE_CONSTEXPR auto dxle::dot ( const point_c< T1 > &  p1,
const point_c< T2 > &  p2 
) -> decltype(std::declval<std::remove_cv_t<T1>>() * std::declval<std::remove_cv_t<T2>>())

Definition at line 622 of file point2d.hpp.

§ labs()

DXLE_CONSTEXPR long dxle::labs ( long  j)
inline

Definition at line 27 of file abs.hpp.

§ llabs()

DXLE_CONSTEXPR long long dxle::llabs ( long long  j)
inline

Definition at line 32 of file abs.hpp.

§ operator+() [1/4]

point_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator+ ( const point_c< T1 > &  l,
const size_c< T2 > &  r 
) -> point_c<decltype(std::declval<std::remove_cv_t<T1>>() + std::declval<std::remove_cv_t<T2>>())>

Definition at line 106 of file basic_types.hpp.

§ operator+() [2/4]

point3d_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator+ ( const point3d_c< T1 > &  l,
const point3d_c< T2 > &  r 
) -> point3d_c<decltype(std::declval<std::remove_cv_t<T1>>() + std::declval<std::remove_cv_t<T2>>())>

Definition at line 354 of file point3d.hpp.

§ operator+() [3/4]

point_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator+ ( const point_c< T1 > &  l,
const point_c< T2 > &  r 
) -> point_c<decltype(std::declval<std::remove_cv_t<T1>>() + std::declval<std::remove_cv_t<T2>>())>

Definition at line 373 of file point2d.hpp.

§ operator+() [4/4]

size_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator+ ( const size_c< T1 > &  l,
const size_c< T2 > &  r 
) -> size_c<decltype(std::declval<std::remove_cv_t<T1>>() + std::declval<std::remove_cv_t<T2>>())>

Definition at line 376 of file size.hpp.

§ operator/() [1/3]

point3d_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator/ ( const point3d_c< T1 > &  l,
T2  r 
) -> point3d_c<decltype(std::declval<std::remove_cv_t<T1>>() - std::declval<std::remove_cv_t<T2>>())>

Definition at line 446 of file point3d.hpp.

§ operator/() [2/3]

point_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator/ ( const point_c< T1 > &  l,
T2  r 
) -> point_c<decltype(std::declval<std::remove_cv_t<T1>>() / std::declval<std::remove_cv_t<T2>>())>

Definition at line 464 of file point2d.hpp.

§ operator/() [3/3]

size_c<T1> T2 DXLE_CONSTEXPR auto dxle::operator/ ( const size_c< T1 > &  l,
T2  r 
) -> size_c<decltype(std::declval<std::remove_cv_t<T1>>() / std::declval<std::remove_cv_t<T2>>())>

Definition at line 467 of file size.hpp.

§ safe_dist()

template<typename T1 , typename T2 >
DXLE_CONSTEXPR auto dxle::safe_dist ( const T1 &  n1,
const T2 n2 
) -> decltype(n1 - n2)

Definition at line 14 of file safe_dist.hpp.

§ static_cast_if() [1/2]

template<typename from , typename to , bool do_cast>
DXLE_CONSTEXPR to dxle::static_cast_if ( const from &  n)

Definition at line 52 of file cast_if.hpp.

§ static_cast_if() [2/2]

template<typename from , typename to , bool do_cast>
DXLE_CONSTEXPR to dxle::static_cast_if ( from &&  n)

Definition at line 63 of file cast_if.hpp.

§ tstrlen() [1/2]

size_t dxle::tstrlen ( const char *  s)
inline

Definition at line 29 of file tchar.hpp.

§ tstrlen() [2/2]

size_t dxle::tstrlen ( const wchar_t *  s)
inline

Definition at line 30 of file tchar.hpp.

Variable Documentation

§ double

DXLE_CONSTEXPR double dxle::double

Definition at line 642 of file point2d.hpp.

§ T2

point_c< T1 > dxle::T2

Definition at line 353 of file point2d.hpp.