![]() |
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) | |
| std::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 |
| bool | needsCleanup () const |
| void | destroy () |
Static Public Member Functions | |
| static void | cleanup_rdvalue (RDValue v) |
| static void | cleanup_rdvalue (RDValue &rdvalue) |
Public Attributes | |
| union { | |
| double doubleBits | |
| std::uint64_t otherBits | |
| }; | |
| RDTypeTag::detail::Value | value |
| short | type |
| short | reserved_tag = 0 |
Static Public Attributes | |
| static const std::uint64_t | TagMask = 0xFFFF000000000000 |
| static const std::uint64_t | PointerTagMask = 0xFFFF000000000007 |
| static const std::uint64_t | ApplyMask = 0x0000FFFFFFFFFFFF |
| static const std::uint64_t | ApplyPtrMask = 0x0000FFFFFFFFFFF8 |
Definition at line 165 of file RDValue-doublemagic.h.
|
inline |
Definition at line 177 of file RDValue-doublemagic.h.
References doubleBits.
Referenced by cleanup_rdvalue(), and cleanup_rdvalue().
|
inline |
Definition at line 179 of file RDValue-doublemagic.h.
References doubleBits, RDKit::RDTypeTag::NaN, and otherBits.
|
inline |
Definition at line 190 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::FloatTag, and otherBits.
|
inline |
Definition at line 195 of file RDValue-doublemagic.h.
References ApplyMask, RDKit::RDTypeTag::IntTag, and otherBits.
|
inline |
Definition at line 199 of file RDValue-doublemagic.h.
References ApplyMask, otherBits, and RDKit::RDTypeTag::UnsignedIntTag.
|
inline |
Definition at line 204 of file RDValue-doublemagic.h.
References ApplyMask, RDKit::RDTypeTag::BoolTag, and otherBits.
|
inline |
Definition at line 209 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, and otherBits.
|
inline |
Definition at line 216 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, and otherBits.
|
inline |
Definition at line 226 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, and otherBits.
|
inline |
Definition at line 233 of file RDValue-doublemagic.h.
References otherBits, and RDKit::RDTypeTag::StringTag.
|
inline |
Definition at line 241 of file RDValue-doublemagic.h.
References otherBits, and RDKit::RDTypeTag::VecDoubleTag.
|
inline |
Definition at line 249 of file RDValue-doublemagic.h.
References otherBits, and RDKit::RDTypeTag::VecFloatTag.
|
inline |
Definition at line 257 of file RDValue-doublemagic.h.
References otherBits, and RDKit::RDTypeTag::VecIntTag.
|
inline |
Definition at line 265 of file RDValue-doublemagic.h.
References otherBits, RDKit::RDTypeTag::VecIntTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
|
inline |
Definition at line 273 of file RDValue-doublemagic.h.
References otherBits, and RDKit::RDTypeTag::VecStringTag.
|
inline |
Definition at line 221 of file RDValue-taggedunion.h.
|
inline |
Definition at line 223 of file RDValue-taggedunion.h.
|
inline |
Definition at line 224 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 229 of file RDValue-taggedunion.h.
|
inline |
Definition at line 232 of file RDValue-taggedunion.h.
|
inline |
Definition at line 234 of file RDValue-taggedunion.h.
|
inline |
Definition at line 237 of file RDValue-taggedunion.h.
|
inline |
Definition at line 240 of file RDValue-taggedunion.h.
|
inline |
Definition at line 242 of file RDValue-taggedunion.h.
|
inline |
Definition at line 244 of file RDValue-taggedunion.h.
|
inline |
Definition at line 246 of file RDValue-taggedunion.h.
|
inline |
Definition at line 249 of file RDValue-taggedunion.h.
|
inlinestatic |
Definition at line 311 of file RDValue-taggedunion.h.
References RDValue().
|
inlinestatic |
Definition at line 330 of file RDValue-doublemagic.h.
References destroy(), and RDValue().
Referenced by RDKit::Dict::Pair::cleanup(), RDKit::Dict::clearVal(), 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=(), RDKit::Dict::reset(), RDKit::Dict::setPODVal(), RDKit::Dict::setVal(), RDKit::PairHolder::~PairHolder(), and RDKit::RDAny::~RDAny().
|
inline |
Definition at line 302 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::AnyTag, getTag(), ptrCast(), RDKit::RDTypeTag::StringTag, RDKit::RDTypeTag::VecDoubleTag, RDKit::RDTypeTag::VecFloatTag, RDKit::RDTypeTag::VecIntTag, RDKit::RDTypeTag::VecStringTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
Referenced by cleanup_rdvalue(), and RDKit::copy_rdvalue().
|
inline |
Definition at line 280 of file RDValue-taggedunion.h.
References RDKit::RDTypeTag::AnyTag, RDKit::RDTypeTag::EmptyTag, RDKit::RDTypeTag::StringTag, type, value, RDKit::RDTypeTag::VecDoubleTag, RDKit::RDTypeTag::VecFloatTag, RDKit::RDTypeTag::VecIntTag, RDKit::RDTypeTag::VecStringTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
|
inline |
Definition at line 281 of file RDValue-doublemagic.h.
References RDKit::RDTypeTag::DoubleTag, RDKit::RDTypeTag::MaxDouble, RDKit::RDTypeTag::NaN, otherBits, PointerTagMask, RDKit::RDTypeTag::PtrTag, and TagMask.
Referenced by RDKit::copy_rdvalue(), destroy(), RDKit::from_rdany(), RDKit::from_rdvalue(), RDKit::rdvalue_is< std::any >(), and RDKit::rdvalue_tostring().
|
inline |
Definition at line 252 of file RDValue-taggedunion.h.
References type.
|
inline |
Definition at line 264 of file RDValue-taggedunion.h.
References RDKit::RDTypeTag::AnyTag, RDKit::RDTypeTag::StringTag, type, RDKit::RDTypeTag::VecDoubleTag, RDKit::RDTypeTag::VecFloatTag, RDKit::RDTypeTag::VecIntTag, RDKit::RDTypeTag::VecStringTag, and RDKit::RDTypeTag::VecUnsignedIntTag.
|
inline |
Definition at line 294 of file RDValue-doublemagic.h.
References otherBits.
Referenced by RDKit::copy_rdvalue(), destroy(), 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 256 of file RDValue-taggedunion.h.
References value, and RDKit::RDTypeTag::detail::valuePtrCast().
| union { ... } RDKit::RDValue |
|
static |
Definition at line 169 of file RDValue-doublemagic.h.
|
static |
Definition at line 170 of file RDValue-doublemagic.h.
| double RDKit::RDValue::doubleBits |
Definition at line 173 of file RDValue-doublemagic.h.
Referenced by RDValue(), RDValue(), and RDKit::rdvalue_cast< double >().
| std::uint64_t RDKit::RDValue::otherBits |
Definition at line 174 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 168 of file RDValue-doublemagic.h.
Referenced by getTag().
| short RDKit::RDValue::reserved_tag = 0 |
Definition at line 219 of file RDValue-taggedunion.h.
|
static |
Definition at line 167 of file RDValue-doublemagic.h.
Referenced by getTag().
| short RDKit::RDValue::type |
| RDTypeTag::detail::Value RDKit::RDValue::value |
Definition at line 217 of file RDValue-taggedunion.h.
Referenced by destroy(), ptrCast(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), RDValue(), 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 >().