Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

STR Class Reference

#include <support.H>

Inheritance diagram for STR:

Inheritance graph
[legend]
Collaboration diagram for STR:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 STR ()
 STR (const char *s)
 STR (char s)
 STR (const STR &s)
 STR (int x)
 STR (double d)
 ~STR ()
size_t len () const
STRoperator= (CSTR &s)
char * operator * () const
char operator[] (int i) const
bool operator== (CSTR &s) const
STRoperator+ (CSTR &s) const
bool contains (CSTR &s) const
void Own () const
void Free () const
int Lock ()
void Unlock ()
int Unique () const

Static Public Member Functions

static double load_factor ()

Static Public Attributes

static STRnull = 0

Protected Attributes

char * _s

Static Protected Attributes

static HASHstrpool = 0

Friends

ostream & operator<< (ostream &os, CSTR *s)

Detailed Description

Definition at line 22 of file support.H.


Constructor & Destructor Documentation

STR::STR  )  [inline]
 

Definition at line 29 of file support.H.

References _s.

Referenced by operator+().

STR::STR const char *  s  )  [inline]
 

Definition at line 30 of file support.H.

References _s, HASH::add(), and strpool.

STR::STR char  s  )  [inline]
 

Definition at line 33 of file support.H.

References _s, HASH::add(), and strpool.

STR::STR const STR s  )  [inline]
 

Definition at line 36 of file support.H.

References _s.

STR::STR int  x  )  [inline]
 

Definition at line 37 of file support.H.

References _s, HASH::add(), and strpool.

STR::STR double  d  )  [inline]
 

Definition at line 40 of file support.H.

References _s, HASH::add(), and strpool.

STR::~STR  )  [inline]
 

Definition at line 43 of file support.H.


Member Function Documentation

bool STR::contains CSTR &  s  )  const [inline]
 

Definition at line 52 of file support.H.

References _s.

Referenced by str_ptr::contains().

void REFcounter::Free  )  const [inline, inherited]
 

Definition at line 76 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

size_t STR::len  )  const [inline]
 

Definition at line 44 of file support.H.

References _s.

Referenced by str_ptr::len().

static double STR::load_factor  )  [inline, static]
 

Definition at line 53 of file support.H.

References HASH::load_factor(), and strpool.

Referenced by BaseJOTapp::keymenu_quit_cb(), and quit().

int REFcounter::Lock  )  [inline, inherited]
 

Definition at line 105 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::REFlock().

char* STR::operator *  )  const [inline]
 

Definition at line 46 of file support.H.

References _s.

STR* STR::operator+ CSTR &  s  )  const [inline]
 

Definition at line 49 of file support.H.

References _s, and STR().

STR& STR::operator= CSTR &  s  )  [inline]
 

Definition at line 45 of file support.H.

References _s.

bool STR::operator== CSTR &  s  )  const [inline]
 

Definition at line 48 of file support.H.

References _s.

char STR::operator[] int  i  )  const [inline]
 

Definition at line 47 of file support.H.

References _s.

void REFcounter::Own  )  const [inline, inherited]
 

Definition at line 59 of file ref.H.

References REFcounter::_mutex, REFcounter::_u, and REF_ME.

int REFcounter::Unique  )  const [inline, inherited]
 

Definition at line 115 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

void REFcounter::Unlock  )  [inline, inherited]
 

Definition at line 111 of file ref.H.

References REFcounter::_mutex, and REFcounter::_u.

Referenced by REFlock::~REFlock().


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
CSTR *  s
[friend]
 

Definition at line 54 of file support.H.


Member Data Documentation

char* STR::_s [protected]
 

Definition at line 24 of file support.H.

Referenced by contains(), len(), operator *(), operator+(), operator=(), operator==(), operator[](), and STR().

STR * STR::null = 0 [static]
 

Definition at line 27 of file support.H.

Referenced by str_ptr::null_str().

HASH * STR::strpool = 0 [static, protected]
 

Definition at line 25 of file support.H.

Referenced by load_factor(), and STR().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:47:24 2006 for jot by  doxygen 1.4.4