XStr Class Reference

#include <xi-util.h>

Collaboration diagram for XStr:

Collaboration graph
[legend]

Public Member Functions

void append (const char *_s)
void append (char c)
void print (int indent)
void line_append (const char c)
void replace (const char a, const char b)
 XStr ()
 XStr (const char *_s)
 XStr (const XStr &_s)
 ~XStr ()
char * get_string (void)
const char * get_string_const (void) const
char * charstar (void)
 operator char * ()
int operator== (XStr &s2) const
int operator!= (XStr &s2) const
int operator== (const char *s2) const
int operator!= (const char *s2) const
XStr operator+ (const XStr &s2) const
XStroperator<< (const char *_s)
XStroperator<< (char c)
XStroperator<< (int i)
XStroperator<< (const XStr &x)
void spew (const char *b, const char *a1=0, const char *a2=0, const char *a3=0, const char *a4=0, const char *a5=0)

Private Member Functions

void initTo (const char *_s)
void operator= (const XStr &str)

Private Attributes

char * s
unsigned int len
unsigned int blklen

Detailed Description

Definition at line 26 of file xi-util.h.


Constructor & Destructor Documentation

XStr::XStr (  ) 

Definition at line 46 of file xi-util.C.

References initTo().

XStr::XStr ( const char *  _s  ) 

Definition at line 47 of file xi-util.C.

References initTo().

XStr::XStr ( const XStr _s  ) 

Definition at line 48 of file xi-util.C.

References get_string_const(), and initTo().

XStr::~XStr (  )  [inline]

Definition at line 54 of file xi-util.h.

References s.


Member Function Documentation

void XStr::initTo ( const char *  _s  )  [private]

Definition at line 35 of file xi-util.C.

References blklen, len, and s.

Referenced by line_append(), and XStr().

void XStr::operator= ( const XStr str  )  [private]

void XStr::append ( const char *  _s  ) 

Definition at line 11 of file xi-util.C.

References blklen, len, and s.

Referenced by append(), CEntry::generateCode(), Entry::genPub(), operator+(), operator<<(), and spew().

void XStr::append ( char  c  ) 

Definition at line 27 of file xi-util.C.

References append().

void XStr::print ( int  indent  )  [inline]

Definition at line 41 of file xi-util.h.

References get_string().

void XStr::line_append ( const char  c  ) 

Definition at line 57 of file xi-util.C.

References charstar(), initTo(), len, and s.

Referenced by CParsedFile::doProcess().

void XStr::replace ( const char  a,
const char  b 
)

Definition at line 93 of file xi-util.C.

References len, and s.

Referenced by Entry::epStr().

char* XStr::get_string ( void   )  [inline]

Definition at line 55 of file xi-util.h.

References s.

Referenced by charstar(), Module::generate(), Entry::isConstructor(), operator char *(), and print().

const char* XStr::get_string_const ( void   )  const [inline]

Definition at line 56 of file xi-util.h.

References s.

Referenced by Array::dim(), makeIdent(), operator<<(), and XStr().

char* XStr::charstar ( void   )  [inline]

Definition at line 59 of file xi-util.h.

References get_string().

Referenced by Module::generate(), SdagConstruct::generateAtomic(), SdagConstruct::generateCall(), CEntry::generateCode(), SdagConstruct::generateConnect(), SdagConstruct::generateConnectEntries(), SdagConstruct::generateElse(), SdagConstruct::generateFor(), SdagConstruct::generateForall(), SdagConstruct::generateForward(), SdagConstruct::generateIf(), SdagConstruct::generateListEventBracket(), SdagConstruct::generateOlist(), SdagConstruct::generateOverlap(), SdagConstruct::generatePrototype(), SdagConstruct::generateRegisterEp(), SdagConstruct::generateSdagEntry(), SdagConstruct::generateSlist(), SdagConstruct::generateTrace(), SdagConstruct::generateTraceBeginCall(), SdagConstruct::generateTraceEpDecl(), SdagConstruct::generateTraceEpDef(), SdagConstruct::generateWhen(), SdagConstruct::generateWhile(), Entry::genPub(), SdagConstruct::labelNodes(), line_append(), CToken::print(), and SdagConstruct::propagateState().

XStr::operator char * (  )  [inline]

Definition at line 61 of file xi-util.h.

References get_string().

int XStr::operator== ( XStr s2  )  const [inline]

Definition at line 63 of file xi-util.h.

References s.

int XStr::operator!= ( XStr s2  )  const [inline]

Definition at line 64 of file xi-util.h.

References s.

int XStr::operator== ( const char *  s2  )  const [inline]

Definition at line 65 of file xi-util.h.

References s.

int XStr::operator!= ( const char *  s2  )  const [inline]

Definition at line 66 of file xi-util.h.

References s.

XStr XStr::operator+ ( const XStr s2  )  const [inline]

Definition at line 68 of file xi-util.h.

References append(), and s.

XStr& XStr::operator<< ( const char *  _s  )  [inline]

Definition at line 70 of file xi-util.h.

References append().

XStr& XStr::operator<< ( char  c  )  [inline]

Definition at line 72 of file xi-util.h.

References append().

XStr & XStr::operator<< ( int  i  ) 

Definition at line 50 of file xi-util.C.

References append().

XStr& XStr::operator<< ( const XStr x  )  [inline]

Definition at line 74 of file xi-util.h.

References append(), and get_string_const().

void XStr::spew ( const char *  b,
const char *  a1 = 0,
const char *  a2 = 0,
const char *  a3 = 0,
const char *  a4 = 0,
const char *  a5 = 0 
)

Definition at line 71 of file xi-util.C.

References abort(), append(), and length.


Field Documentation

char* XStr::s [private]

Definition at line 28 of file xi-util.h.

Referenced by append(), get_string(), get_string_const(), initTo(), line_append(), operator!=(), operator+(), operator==(), replace(), and ~XStr().

unsigned int XStr::len [private]

Definition at line 29 of file xi-util.h.

Referenced by append(), initTo(), line_append(), and replace().

unsigned int XStr::blklen [private]

Definition at line 29 of file xi-util.h.

Referenced by append(), and initTo().


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:35:54 2008 for Charm++ by  doxygen 1.5.1