HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PRM_StringRep Class Reference

#include <PRM_StringRep.h>

Public Member Functions

 PRM_StringRep ()
 
 ~PRM_StringRep ()
 
void get (PRM_SpinLock &lock, UT_WorkBuffer &result)
 Thread-safe accessors. More...
 
void get (PRM_SpinLock &lock, UT_String &result)
 Thread-safe accessors. More...
 
void harden (PRM_SpinLock &lock, const char *source)
 Thread-safe accessors. More...
 
void hardenIfNeeded (PRM_SpinLock &lock, const char *source)
 Thread-safe accessors. More...
 
const char * unsafeGet () const
 Non-thread-safe accessors. More...
 
void unsafeHarden (const char *str)
 Non-thread-safe accessors. More...
 
void unsafeAdopt (UT_String &str)
 Non-thread-safe accessors. More...
 
void unsafeHarden (const PRM_StringRep &str)
 Non-thread-safe accessors. More...
 
exint getMemoryUsage () const
 Non-thread-safe accessors. More...
 
bool findString (const char *str, bool fullword, bool usewildcards) const
 Non-thread-safe accessors. More...
 
bool findVariable (const char *str) const
 Non-thread-safe accessors. More...
 

Detailed Description

A specialized deep string class that implements a special case of hazard pointers where only 1 read-lock per thread for any PRM_StringRep object can be active.

Definition at line 23 of file PRM_StringRep.h.

Constructor & Destructor Documentation

PRM_StringRep::PRM_StringRep ( )
inline

Definition at line 26 of file PRM_StringRep.h.

PRM_StringRep::~PRM_StringRep ( )
inline

Definition at line 30 of file PRM_StringRep.h.

Member Function Documentation

bool PRM_StringRep::findString ( const char *  str,
bool  fullword,
bool  usewildcards 
) const

Non-thread-safe accessors.

bool PRM_StringRep::findVariable ( const char *  str) const

Non-thread-safe accessors.

void PRM_StringRep::get ( PRM_SpinLock lock,
UT_WorkBuffer result 
)

Thread-safe accessors.

void PRM_StringRep::get ( PRM_SpinLock lock,
UT_String result 
)

Thread-safe accessors.

exint PRM_StringRep::getMemoryUsage ( ) const

Non-thread-safe accessors.

void PRM_StringRep::harden ( PRM_SpinLock lock,
const char *  source 
)

Thread-safe accessors.

void PRM_StringRep::hardenIfNeeded ( PRM_SpinLock lock,
const char *  source 
)

Thread-safe accessors.

void PRM_StringRep::unsafeAdopt ( UT_String str)
inline

Non-thread-safe accessors.

Definition at line 53 of file PRM_StringRep.h.

const char* PRM_StringRep::unsafeGet ( ) const
inline

Non-thread-safe accessors.

Definition at line 46 of file PRM_StringRep.h.

void PRM_StringRep::unsafeHarden ( const char *  str)
inline

Non-thread-safe accessors.

Definition at line 48 of file PRM_StringRep.h.

void PRM_StringRep::unsafeHarden ( const PRM_StringRep str)
inline

Non-thread-safe accessors.

Definition at line 58 of file PRM_StringRep.h.


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