RDKit
Open-source cheminformatics and machine learning.
|
#include <RDValue-doublemagic.h>
Public Member Functions | |
RDValue () | |
RDValue (double number) | |
RDValue (float number) | |
RDValue (int32_t number) | |
RDValue (unsigned int number) | |
RDValue (bool number) | |
RDValue (std::any *pointer) | |
RDValue (const std::any &any) | |
template<class T > | |
RDValue (const T &v) | |
RDValue (const std::string &v) | |
RDValue (const std::vector< double > &v) | |
RDValue (const std::vector< float > &v) | |
RDValue (const std::vector< int > &v) | |
RDValue (const std::vector< unsigned int > &v) | |
RDValue (const std::vector< std::string > &v) | |
boost::uint64_t | getTag () const |
template<class T > | |
T * | ptrCast () const |
void | destroy () |
RDValue () | |
RDValue (double v) | |
RDValue (float v) | |
RDValue (int v) | |
RDValue (unsigned v) | |
RDValue (bool v) | |
RDValue (std::any *v) | |
RDValue (const std::any &v) | |
RDValue (const std::string &v) | |
template<class T > | |
RDValue (const T &v) | |
RDValue (const std::vector< double > &v) | |
RDValue (const std::vector< float > &v) | |
RDValue (const std::vector< int > &v) | |
RDValue (const std::vector< unsigned int > &v) | |
RDValue (const std::vector< std::string > &v) | |
short | getTag () const |
template<class T > | |
T * | ptrCast () const |
void | destroy () |
Static Public Member Functions | |
static void | cleanup_rdvalue (RDValue v) |
static void | cleanup_rdvalue (RDValue &rdvalue) |
Public Attributes | ||
union { | ||
double doubleBits | ||
boost::uint64_t otherBits | ||
}; | ||
RDTypeTag::detail::Value | value | |
short | type | |
short | reserved_tag = 0 | |
Static Public Attributes | |
static const boost::uint64_t | TagMask = 0xFFFF000000000000 |
static const boost::uint64_t | PointerTagMask = 0xFFFF000000000007 |
static const boost::uint64_t | ApplyMask = 0x0000FFFFFFFFFFFF |
static const boost::uint64_t | ApplyPtrMask = 0x0000FFFFFFFFFFF8 |
Definition at line 167 of file RDValue-doublemagic.h.
|
inline |
Definition at line 179 of file RDValue-doublemagic.h.
|
inline |
Definition at line 181 of file RDValue-doublemagic.h.
References doubleBits, RDKit::RDTypeTag::NaN, otherBits, and RDKit::rdvalue_is().
|
inline |
Definition at line 191 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::FloatTag, otherBits, and RDKit::rdvalue_is().
|
inline |
Definition at line 196 of file RDValue-doublemagic.h.
References ApplyMask, RDKit::RDTypeTag::IntTag, and otherBits.
Definition at line 200 of file RDValue-doublemagic.h.
References ApplyMask, otherBits, and RDKit::RDTypeTag::UnsignedIntTag.
|
inline |
Definition at line 205 of file RDValue-doublemagic.h.
References ApplyMask, RDKit::RDTypeTag::BoolTag, and otherBits.
|
inline |
Definition at line 210 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, otherBits, and RDKit::rdvalue_is().
|
inline |
Definition at line 217 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, otherBits, and RDKit::rdvalue_is().
Definition at line 227 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, otherBits, and RDKit::rdvalue_is().
|
inline |
Definition at line 234 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), and RDKit::RDTypeTag::StringTag.
Definition at line 242 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), and RDKit::RDTypeTag::VecDoubleTag.
Definition at line 250 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), and RDKit::RDTypeTag::VecFloatTag.
Definition at line 258 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), and RDKit::RDTypeTag::VecIntTag.
Definition at line 266 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), RDKit::RDTypeTag::VecIntTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
|
inline |
Definition at line 274 of file RDValue-doublemagic.h.
References otherBits, RDKit::rdvalue_is(), and RDKit::RDTypeTag::VecStringTag.
|
inline |
Definition at line 223 of file RDValue-taggedunion.h.
|
inline |
Definition at line 225 of file RDValue-taggedunion.h.
|
inline |
Definition at line 226 of file RDValue-taggedunion.h.
|
inline |
Definition at line 227 of file RDValue-taggedunion.h.
|
inline |
Definition at line 228 of file RDValue-taggedunion.h.
|
inline |
Definition at line 229 of file RDValue-taggedunion.h.
|
inline |
Definition at line 231 of file RDValue-taggedunion.h.
|
inline |
Definition at line 234 of file RDValue-taggedunion.h.
|
inline |
Definition at line 236 of file RDValue-taggedunion.h.
Definition at line 239 of file RDValue-taggedunion.h.
Definition at line 242 of file RDValue-taggedunion.h.
Definition at line 244 of file RDValue-taggedunion.h.
Definition at line 246 of file RDValue-taggedunion.h.
Definition at line 248 of file RDValue-taggedunion.h.
|
inline |
Definition at line 251 of file RDValue-taggedunion.h.
Definition at line 297 of file RDValue-taggedunion.h.
References RDKit::rdvalue_is().
Definition at line 331 of file RDValue-doublemagic.h.
References destroy().
Referenced by RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), RDKit::RDAny::operator=(), and RDKit::RDAny::~RDAny().
|
inline |
Definition at line 303 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, getTag(), RDKit::rdvalue_is(), RDKit::RDTypeTag::StringTag, RDKit::RDTypeTag::VecDoubleTag, RDKit::RDTypeTag::VecFloatTag, RDKit::RDTypeTag::VecIntTag, RDKit::RDTypeTag::VecStringTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
Referenced by cleanup_rdvalue().
|
inline |
Definition at line 266 of file RDValue-taggedunion.h.
References RDKit::RDTypeTag::detail::Value::a, RDKit::RDTypeTag::AnyTag, RDKit::RDTypeTag::EmptyTag, RDKit::RDTypeTag::detail::Value::s, RDKit::RDTypeTag::StringTag, type, value, RDKit::RDTypeTag::detail::Value::vd, RDKit::RDTypeTag::VecDoubleTag, RDKit::RDTypeTag::VecFloatTag, RDKit::RDTypeTag::VecIntTag, RDKit::RDTypeTag::VecStringTag, RDKit::RDTypeTag::VecUnsignedIntTag, RDKit::RDTypeTag::detail::Value::vf, RDKit::RDTypeTag::detail::Value::vi, RDKit::RDTypeTag::detail::Value::vs, and RDKit::RDTypeTag::detail::Value::vu.
|
inline |
Definition at line 282 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::DoubleTag, RDKit::RDTypeTag::MaxDouble, RDKit::RDTypeTag::NaN, otherBits, PointerTagMask, RDKit::RDTypeTag::PtrTag, RDKit::rdvalue_is(), and TagMask.
Referenced by destroy(), RDKit::rdvalue_is< std::any >(), and RDKit::rdvalue_tostring().
|
inline |
Definition at line 254 of file RDValue-taggedunion.h.
References type.
|
inline |
Definition at line 295 of file RDValue-doublemagic.h.
References otherBits, and RDKit::rdvalue_is().
Referenced by RDKit::rdvalue_cast(), RDKit::rdvalue_cast< const std::any & >(), RDKit::rdvalue_cast< std::any & >(), RDKit::rdvalue_cast< std::any >(), RDKit::rdvalue_cast< std::int64_t >(), RDKit::rdvalue_cast< std::string & >(), RDKit::rdvalue_cast< std::string >(), and RDKit::rdvalue_cast< std::uint64_t >().
|
inline |
Definition at line 258 of file RDValue-taggedunion.h.
References value.
union { ... } RDKit::RDValue |
|
static |
Definition at line 171 of file RDValue-doublemagic.h.
|
static |
Definition at line 172 of file RDValue-doublemagic.h.
double RDKit::RDValue::doubleBits |
Definition at line 175 of file RDValue-doublemagic.h.
Referenced by RDValue(), and RDKit::rdvalue_cast< double >().
boost::uint64_t RDKit::RDValue::otherBits |
Definition at line 176 of file RDValue-doublemagic.h.
Referenced by getTag(), ptrCast(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDKit::rdvalue_cast< bool >(), RDKit::rdvalue_cast< float >(), RDKit::rdvalue_cast< int >(), and RDKit::rdvalue_cast< unsigned int >().
|
static |
Definition at line 170 of file RDValue-doublemagic.h.
Referenced by getTag().
short RDKit::RDValue::reserved_tag = 0 |
Definition at line 221 of file RDValue-taggedunion.h.
|
static |
Definition at line 169 of file RDValue-doublemagic.h.
Referenced by getTag().
short RDKit::RDValue::type |
Definition at line 220 of file RDValue-taggedunion.h.
RDTypeTag::detail::Value RDKit::RDValue::value |
Definition at line 219 of file RDValue-taggedunion.h.
Referenced by destroy(), ptrCast(), RDKit::rdvalue_cast< bool >(), RDKit::rdvalue_cast< double >(), RDKit::rdvalue_cast< float >(), RDKit::rdvalue_cast< int >(), RDKit::rdvalue_cast< std::int16_t >(), RDKit::rdvalue_cast< std::int64_t >(), RDKit::rdvalue_cast< std::int8_t >(), RDKit::rdvalue_cast< std::uint16_t >(), RDKit::rdvalue_cast< std::uint64_t >(), RDKit::rdvalue_cast< std::uint8_t >(), and RDKit::rdvalue_cast< unsigned int >().