HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_StringRef::Holder Class Reference

#include <UT_StringHolder.h>

Public Member Functions

 Holder ()
 
const char * c_str () const
 
void incref ()
 
void decref ()
 
exint length () const
 
unsigned hash () const
 
int64 getMemoryUsage (bool inclusive) const
 

Static Public Member Functions

static Holderbuild (const char *str, StorageMode storage)
 
static HolderbuildFromData (const char *str, exint len, StorageMode storage, int hash=0)
 
static HolderbuildBuffer (exint length, StorageMode storage)
 

Friends

class UT_StringHolder
 
class UT_StringRef
 

Detailed Description

Definition at line 63 of file UT_StringHolder.h.

Constructor & Destructor Documentation

UT_StringRef::Holder::Holder ( )
inline

Definition at line 66 of file UT_StringHolder.h.

Member Function Documentation

static Holder* UT_StringRef::Holder::build ( const char *  str,
StorageMode  storage 
)
static
static Holder* UT_StringRef::Holder::buildBuffer ( exint  length,
StorageMode  storage 
)
static
static Holder* UT_StringRef::Holder::buildFromData ( const char *  str,
exint  len,
StorageMode  storage,
int  hash = 0 
)
static
const char* UT_StringRef::Holder::c_str ( void  ) const
inline

Definition at line 82 of file UT_StringHolder.h.

void UT_StringRef::Holder::decref ( )
inline

Definition at line 94 of file UT_StringHolder.h.

int64 UT_StringRef::Holder::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 132 of file UT_StringHolder.h.

unsigned UT_StringRef::Holder::hash ( ) const
inline

Definition at line 123 of file UT_StringHolder.h.

void UT_StringRef::Holder::incref ( )
inline

Definition at line 90 of file UT_StringHolder.h.

exint UT_StringRef::Holder::length ( void  ) const
inline

Definition at line 118 of file UT_StringHolder.h.

Friends And Related Function Documentation

friend class UT_StringHolder
friend

Definition at line 166 of file UT_StringHolder.h.

friend class UT_StringRef
friend

Definition at line 167 of file UT_StringHolder.h.

Member Data Documentation

const char* UT_StringRef::Holder::myData

Definition at line 177 of file UT_StringHolder.h.

char UT_StringRef::Holder::myDataIfInline[sizeof(const char *)]

Definition at line 178 of file UT_StringHolder.h.


The documentation for this class was generated from the following file: