GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
chaiscript::Boxed_Number Class Reference

Represents any numeric type, generically. Used internally for generic operations between POD values. More...

#include <boxed_number.hpp>

Collaboration diagram for chaiscript::Boxed_Number:

Public Member Functions

 Boxed_Number ()
 Boxed_Number (Boxed_Value v)
 Boxed_Number (const Boxed_Number &)=default
 Boxed_Number (Boxed_Number &&)=default
Boxed_Number & operator= (Boxed_Number &&)=default
template<typename T>
 Boxed_Number (T t)
Boxed_Number get_as (const Type_Info &inp_) const
template<typename Target>
Target get_as_checked () const
template<typename Target>
Target get_as () const
std::string to_string () const

Static Public Member Functions

static Boxed_Value clone (const Boxed_Value &t_bv)
static bool is_floating_point (const Boxed_Value &t_bv)
template<typename Source, typename Target>
static void check_type ()
static void validate_boxed_number (const Boxed_Value &v)
static bool equals (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static bool less_than (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static bool greater_than (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static bool greater_than_equal (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static bool less_than_equal (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static bool not_equal (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number pre_decrement (Boxed_Number t_lhs)
static Boxed_Number pre_increment (Boxed_Number t_lhs)
static const Boxed_Number sum (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number unary_plus (const Boxed_Number &t_lhs)
static const Boxed_Number unary_minus (const Boxed_Number &t_lhs)
static const Boxed_Number difference (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_bitwise_and (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_bitwise_or (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_bitwise_xor (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_remainder (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_shift_left (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_shift_right (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number bitwise_and (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number bitwise_complement (const Boxed_Number &t_lhs)
static const Boxed_Number bitwise_xor (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number bitwise_or (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_product (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_quotient (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_sum (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static Boxed_Number assign_difference (Boxed_Number t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number quotient (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number shift_left (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number product (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number remainder (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static const Boxed_Number shift_right (const Boxed_Number &t_lhs, const Boxed_Number &t_rhs)
static Boxed_Value do_oper (Operators::Opers t_oper, const Boxed_Value &t_lhs, const Boxed_Value &t_rhs)
static Boxed_Value do_oper (Operators::Opers t_oper, const Boxed_Value &t_lhs)

Public Attributes

Boxed_Value bv

Detailed Description

Represents any numeric type, generically. Used internally for generic operations between POD values.

Constructor & Destructor Documentation

◆ Boxed_Number() [1/5]

chaiscript::Boxed_Number::Boxed_Number ( )
inline
Here is the caller graph for this function:

◆ Boxed_Number() [2/5]

chaiscript::Boxed_Number::Boxed_Number ( Boxed_Value v)
inlineexplicit

◆ Boxed_Number() [3/5]

chaiscript::Boxed_Number::Boxed_Number ( const Boxed_Number & )
default

◆ Boxed_Number() [4/5]

chaiscript::Boxed_Number::Boxed_Number ( Boxed_Number && )
default

◆ Boxed_Number() [5/5]

template<typename T>
chaiscript::Boxed_Number::Boxed_Number ( T t)
inlineexplicit

Member Function Documentation

◆ assign()

Boxed_Number chaiscript::Boxed_Number::assign ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_bitwise_and()

Boxed_Number chaiscript::Boxed_Number::assign_bitwise_and ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_bitwise_or()

Boxed_Number chaiscript::Boxed_Number::assign_bitwise_or ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_bitwise_xor()

Boxed_Number chaiscript::Boxed_Number::assign_bitwise_xor ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_difference()

Boxed_Number chaiscript::Boxed_Number::assign_difference ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_product()

Boxed_Number chaiscript::Boxed_Number::assign_product ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_quotient()

Boxed_Number chaiscript::Boxed_Number::assign_quotient ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_remainder()

Boxed_Number chaiscript::Boxed_Number::assign_remainder ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_shift_left()

Boxed_Number chaiscript::Boxed_Number::assign_shift_left ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_shift_right()

Boxed_Number chaiscript::Boxed_Number::assign_shift_right ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ assign_sum()

Boxed_Number chaiscript::Boxed_Number::assign_sum ( Boxed_Number t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ bitwise_and()

const Boxed_Number chaiscript::Boxed_Number::bitwise_and ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ bitwise_complement()

const Boxed_Number chaiscript::Boxed_Number::bitwise_complement ( const Boxed_Number & t_lhs)
inlinestatic

◆ bitwise_or()

const Boxed_Number chaiscript::Boxed_Number::bitwise_or ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ bitwise_xor()

const Boxed_Number chaiscript::Boxed_Number::bitwise_xor ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ check_type()

template<typename Source, typename Target>
void chaiscript::Boxed_Number::check_type ( )
inlinestatic
Here is the caller graph for this function:

◆ clone()

Boxed_Value chaiscript::Boxed_Number::clone ( const Boxed_Value & t_bv)
inlinestatic
Here is the caller graph for this function:

◆ difference()

const Boxed_Number chaiscript::Boxed_Number::difference ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ do_oper() [1/2]

Boxed_Value chaiscript::Boxed_Number::do_oper ( Operators::Opers t_oper,
const Boxed_Value & t_lhs )
inlinestatic

◆ do_oper() [2/2]

Boxed_Value chaiscript::Boxed_Number::do_oper ( Operators::Opers t_oper,
const Boxed_Value & t_lhs,
const Boxed_Value & t_rhs )
inlinestatic
Here is the caller graph for this function:

◆ equals()

bool chaiscript::Boxed_Number::equals ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ get_as() [1/2]

template<typename Target>
Target chaiscript::Boxed_Number::get_as ( ) const
inline

◆ get_as() [2/2]

Boxed_Number chaiscript::Boxed_Number::get_as ( const Type_Info & inp_) const
inline
Here is the caller graph for this function:

◆ get_as_checked()

template<typename Target>
Target chaiscript::Boxed_Number::get_as_checked ( ) const
inline

◆ greater_than()

bool chaiscript::Boxed_Number::greater_than ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ greater_than_equal()

bool chaiscript::Boxed_Number::greater_than_equal ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ is_floating_point()

bool chaiscript::Boxed_Number::is_floating_point ( const Boxed_Value & t_bv)
inlinestatic

◆ less_than()

bool chaiscript::Boxed_Number::less_than ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ less_than_equal()

bool chaiscript::Boxed_Number::less_than_equal ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ not_equal()

bool chaiscript::Boxed_Number::not_equal ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ operator=()

Boxed_Number & chaiscript::Boxed_Number::operator= ( Boxed_Number && )
default

◆ pre_decrement()

Boxed_Number chaiscript::Boxed_Number::pre_decrement ( Boxed_Number t_lhs)
inlinestatic

◆ pre_increment()

Boxed_Number chaiscript::Boxed_Number::pre_increment ( Boxed_Number t_lhs)
inlinestatic

◆ product()

const Boxed_Number chaiscript::Boxed_Number::product ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ quotient()

const Boxed_Number chaiscript::Boxed_Number::quotient ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ remainder()

const Boxed_Number chaiscript::Boxed_Number::remainder ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ shift_left()

const Boxed_Number chaiscript::Boxed_Number::shift_left ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ shift_right()

const Boxed_Number chaiscript::Boxed_Number::shift_right ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ sum()

const Boxed_Number chaiscript::Boxed_Number::sum ( const Boxed_Number & t_lhs,
const Boxed_Number & t_rhs )
inlinestatic

◆ to_string()

std::string chaiscript::Boxed_Number::to_string ( ) const
inline
Here is the caller graph for this function:

◆ unary_minus()

const Boxed_Number chaiscript::Boxed_Number::unary_minus ( const Boxed_Number & t_lhs)
inlinestatic

◆ unary_plus()

const Boxed_Number chaiscript::Boxed_Number::unary_plus ( const Boxed_Number & t_lhs)
inlinestatic

◆ validate_boxed_number()

void chaiscript::Boxed_Number::validate_boxed_number ( const Boxed_Value & v)
inlinestatic
Here is the caller graph for this function:

Member Data Documentation

◆ bv

Boxed_Value chaiscript::Boxed_Number::bv

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