TiXmlString Class Reference

#include <tinystr.h>

Inheritance diagram for TiXmlString:

Inheritance graph
[legend]
Collaboration diagram for TiXmlString:

Collaboration graph
[legend]

List of all members.

Public Types

typedef size_t size_type

Public Member Functions

 TiXmlString ()
 TiXmlString (const TiXmlString &copy)
TIXML_EXPLICIT TiXmlString (const char *copy)
TIXML_EXPLICIT TiXmlString (const char *str, size_type len)
 ~TiXmlString ()
TiXmlStringoperator= (const char *copy)
TiXmlStringoperator= (const TiXmlString &copy)
TiXmlStringoperator+= (const char *suffix)
TiXmlStringoperator+= (char single)
TiXmlStringoperator+= (const TiXmlString &suffix)
const char * c_str () const
const char * data () const
size_type length () const
size_type size () const
bool empty () const
size_type capacity () const
const char & at (size_type index) const
char & operator[] (size_type index) const
size_type find (char lookup) const
size_type find (char tofind, size_type offset) const
void clear ()
void reserve (size_type cap)
TiXmlStringassign (const char *str, size_type len)
TiXmlStringappend (const char *str, size_type len)
void swap (TiXmlString &other)

Static Public Attributes

static const size_type npos = static_cast< size_type >(-1)

Private Member Functions

void init (size_type sz)
void set_size (size_type sz)
char * start () const
char * finish () const
void init (size_type sz, size_type cap)
void quit ()

Private Attributes

Reprep_

Static Private Attributes

static Rep nullrep_ = { 0, 0, '\0' }

Classes

struct  Rep


Detailed Description

Definition at line 67 of file tinystr.h.


Member Typedef Documentation

typedef size_t TiXmlString::size_type

Definition at line 71 of file tinystr.h.


Constructor & Destructor Documentation

TiXmlString::TiXmlString (  )  [inline]

Definition at line 78 of file tinystr.h.

TiXmlString::TiXmlString ( const TiXmlString copy  )  [inline]

Definition at line 83 of file tinystr.h.

References data(), init(), length(), and start().

TIXML_EXPLICIT TiXmlString::TiXmlString ( const char *  copy  )  [inline]

Definition at line 90 of file tinystr.h.

References init(), length(), and start().

TIXML_EXPLICIT TiXmlString::TiXmlString ( const char *  str,
size_type  len 
) [inline]

Definition at line 97 of file tinystr.h.

References init(), and start().

TiXmlString::~TiXmlString (  )  [inline]

Definition at line 104 of file tinystr.h.

References quit().


Member Function Documentation

TiXmlString& TiXmlString::operator= ( const char *  copy  )  [inline]

Definition at line 110 of file tinystr.h.

References assign().

TiXmlString& TiXmlString::operator= ( const TiXmlString copy  )  [inline]

Definition at line 116 of file tinystr.h.

References assign(), length(), and start().

TiXmlString& TiXmlString::operator+= ( const char *  suffix  )  [inline]

Definition at line 123 of file tinystr.h.

References append().

TiXmlString& TiXmlString::operator+= ( char  single  )  [inline]

Definition at line 129 of file tinystr.h.

References append().

TiXmlString& TiXmlString::operator+= ( const TiXmlString suffix  )  [inline]

Definition at line 135 of file tinystr.h.

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

const char* TiXmlString::c_str (  )  const [inline]

Definition at line 142 of file tinystr.h.

References rep_, and TiXmlString::Rep::str.

Referenced by find(), operator<(), and operator==().

const char* TiXmlString::data (  )  const [inline]

Definition at line 145 of file tinystr.h.

References rep_, and TiXmlString::Rep::str.

Referenced by operator+=(), reserve(), and TiXmlString().

size_type TiXmlString::length (  )  const [inline]

size_type TiXmlString::size (  )  const [inline]

Definition at line 151 of file tinystr.h.

References rep_, and TiXmlString::Rep::size.

bool TiXmlString::empty (  )  const [inline]

Definition at line 154 of file tinystr.h.

References rep_, and TiXmlString::Rep::size.

size_type TiXmlString::capacity (  )  const [inline]

Definition at line 157 of file tinystr.h.

References TiXmlString::Rep::capacity, and rep_.

Referenced by append(), assign(), and reserve().

const char& TiXmlString::at ( size_type  index  )  const [inline]

Definition at line 161 of file tinystr.h.

References assert, length(), rep_, and TiXmlString::Rep::str.

char& TiXmlString::operator[] ( size_type  index  )  const [inline]

Definition at line 168 of file tinystr.h.

References assert, length(), rep_, and TiXmlString::Rep::str.

size_type TiXmlString::find ( char  lookup  )  const [inline]

Definition at line 175 of file tinystr.h.

size_type TiXmlString::find ( char  tofind,
size_type  offset 
) const [inline]

Definition at line 181 of file tinystr.h.

References c_str(), length(), and npos.

void TiXmlString::clear (  )  [inline]

Definition at line 192 of file tinystr.h.

References init(), and quit().

void TiXmlString::reserve ( size_type  cap  ) 

Definition at line 41 of file tinystr.cpp.

References capacity(), data(), init(), length(), start(), and swap().

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

TiXmlString & TiXmlString::assign ( const char *  str,
size_type  len 
)

Definition at line 53 of file tinystr.cpp.

References capacity(), init(), set_size(), start(), and swap().

Referenced by operator=().

TiXmlString & TiXmlString::append ( const char *  str,
size_type  len 
)

Definition at line 72 of file tinystr.cpp.

References capacity(), finish(), length(), reserve(), and set_size().

Referenced by operator+(), and operator+=().

void TiXmlString::swap ( TiXmlString other  )  [inline]

Definition at line 211 of file tinystr.h.

References rep_.

Referenced by assign(), and reserve().

void TiXmlString::init ( size_type  sz  )  [inline, private]

Definition at line 220 of file tinystr.h.

Referenced by assign(), clear(), reserve(), and TiXmlString().

void TiXmlString::set_size ( size_type  sz  )  [inline, private]

Definition at line 221 of file tinystr.h.

References rep_, TiXmlString::Rep::size, and TiXmlString::Rep::str.

Referenced by append(), and assign().

char* TiXmlString::start (  )  const [inline, private]

Definition at line 222 of file tinystr.h.

References rep_, and TiXmlString::Rep::str.

Referenced by assign(), operator=(), reserve(), and TiXmlString().

char* TiXmlString::finish (  )  const [inline, private]

Definition at line 223 of file tinystr.h.

References rep_, TiXmlString::Rep::size, and TiXmlString::Rep::str.

Referenced by append().

void TiXmlString::init ( size_type  sz,
size_type  cap 
) [inline, private]

void TiXmlString::quit (  )  [inline, private]

Definition at line 253 of file tinystr.h.

References nullrep_, and rep_.

Referenced by clear(), and ~TiXmlString().


Member Data Documentation

const TiXmlString::size_type TiXmlString::npos = static_cast< size_type >(-1) [static]

Definition at line 74 of file tinystr.h.

Referenced by find().

Rep* TiXmlString::rep_ [private]

Definition at line 263 of file tinystr.h.

Referenced by at(), c_str(), capacity(), data(), empty(), finish(), init(), length(), operator[](), quit(), set_size(), size(), start(), and swap().

TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, '\0' } [static, private]

Definition at line 264 of file tinystr.h.

Referenced by init(), and quit().


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

Generated on Tue May 22 06:00:31 2012 for cpp by  doxygen 1.5.6