OHyMosString

string class

[ libohymos | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class OHyMosString
{

public:
OHyMosString(void);
OHyMosString(const char*);
OHyMosString(const OHyMosString&);
~OHyMosString() ;
OHyMosString& operator=(const char*);
OHyMosString& operator=(const OHyMosString&);
char& operator[](size_t);
operator char*();
int Size() const ;
void operator += (const OHyMosString & str);
void operator += (char* cstr);
void operator += (char ch);
friend int operator==(const OHyMosString& x, const OHyMosString& y) ;
friend int operator!=(const OHyMosString& x, const OHyMosString& y) ;
protected:
}; // OHyMosString

Back to the top of OHyMosString


DESCRIPTION

simple string class

簡単な string class です。

Back to the top of OHyMosString


OHyMosString(void);

Constructor

  OHyMosString(void);				// OHyMosString s;

Back to the top of OHyMosString


OHyMosString(const char*);

Conversion constructor

  OHyMosString(const char*);		// OHyMosString s = "abcd";

Back to the top of OHyMosString


OHyMosString(const OHyMosString&);

Copy constructor

  OHyMosString(const OHyMosString&);		// OHyMosString p = s;

Back to the top of OHyMosString


~OHyMosString() ;

Destructor

  ~OHyMosString()                 
;

Function is currently defined inline.


Back to the top of OHyMosString


OHyMosString& operator=(const char*);

Assignment operator

  OHyMosString& operator=(const char*);

Back to the top of OHyMosString


OHyMosString& operator=(const OHyMosString&);

Assignment operator

  OHyMosString& operator=(const OHyMosString&);

Back to the top of OHyMosString


char& operator[](size_t);

Subscripting

  char& operator[](size_t);

Back to the top of OHyMosString


operator char*();

Conversion operator to char*. Note that a new area is created and the pointer to that area is returned.

  operator char*();

Back to the top of OHyMosString


int Size() const ;

Returns the length

  int Size() const                      
;

Function is currently defined inline.


Back to the top of OHyMosString


void operator += (const OHyMosString & str);

Concatenates a string

  void operator += (const OHyMosString & str);

Back to the top of OHyMosString


void operator += (char* cstr);

Concatenates a string

  void operator += (char* cstr);

Back to the top of OHyMosString


void operator += (char ch);

Concatenates a character

  void operator += (char ch);

Back to the top of OHyMosString


friend int operator==(const OHyMosString& x, const OHyMosString& y) ;

Comparison operator ==

  friend int operator==(const OHyMosString& x, const OHyMosString& y)
 		                                   
;

Function is currently defined inline.


Back to the top of OHyMosString


friend int operator!=(const OHyMosString& x, const OHyMosString& y) ;

Comparison operator !=

  friend int operator!=(const OHyMosString& x, const OHyMosString& y)
 		                                   
;

Function is currently defined inline.


Back to the top of OHyMosString


All Members

public:
OHyMosString& operator=(const char*);
OHyMosString& operator=(const OHyMosString&);
char& operator[](size_t);
operator char*();
int Size() const ;
void operator += (const OHyMosString & str);
void operator += (char* cstr);
void operator += (char ch);
friend int operator==(const OHyMosString& x, const OHyMosString& y) ;
friend int operator!=(const OHyMosString& x, const OHyMosString& y) ;
protected:

Back to the top of OHyMosString


Ancestors

Class does not inherit from any other class.

Back to the top of OHyMosString


Descendants

Class is not inherited by any others.

Back to the top of OHyMosString


Generated from source by the Cocoon utilities on Sun Sep 3 22:52:04 2000 .

Report problems to jkotula@stratasys.com