HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_Compiler.h>
#include <SYS/SYS_Inline.h>
#include <SYS/SYS_Pragma.h>
#include <SYS/SYS_StaticAssert.h>
#include <SYS/SYS_Types.h>
#include <functional>
#include <iosfwd>
#include <stdlib.h>
+ 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_StringLit
 
class  UT_StringRef
 
class  UT_StringRef::Holder
 
struct  UT_StringRef::NumberedCompare
 
class  UT_StringHolder
 
class  UT_Array< T >
 
struct  std::hash< UT_StringRef >
 
struct  std::hash< UT_StringHolder >
 
struct  UT::DefaultClearer< T >
 
struct  UT::DefaultClearer< 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)
 
 UT_EXTERN_TEMPLATE (UT_Array< UT_StringHolder >)
 
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 930 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 1308 of file UT_StringHolder.h.

SYS_FORCE_INLINE size_t tbb_hasher ( const UT_StringRef s)

Definition at line 1291 of file UT_StringHolder.h.

SYS_FORCE_INLINE size_t tbb_hasher ( const UT_StringHolder s)

Definition at line 1292 of file UT_StringHolder.h.

UT_EXTERN_TEMPLATE ( UT_Array< UT_StringHolder )

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

Examples:
SOP/SOP_BouncyAgent.C.

Definition at line 1261 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 1270 of file UT_StringHolder.h.