A wrapper for holding any valid C++ type. All types in ChaiScript are Boxed_Value objects.
More...
#include <boxed_value.hpp>
A wrapper for holding any valid C++ type. All types in ChaiScript are Boxed_Value objects.
- See also
- chaiscript::boxed_cast
◆ Boxed_Value() [1/4]
template<typename
T, typename = typename std::enable_if<!std::is_same<Boxed_Value, typename std::decay<T>::type>::value>::type>
| chaiscript::Boxed_Value::Boxed_Value |
( |
T && | t, |
|
|
bool | t_return_value = false ) |
|
inlineexplicit |
◆ Boxed_Value() [2/4]
| chaiscript::Boxed_Value::Boxed_Value |
( |
| ) |
|
|
default |
Unknown-type constructor.
◆ Boxed_Value() [3/4]
| chaiscript::Boxed_Value::Boxed_Value |
( |
Boxed_Value && | | ) |
|
|
default |
◆ Boxed_Value() [4/4]
| chaiscript::Boxed_Value::Boxed_Value |
( |
const Boxed_Value & | | ) |
|
|
default |
◆ assign()
Copy the values stored in rhs.m_data to m_data. m_data pointers are not shared in this case
◆ clone_attrs()
◆ copy_attrs()
◆ get()
◆ get_attr()
| Boxed_Value chaiscript::Boxed_Value::get_attr |
( |
const std::string & | t_name | ) |
|
|
inline |
◆ get_const_ptr()
| const void * chaiscript::Boxed_Value::get_const_ptr |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_ptr()
| void * chaiscript::Boxed_Value::get_ptr |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_type_info()
| const Type_Info & chaiscript::Boxed_Value::get_type_info |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_const()
| bool chaiscript::Boxed_Value::is_const |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_null()
| bool chaiscript::Boxed_Value::is_null |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_pointer()
| bool chaiscript::Boxed_Value::is_pointer |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_ref()
| bool chaiscript::Boxed_Value::is_ref |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_return_value()
| bool chaiscript::Boxed_Value::is_return_value |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_type()
| bool chaiscript::Boxed_Value::is_type |
( |
const Type_Info & | ti | ) |
const |
|
inlinenoexcept |
◆ is_undef()
| bool chaiscript::Boxed_Value::is_undef |
( |
| ) |
const |
|
inlinenoexcept |
return true if the object is uninitialized
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pointer_sentinel()
| auto chaiscript::Boxed_Value::pointer_sentinel |
( |
std::shared_ptr< T > & | ptr | ) |
const |
|
inline |
◆ reset_return_value()
| void chaiscript::Boxed_Value::reset_return_value |
( |
| ) |
const |
|
inlinenoexcept |
◆ swap()
| void chaiscript::Boxed_Value::swap |
( |
Boxed_Value & | rhs | ) |
|
|
inline |
◆ type_match()
- Returns
- true if the two Boxed_Values share the same internal type
The documentation for this class was generated from the following file: