nis-util  1.0.D108
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends
rcstring::string_ty Class Reference

Public Member Functions

 string_ty (const char *)
 string_ty (const char *, size_t)
void one_more (void)
void one_less (void)
const char * c_str (void) const
bool empty (void) const
size_t size (void) const
rcstring::hash_ty get_hash (void) const

Private Member Functions

 ~string_ty ()
 string_ty ()
 string_ty (const string_ty &)
string_tyoperator= (const string_ty &)
void construct (const char *, size_t)

Static Private Member Functions

static void initialize (void)
static void split (void)
static string_tyfrom_c (const char *)
static string_tyn_from_c (const char *, size_t)

Private Attributes

rcstring::hash_ty str_hash
string_tynext
long references
size_t str_length
char * text

Static Private Attributes

static string_ty ** hash_table
static rcstring::hash_ty hash_modulus
static rcstring::hash_ty hash_mask
static rcstring::hash_ty hash_load

Friends

class rcstring

Detailed Description

The string_ty inner class is used to hold the reference counted value. Its interface is very restricted.

Definition at line 201 of file rcstring.h.


Constructor & Destructor Documentation

rcstring::string_ty::string_ty ( const char *  s)

A constructor.

Definition at line 145 of file rcstring.cc.

rcstring::string_ty::string_ty ( const char *  s,
size_t  len 
)

A constrctor.

Definition at line 151 of file rcstring.cc.

The destructor.

Definition at line 209 of file rcstring.cc.

Definition at line 139 of file rcstring.cc.

rcstring::string_ty::string_ty ( const string_ty ) [private]

Member Function Documentation

const char* rcstring::string_ty::c_str ( void  ) const [inline]

Definition at line 226 of file rcstring.h.

void rcstring::string_ty::construct ( const char *  s,
size_t  length 
) [private]

Definition at line 158 of file rcstring.cc.

bool rcstring::string_ty::empty ( void  ) const [inline]

Definition at line 233 of file rcstring.h.

rcstring::string_ty * rcstring::string_ty::from_c ( const char *  s) [static, private]

Definition at line 133 of file rcstring.cc.

Definition at line 247 of file rcstring.h.

void rcstring::string_ty::initialize ( void  ) [static, private]

Definition at line 71 of file rcstring.cc.

rcstring::string_ty * rcstring::string_ty::n_from_c ( const char *  s,
size_t  length 
) [static, private]

Definition at line 173 of file rcstring.cc.

We hasve one fewer reference. Could result in this being deleted.

Definition at line 365 of file rcstring.cc.

We have one more reference.

Definition at line 357 of file rcstring.cc.

string_ty& rcstring::string_ty::operator= ( const string_ty ) [private]
size_t rcstring::string_ty::size ( void  ) const [inline]

Definition at line 240 of file rcstring.h.

void rcstring::string_ty::split ( void  ) [static, private]

Definition at line 85 of file rcstring.cc.


Friends And Related Function Documentation

friend class rcstring [friend]

Definition at line 281 of file rcstring.h.


Field Documentation

Definition at line 279 of file rcstring.h.

Definition at line 278 of file rcstring.h.

Definition at line 277 of file rcstring.h.

Definition at line 276 of file rcstring.h.

Definition at line 264 of file rcstring.h.

Definition at line 265 of file rcstring.h.

Definition at line 263 of file rcstring.h.

Definition at line 266 of file rcstring.h.

char* rcstring::string_ty::text [private]

Definition at line 267 of file rcstring.h.


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