13 #ifndef __UT_TOKENSTRING_H__
14 #define __UT_TOKENSTRING_H__
40 {
return !(*
this == str); }
45 void append(
int16 value,
bool hashonly =
false);
47 void append(
int32 value,
bool hashonly =
false);
53 void append(
char value,
bool hashonly =
false);
54 void append(
const char *
value,
bool hashonly =
false);
57 void appendPointer(
const void *,
bool hashonly=
false);
64 int64 getMemoryUsage(
bool inclusive)
const;
67 int copyToMem(
void *mem,
int *
length)
const;
68 void copyFromMem(
void *mem,
int *
length);
72 void getPrintable(
UT_String &
string)
const;
91 return p->getHashCode();
109 class Map :
public UT_Map<Ptr,V,PtrHashFunctor,PtrEqualFunctor>
119 void resizeString(
int size);
121 void append(
const void *str,
int length,
bool hashonly);
123 unsigned int myHashCode;
132 #ifdef UT_TS_DETECT_BUFFER_ERRORS
133 unsigned char *myMemString;
UT_UniquePtr< UT_TokenString, PtrDeleter > Ptr
UT_Set< Ptr, PtrHashFunctor, PtrEqualFunctor > Set
GLboolean GLboolean GLboolean GLboolean a
GLuint GLsizei GLsizei * length
unsigned long long uint64
bool operator!=(const UT_TokenString &str) const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
OIIO_FORCEINLINE const vint4 & operator+=(vint4 &a, const vint4 &b)
GLboolean GLboolean GLboolean b
SYS_FORCE_INLINE bool operator()(const Ptr &a, const Ptr &b) const
static void freeString(UT_TokenString *&)
LeafData & operator=(const LeafData &)=delete
SYS_FORCE_INLINE size_t operator()(const Ptr &p) const
unsigned int getHashCode() const
FMT_INLINE void print(format_string< T...> fmt, T &&...args)
SYS_FORCE_INLINE void operator()(UT_TokenString *ts)