PPL Logo

xi::XStr Class Reference

#include <xi-util.h>

Collaboration diagram for xi::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)
 Appends character c to every line.
void line_append_padding (const char c, int lineWidth=80)
 pads with spaces and appends character c to every line.
void replace (const char a, const char b)
 XStr ()
 XStr (const char *_s)
 XStr (const XStr &_s)
 ~XStr ()
void clear ()
char * get_string (void) const
const char * get_string_const (void) const
char * charstar (void) const
 operator char * ()
size_t length () const
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)
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 49 of file xi-util.h.


Constructor & Destructor Documentation

xi::XStr::XStr (  ) 

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

References initTo().

Here is the call graph for this function:

xi::XStr::XStr ( const char *  _s  ) 

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

References initTo().

Here is the call graph for this function:

xi::XStr::XStr ( const XStr _s  ) 

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

References get_string_const(), and initTo().

Here is the call graph for this function:

xi::XStr::~XStr (  )  [inline]

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

References s.


Member Function Documentation

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

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

References blklen, len, and s.

Referenced by clear(), line_append(), line_append_padding(), and XStr().

Here is the caller graph for this function:

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

void xi::XStr::append ( const char *  _s  ) 

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

References blklen, len, and s.

Referenced by append(), operator+(), operator<<(), and spew().

Here is the caller graph for this function:

void xi::XStr::append ( char  c  ) 

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

References append().

Here is the call graph for this function:

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

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

References get_string().

Referenced by xi::Message::genDecls(), and xi::Chare::print().

Here is the call graph for this function:

Here is the caller graph for this function:

void xi::XStr::line_append ( const char  c  ) 

Appends character c to every line.

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

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

Here is the call graph for this function:

void xi::XStr::line_append_padding ( const char  c,
int  lineWidth = 80 
)

pads with spaces and appends character c to every line.

Also converts tabs to spaces.

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

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

Referenced by xi::CParsedFile::doProcess().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

References len, and s.

Referenced by xi::Entry::epStr().

Here is the caller graph for this function:

void xi::XStr::clear (  ) 

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

References initTo(), and s.

Referenced by xi::Entry::genClosure(), xi::Message::genDefs(), and xi::SdagEntryConstruct::generateCode().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

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

References s.

Referenced by xi::CEntry::check(), xi::Array::dim(), xi::WhenConstruct::generateCode(), xi::NamedEllipsisType::getBaseName(), xi::makeIdent(), operator<<(), and XStr().

Here is the caller graph for this function:

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

xi::XStr::operator char * (  )  [inline]

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

References get_string().

Here is the call graph for this function:

size_t xi::XStr::length ( void   )  const [inline]

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

References len.

Referenced by spew().

Here is the caller graph for this function:

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

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

References s.

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

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

References s.

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

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

References s.

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

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

References s.

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

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

References append(), and s.

Here is the call graph for this function:

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

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

References append().

Here is the call graph for this function:

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

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

References append().

Here is the call graph for this function:

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

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

References append().

Here is the call graph for this function:

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

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

References append(), and get_string_const().

Here is the call graph for this function:

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

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

References append(), and get_string_const().

Here is the call graph for this function:

void xi::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 89 of file xi-util.C.

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

Here is the call graph for this function:


Field Documentation

char* xi::XStr::s [private]

unsigned int xi::XStr::len [private]

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

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

unsigned int xi::XStr::blklen [private]

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

Referenced by append(), and initTo().


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

Generated on Mon Sep 21 08:36:03 2020 for Charm++ by  doxygen 1.5.5