HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_StringHolder.h File Reference
#include "UT_API.h"
#include "UT_Format.h"
#include "UT_String.h"
#include "UT_StringView.h"
#include "UT_Swap.h"
#include <SYS/SYS_AtomicInt.h>
#include <SYS/SYS_Inline.h>
#include <SYS/SYS_StaticAssert.h>
#include <SYS/SYS_Types.h>
#include <stdlib.h>
#include <functional>
+ Include dependency graph for UT_StringHolder.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_StringRef
 
class  UT_StringRef::Holder
 
struct  UT_StringRef::NumberedCompare
 
class  UT_StringHolder
 
struct  std::hash< UT_StringRef >
 
struct  std::hash< UT_StringHolder >
 

Namespaces

 UT
 
 UT::Literal
 
 std
 

Functions

UT_StringHolder UT::Literal::operator""_sh (const char *s, std::size_t const length)
 
SYS_FORCE_INLINE size_t hash_value (const UT_StringRef &str)
 
SYS_FORCE_INLINE const
UT_StringHolder
UTmakeUnsafeRef (const UT_StringRef &ref)
 Convert a UT_StringRef into a UT_StringHolder that is a shallow reference. More...
 
SYS_FORCE_INLINE const
UT_StringHolder
UTmakeUnsafeRefHash (const UT_StringRef &ref)
 
SYS_FORCE_INLINE size_t tbb_hasher (const UT_StringRef &s)
 
SYS_FORCE_INLINE size_t tbb_hasher (const UT_StringHolder &s)
 
SYS_FORCE_INLINE UT_StringHolder operator""_UTsh (const char *s, std::size_t const length)
 

Function Documentation

SYS_FORCE_INLINE size_t hash_value ( const UT_StringRef str)

Definition at line 724 of file UT_StringHolder.h.

SYS_FORCE_INLINE UT_StringHolder operator""_UTsh ( const char *  s,
std::size_t const  length 
)

A user-defined literal in the global namespace. Uglier, but allows the use of UT_StringHolder UDLs in headers.

Definition at line 1012 of file UT_StringHolder.h.

SYS_FORCE_INLINE size_t tbb_hasher ( const UT_StringRef s)

Definition at line 995 of file UT_StringHolder.h.

SYS_FORCE_INLINE size_t tbb_hasher ( const UT_StringHolder s)

Definition at line 996 of file UT_StringHolder.h.

Convert a UT_StringRef into a UT_StringHolder that is a shallow reference.

Examples:
SOP/SOP_BouncyAgent.C.

Definition at line 979 of file UT_StringHolder.h.

SYS_FORCE_INLINE const UT_StringHolder& UTmakeUnsafeRefHash ( const UT_StringRef ref)

Convert a UT_StringRef into a UT_StringHolder that is a shallow reference, and also precompute the hash. Use this for string literals that will be used repeatedly in hash tables.

Definition at line 988 of file UT_StringHolder.h.