String Class Reference

#include <rimPhysicsString.h>

List of all members.

Public Member Functions

 String ()
 String (const Char *source)
 String (const Char *array, int newLength)
 String (const String &aString)
 ~String ()
Char get (int index) const
void set (int index, Char Character)
const Charoperator() (const Size index) const
const Charoperator() (const Int index) const
Charoperator() (const Size index)
Charoperator() (const Int index)
const Charoperator[] (const Size index) const
const Charoperator[] (const Int index) const
Charoperator[] (const Size index)
Charoperator[] (const Int index)
const ChargetCString () const
Size getLength () const
Hash getHashCode () const
bool equals (const String &aString) const
bool equals (const Char *characters) const
bool operator== (const String &aString) const
bool operator== (const char *characters) const
bool operator!= (const String &aString) const
bool operator!= (const char *characters) const
String concatenate (const String &aString) const
String concatenate (const Char *Characters) const
String concatenate (Char Character) const
String operator+ (const String &aString) const
Stringoperator= (const String &aString)
 operator const Char * () const

Static Public Member Functions

static String newStringShallow (Char *array)
static Size getLength (const Char *characters)

Private Member Functions

 String (Char *array, Size newLength, unsigned long newHashCode)
void acquire (StringReferenceCounter *aCounter)
void release ()
void copyForWrite ()
 Ensure that this object holds a pointer to unique data.
template<typename IndexType>
bool checkBounds (IndexType index) const

Static Private Member Functions

static String newStringShallow (Char *array, Size length)
static Hash calculateHashCode (const Char *data, Size length)

Private Attributes

Charstring
Size length
Hash hashCode
StringReferenceCountercounter
 A pointer to a structure that counts string references.

Friends

String operator+ (const char *characters, const String &string)

Classes

struct  StringReferenceCounter


Constructor & Destructor Documentation

String::String (  )  [inline]

String::String ( const Char source  )  [inline]

String::String ( const Char array,
int  newLength 
) [inline]

String::String ( const String aString  )  [inline]

String::~String (  )  [inline]

String::String ( Char array,
Size  newLength,
unsigned long  newHashCode 
) [inline, private]


Member Function Documentation

static String String::newStringShallow ( Char array  )  [inline, static]

Char String::get ( int  index  )  const [inline]

void String::set ( int  index,
Char  Character 
) [inline]

const Char& String::operator() ( const Size  index  )  const [inline]

const Char& String::operator() ( const Int  index  )  const [inline]

Char& String::operator() ( const Size  index  )  [inline]

Char& String::operator() ( const Int  index  )  [inline]

const Char& String::operator[] ( const Size  index  )  const [inline]

const Char& String::operator[] ( const Int  index  )  const [inline]

Char& String::operator[] ( const Size  index  )  [inline]

Char& String::operator[] ( const Int  index  )  [inline]

const Char* String::getCString (  )  const [inline]

Size String::getLength (  )  const [inline]

Hash String::getHashCode (  )  const [inline]

bool String::equals ( const String aString  )  const [inline]

bool String::equals ( const Char characters  )  const [inline]

bool String::operator== ( const String aString  )  const [inline]

bool String::operator== ( const char *  characters  )  const [inline]

bool String::operator!= ( const String aString  )  const [inline]

bool String::operator!= ( const char *  characters  )  const [inline]

String String::concatenate ( const String aString  )  const [inline]

String String::concatenate ( const Char Characters  )  const [inline]

String String::concatenate ( Char  Character  )  const [inline]

String String::operator+ ( const String aString  )  const [inline]

String& String::operator= ( const String aString  )  [inline]

String::operator const Char * (  )  const [inline]

static Size String::getLength ( const Char characters  )  [inline, static]

static String String::newStringShallow ( Char array,
Size  length 
) [inline, static, private]

void String::acquire ( StringReferenceCounter aCounter  )  [inline, private]

void String::release (  )  [inline, private]

void String::copyForWrite (  )  [inline, private]

Ensure that this object holds a pointer to unique data.

template<typename IndexType>
bool String::checkBounds ( IndexType  index  )  const [inline, private]

static Hash String::calculateHashCode ( const Char data,
Size  length 
) [inline, static, private]


Friends And Related Function Documentation

String operator+ ( const char *  characters,
const String string 
) [friend]


Member Data Documentation

Char* String::string [private]

Size String::length [private]

Hash String::hashCode [private]

StringReferenceCounter* String::counter [private]

A pointer to a structure that counts string references.


The documentation for this class was generated from the following file:
Generated on Tue Aug 26 00:03:21 2008 for Rim Physics by  doxygen 1.5.4