nis-util
1.0.D108
|
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_ty & | operator= (const string_ty &) |
void | construct (const char *, size_t) |
Static Private Member Functions | |
static void | initialize (void) |
static void | split (void) |
static string_ty * | from_c (const char *) |
static string_ty * | n_from_c (const char *, size_t) |
Private Attributes | |
rcstring::hash_ty | str_hash |
string_ty * | next |
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 |
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.
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.
rcstring::string_ty::~string_ty | ( | ) | [private] |
The destructor.
Definition at line 209 of file rcstring.cc.
rcstring::string_ty::string_ty | ( | ) | [private] |
Definition at line 139 of file rcstring.cc.
rcstring::string_ty::string_ty | ( | const string_ty & | ) | [private] |
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.
rcstring::hash_ty rcstring::string_ty::get_hash | ( | void | ) | const [inline] |
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.
void rcstring::string_ty::one_less | ( | void | ) |
We hasve one fewer reference. Could result in this being deleted.
Definition at line 365 of file rcstring.cc.
void rcstring::string_ty::one_more | ( | void | ) |
We have one more reference.
Definition at line 357 of file rcstring.cc.
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.
friend class rcstring [friend] |
Definition at line 281 of file rcstring.h.
rcstring::hash_ty rcstring::string_ty::hash_load [static, private] |
Definition at line 279 of file rcstring.h.
rcstring::hash_ty rcstring::string_ty::hash_mask [static, private] |
Definition at line 278 of file rcstring.h.
rcstring::hash_ty rcstring::string_ty::hash_modulus [static, private] |
Definition at line 277 of file rcstring.h.
rcstring::string_ty ** rcstring::string_ty::hash_table [static, private] |
Definition at line 276 of file rcstring.h.
string_ty* rcstring::string_ty::next [private] |
Definition at line 264 of file rcstring.h.
long rcstring::string_ty::references [private] |
Definition at line 265 of file rcstring.h.
Definition at line 263 of file rcstring.h.
size_t rcstring::string_ty::str_length [private] |
Definition at line 266 of file rcstring.h.
char* rcstring::string_ty::text [private] |
Definition at line 267 of file rcstring.h.