spla
|
Box for a single typed scalar value. More...
#include <scalar.hpp>
Public Member Functions | |
~Scalar () override=default | |
virtual ref_ptr< Type > | get_type ()=0 |
virtual Status | set_int (std::int32_t value)=0 |
virtual Status | set_uint (std::uint32_t value)=0 |
virtual Status | set_float (float value)=0 |
virtual Status | get_int (std::int32_t &value)=0 |
virtual Status | get_uint (std::uint32_t &value)=0 |
virtual Status | get_float (float &value)=0 |
virtual T_INT | as_int ()=0 |
virtual T_UINT | as_uint ()=0 |
virtual T_FLOAT | as_float ()=0 |
![]() | |
~Object () override=default | |
virtual void | set_label (std::string label)=0 |
virtual const std::string & | get_label () const =0 |
![]() | |
virtual | ~RefCnt () |
bool | is_unique () const |
std::int32_t | get_refs () const |
std::int32_t | add_ref () const |
std::int32_t | rel_ref () const |
Static Public Member Functions | |
static ref_ptr< Scalar > | make (const ref_ptr< Type > &type) |
static ref_ptr< Scalar > | make_int (std::int32_t value) |
static ref_ptr< Scalar > | make_uint (std::uint32_t value) |
static ref_ptr< Scalar > | make_float (float value) |
Box for a single typed scalar value.
|
overridedefault |
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.
|
pure virtual |
Implemented in spla::TScalar< T >.