HDK
|
#include <UT_Options.h>
Public Types | |
typedef UT_Options | value_type |
Public Member Functions | |
SYS_FORCE_INLINE | UT_OptionsRef () |
SYS_FORCE_INLINE | UT_OptionsRef (const UT_Options *opt) |
Will make a shallow reference. More... | |
SYS_FORCE_INLINE | UT_OptionsRef (const UT_OptionsRef &s) |
Shares a reference with the source. More... | |
SYS_FORCE_INLINE | UT_OptionsRef (UT_OptionsRef &&s) noexcept |
Move constructor. Steals the working data from the original. More... | |
SYS_FORCE_INLINE | ~UT_OptionsRef () |
bool | isUnique () const |
Returns true this object is the sole owner of the underlying options. More... | |
int | use_count () const |
UT_OptionsRef & | operator= (const UT_OptionsRef &s) |
Shares a reference with the source. More... | |
SYS_FORCE_INLINE UT_OptionsRef & | operator= (UT_OptionsRef &&s) |
SYS_FORCE_INLINE const UT_Options * | optionsOrNull () const |
SYS_FORCE_INLINE const UT_Options * | options () const |
bool | operator== (const UT_OptionsRef &s) const |
bool | operator== (const UT_Options *b) const |
bool | operator!= (const UT_OptionsRef &s) const |
bool | operator!= (const UT_Options *s) const |
bool | isEqual (const UT_OptionsRef &s, fpreal64 tol) const |
Comparison operator with a tolerance for float values. More... | |
SYS_FORCE_INLINE const UT_Options * | operator-> () const |
SYS_FORCE_INLINE const UT_Options & | operator* () const |
SYS_FORCE_INLINE void | swap (UT_OptionsRef &other) |
SYS_FORCE_INLINE void | clear () |
bool | isEmpty () const |
operator bool () const | |
unsigned | hash () const |
void | reference (const UT_Options *src) |
int64 | getMemoryUsage (bool inclusive) const |
Static Public Member Functions | |
static const UT_Options & | emptyOptions () |
Friends | |
class | UT_OptionsHolder |
void | swap (UT_OptionsRef &a, UT_OptionsRef &b) |
Friend specialization of std::swap() to use UT_OptionsRef::swap() More... | |
enum | UT_OptionsSentinelType { SENTINEL } |
SYS_FORCE_INLINE | UT_OptionsRef (UT_OptionsSentinelType) |
SYS_FORCE_INLINE bool | isSentinel () const |
SYS_FORCE_INLINE void | makeSentinel () |
A holder for a options, which caches the hash value. A UT_OptionsRef does not necessarily own the options, and it is therefore not safe to e.g. store a UT_OptionsRef in a container or member variable.
Definition at line 766 of file UT_Options.h.
typedef UT_Options UT_OptionsRef::value_type |
Definition at line 769 of file UT_Options.h.
|
inline |
Definition at line 772 of file UT_Options.h.
|
inline |
Will make a shallow reference.
Definition at line 779 of file UT_Options.h.
|
inline |
Shares a reference with the source.
Definition at line 787 of file UT_Options.h.
|
inlinenoexcept |
Move constructor. Steals the working data from the original.
Definition at line 796 of file UT_Options.h.
|
inline |
Definition at line 805 of file UT_Options.h.
|
inlineexplicit |
Special sentinel value support
Definition at line 814 of file UT_Options.h.
|
inline |
Definition at line 964 of file UT_Options.h.
|
inlinestatic |
Definition at line 1018 of file UT_Options.h.
|
inline |
Definition at line 1008 of file UT_Options.h.
|
inline |
Definition at line 983 of file UT_Options.h.
|
inline |
Definition at line 969 of file UT_Options.h.
bool UT_OptionsRef::isEqual | ( | const UT_OptionsRef & | s, |
fpreal64 | tol | ||
) | const |
Comparison operator with a tolerance for float values.
|
inline |
Special sentinel value support
Definition at line 821 of file UT_Options.h.
|
inline |
Returns true this object is the sole owner of the underlying options.
Definition at line 836 of file UT_Options.h.
|
inline |
Special sentinel value support
Definition at line 827 of file UT_Options.h.
|
inlineexplicit |
Definition at line 981 of file UT_Options.h.
|
inline |
Definition at line 941 of file UT_Options.h.
|
inline |
Definition at line 943 of file UT_Options.h.
|
inline |
Definition at line 950 of file UT_Options.h.
|
inline |
Definition at line 949 of file UT_Options.h.
|
inline |
Shares a reference with the source.
Definition at line 860 of file UT_Options.h.
|
inline |
Move the contents of about-to-be-destructed options s to this string.
Definition at line 872 of file UT_Options.h.
|
inline |
Definition at line 896 of file UT_Options.h.
|
inline |
Definition at line 922 of file UT_Options.h.
|
inline |
Definition at line 888 of file UT_Options.h.
|
inline |
Definition at line 880 of file UT_Options.h.
|
inline |
Make a light weight reference to the source. Caller must make sure src lives for the duration of this object, and any objects value copied from this!
Definition at line 1002 of file UT_Options.h.
|
inline |
Definition at line 953 of file UT_Options.h.
|
inline |
Returns the shared ptr use count. 0 if not a shared pointer. (null or soft ref)
Definition at line 850 of file UT_Options.h.
|
friend |
Friend specialization of std::swap() to use UT_OptionsRef::swap()
Definition at line 961 of file UT_Options.h.
|
friend |
Definition at line 1056 of file UT_Options.h.