statstring Class Reference

A static keyed string. More...

#include <statstring.h>

Inheritance diagram for statstring:
Inheritance graph
[legend]
Collaboration diagram for statstring:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 statstring (void)
 statstring (const char *str)
 statstring (const unsigned char *str)
 statstring (const string &str)
 statstring (string *str)
 statstring (const char *str, unsigned int k)
 statstring (const statstring &str)
 statstring (statstring *str)
 statstring (class value *)
 statstring (const class value &)
 ~statstring (void)
void assign (unsigned int)
void assign (const string &)
void assign (string *)
void assign (const char *)
void assign (const char *, unsigned int)
void assign (const statstring &)
void assign (statstring *)
void clear (void)
unsigned int strlen (void) const
unsigned int key (void) const
unsigned int id (void) const
 operator bool (void) const
const char * str (void) const
const char * cval (void) const
const stringsval (void) const
virtual void init (bool first)



statstringoperator= (unsigned int i)
statstringoperator= (const class value &)
statstringoperator= (class value *)
statstringoperator= (const statstring &str)
statstringoperator= (statstring *str)
statstringoperator= (const char *str)
statstringoperator= (const unsigned char *str)
statstringoperator= (const string &str)
statstringoperator= (string *str)
bool operator== (const statstring &str) const
bool operator== (const string &str) const
bool operator== (const char *str) const
bool operator== (const string *str) const
bool operator== (const class value &) const
bool operator!= (const class value &) const
bool operator!= (const statstring &str) const
bool operator!= (const string &str) const
bool operator!= (const char *str) const
bool operator!= (const string *str) const

Protected Attributes

stringrefref

Detailed Description

A static keyed string.

Storage for a mostly immutable string of text together with a checksum key that makes it easy for keyed access methods of other classes.


Constructor & Destructor Documentation

statstring::statstring ( const char *  str,
unsigned int  k 
) [inline]

Constructor.

Copy from C string with known key.

Parameters:
str The string data.
k The calculated key.

References assign(), and ref.

Here is the call graph for this function:

statstring::~statstring ( void   )  [inline]

Destructor.

Remove reference from the global ref table.

References ref, and stringrefdb::unref().

Here is the call graph for this function:


Member Function Documentation

void statstring::assign ( string str  ) 

Assign to data from a string object.

Delete original after copying.

References stringrefdb::getref(), ref, string::str(), and stringrefdb::unref().

Here is the call graph for this function:

statstring::operator bool ( void   )  const [inline]

Bool cast.

Returns false if there's no reference.

References ref, stringref::str, and string::strlen().

Here is the call graph for this function:


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

Generated on Sun Feb 28 10:36:25 2010 for GRACE by  doxygen 1.6.1