ManaPlus
Data Structures | Namespaces | Macros | Functions
mseprimitives.h File Reference

(986a3bf)

#include <assert.h>
#include <climits>
#include <limits>
#include <stdexcept>

Go to the source code of this file.

Data Structures

class  mse::primitives_range_error
 
class  mse::CBool
 
class  mse::TIntBase1< _Ty >
 
class  mse::CInt
 
class  std::numeric_limits< mse::CInt >
 
class  mse::CSize_t
 
class  std::numeric_limits< mse::CSize_t >
 

Namespaces

 mse
 
 std
 

Macros

#define MSE_CONSTEXPR   constexpr
 
#define MSE_THROW(x)   throw(x)
 
#define MSE_CINT_BASE_INTEGER_TYPE   long int
 
#define MSE_CHECK_USE_BEFORE_SET
 
#define _THROW0()
 
#define _STCONS(ty, name, val)   static constexpr ty name = static_cast<ty>(val)
 

Functions

template<typename _TDestination , typename _TSource >
constexpr static bool mse::sg_can_exceed_upper_bound ()
 
template<typename _TDestination , typename _TSource >
constexpr static bool mse::sg_can_exceed_lower_bound ()
 
template<typename _TDestination , typename _TSource >
void mse::g_assign_check_range (const _TSource &x)
 
static size_t mse::as_a_size_t (CSize_t n)
 
CInt mse::operator+ (size_t lhs, const CInt &rhs)
 
CSize_t mse::operator+ (size_t lhs, const CSize_t &rhs)
 
CInt mse::operator+ (int lhs, const CInt &rhs)
 
CInt mse::operator+ (int lhs, const CSize_t &rhs)
 
CInt mse::operator+ (const CInt &lhs, const CSize_t &rhs)
 
CInt mse::operator- (size_t lhs, const CInt &rhs)
 
CInt mse::operator- (size_t lhs, const CSize_t &rhs)
 
CInt mse::operator- (int lhs, const CInt &rhs)
 
CInt mse::operator- (int lhs, const CSize_t &rhs)
 
CInt mse::operator- (const CInt &lhs, const CSize_t &rhs)
 
CInt mse::operator* (size_t lhs, const CInt &rhs)
 
CSize_t mse::operator* (size_t lhs, const CSize_t &rhs)
 
CInt mse::operator* (int lhs, const CInt &rhs)
 
CInt mse::operator* (int lhs, const CSize_t &rhs)
 
CInt mse::operator* (const CInt &lhs, const CSize_t &rhs)
 
CInt mse::operator/ (size_t lhs, const CInt &rhs)
 
CSize_t mse::operator/ (size_t lhs, const CSize_t &rhs)
 
CInt mse::operator/ (int lhs, const CInt &rhs)
 
CInt mse::operator/ (int lhs, const CSize_t &rhs)
 
CInt mse::operator/ (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator< (size_t lhs, const CInt &rhs)
 
bool mse::operator< (size_t lhs, const CSize_t &rhs)
 
bool mse::operator< (int lhs, const CInt &rhs)
 
bool mse::operator< (int lhs, const CSize_t &rhs)
 
bool mse::operator< (long long lhs, const CInt &rhs)
 
bool mse::operator< (long long lhs, const CSize_t &rhs)
 
bool mse::operator< (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator> (size_t lhs, const CInt &rhs)
 
bool mse::operator> (size_t lhs, const CSize_t &rhs)
 
bool mse::operator> (int lhs, const CInt &rhs)
 
bool mse::operator> (int lhs, const CSize_t &rhs)
 
bool mse::operator> (long long lhs, const CInt &rhs)
 
bool mse::operator> (long long lhs, const CSize_t &rhs)
 
bool mse::operator> (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator<= (size_t lhs, const CInt &rhs)
 
bool mse::operator<= (size_t lhs, const CSize_t &rhs)
 
bool mse::operator<= (int lhs, const CInt &rhs)
 
bool mse::operator<= (int lhs, const CSize_t &rhs)
 
bool mse::operator<= (long long lhs, const CInt &rhs)
 
bool mse::operator<= (long long lhs, const CSize_t &rhs)
 
bool mse::operator<= (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator>= (size_t lhs, const CInt &rhs)
 
bool mse::operator>= (size_t lhs, const CSize_t &rhs)
 
bool mse::operator>= (int lhs, const CInt &rhs)
 
bool mse::operator>= (int lhs, const CSize_t &rhs)
 
bool mse::operator>= (long long lhs, const CInt &rhs)
 
bool mse::operator>= (long long lhs, const CSize_t &rhs)
 
bool mse::operator>= (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator== (size_t lhs, const CInt &rhs)
 
bool mse::operator== (size_t lhs, const CSize_t &rhs)
 
bool mse::operator== (int lhs, const CInt &rhs)
 
bool mse::operator== (int lhs, const CSize_t &rhs)
 
bool mse::operator== (long long lhs, const CInt &rhs)
 
bool mse::operator== (long long lhs, const CSize_t &rhs)
 
bool mse::operator== (const CInt &lhs, const CSize_t &rhs)
 
bool mse::operator!= (size_t lhs, const CInt &rhs)
 
bool mse::operator!= (size_t lhs, const CSize_t &rhs)
 
bool mse::operator!= (int lhs, const CInt &rhs)
 
bool mse::operator!= (int lhs, const CSize_t &rhs)
 
bool mse::operator!= (long long lhs, const CInt &rhs)
 
bool mse::operator!= (long long lhs, const CSize_t &rhs)
 
bool mse::operator!= (const CInt &lhs, const CSize_t &rhs)
 
static void mse::s_type_test1 ()
 

Macro Definition Documentation

◆ _STCONS

#define _STCONS (   ty,
  name,
  val 
)    static constexpr ty name = static_cast<ty>(val)

Definition at line 403 of file mseprimitives.h.

◆ _THROW0

#define _THROW0 ( )

Definition at line 400 of file mseprimitives.h.

◆ MSE_CHECK_USE_BEFORE_SET

#define MSE_CHECK_USE_BEFORE_SET

Definition at line 89 of file mseprimitives.h.

◆ MSE_CINT_BASE_INTEGER_TYPE

#define MSE_CINT_BASE_INTEGER_TYPE   long int

Definition at line 64 of file mseprimitives.h.

◆ MSE_CONSTEXPR

#define MSE_CONSTEXPR   constexpr

Definition at line 42 of file mseprimitives.h.

◆ MSE_THROW

#define MSE_THROW (   x)    throw(x)

Definition at line 58 of file mseprimitives.h.