MTK++ Latest version: 0.2.0

Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
TiXmlString Class Reference

#include <mtkpp/src/tinyxml/tinystr.h>

Inheritance diagram for TiXmlString:
Inheritance graph
[legend]
Collaboration diagram for TiXmlString:
Collaboration graph
[legend]

List of all members.

Classes

struct  Rep

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< TiXmlString::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' } }

Member Typedef Documentation

typedef size_t TiXmlString::size_type

Constructor & Destructor Documentation

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

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

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

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

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

References init(), and start().

TiXmlString::~TiXmlString ( ) [inline]

References quit().


Member Function Documentation

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

References assign().

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

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

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

References append().

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

References append().

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

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

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

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

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

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

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

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

size_type TiXmlString::length ( ) const [inline]
size_type TiXmlString::size ( ) const [inline]

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

bool TiXmlString::empty ( ) const [inline]

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

size_type TiXmlString::capacity ( ) const [inline]

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

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

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

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

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

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

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

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

void TiXmlString::clear ( ) [inline]

References init(), and quit().

void TiXmlString::reserve ( size_type  cap)

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

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

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

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

Referenced by operator=().

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

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

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

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

References rep_.

Referenced by assign(), and reserve().

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

References init().

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

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

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

Referenced by append(), and assign().

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

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

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

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

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]

References nullrep_, and rep_.

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


Member Data Documentation

Referenced by find().

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

Referenced by init(), and quit().


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

Generated on Fri Dec 23 2011 09:28:55 for MTK++ by Doxygen 1.7.5.1