NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CharacterVector Class Reference

This class resembles an extended string class, which contains the extended character class. More...

#include <TextManager.h>

Inheritance diagram for CharacterVector:
Collaboration diagram for CharacterVector:

Public Member Functions

 CharacterVector ()
 
 CharacterVector (const std::string &sText)
 
 CharacterVector (const std::string &sText, short flags)
 
CharacterVectoroperator+= (const std::string &sText)
 
CharacterVectoroperator+= (const CharacterVector &vect)
 
CharacterVectoroperator= (const std::string &sText)
 
Characteroperator[] (size_t i)
 
const Characteroperator[] (size_t i) const
 
Characterfront ()
 
const Characterfront () const
 
Characterback ()
 
const Characterback () const
 
std::string toString () const
 
std::string substr (size_t pos, size_t len=std::string::npos) const
 
std::vector< unsigned short > subcolors (size_t pos, size_t len=std::string::npos) const
 
size_t length () const
 
iterator insert (size_t pos, const std::string &sText, short flags=0)
 
iterator insert (size_t pos, const CharacterVector &vect)
 
void append (size_t n, char c)
 

Private Member Functions

void assign (const std::string &sText)
 
void append (const std::string &sText)
 

Private Attributes

Character m_dummy
 

Detailed Description

This class resembles an extended string class, which contains the extended character class.

Definition at line 318 of file TextManager.h.

Constructor & Destructor Documentation

◆ CharacterVector() [1/3]

CharacterVector::CharacterVector ( )
inline

Definition at line 336 of file TextManager.h.

Referenced by insert().

◆ CharacterVector() [2/3]

CharacterVector::CharacterVector ( const std::string &  sText)
inline

Definition at line 338 of file TextManager.h.

References append().

Here is the call graph for this function:

◆ CharacterVector() [3/3]

CharacterVector::CharacterVector ( const std::string &  sText,
short  flags 
)
inline

Definition at line 343 of file TextManager.h.

References append().

Here is the call graph for this function:

Member Function Documentation

◆ append() [1/2]

void CharacterVector::append ( const std::string &  sText)
inlineprivate

Definition at line 329 of file TextManager.h.

Referenced by append(), assign(), CharacterVector(), and operator+=().

◆ append() [2/2]

void CharacterVector::append ( size_t  n,
char  c 
)
inline

Definition at line 470 of file TextManager.h.

References append().

Here is the call graph for this function:

◆ assign()

void CharacterVector::assign ( const std::string &  sText)
inlineprivate

Definition at line 323 of file TextManager.h.

References append().

Referenced by operator=().

Here is the call graph for this function:

◆ back() [1/2]

Character & CharacterVector::back ( )
inline

Definition at line 404 of file TextManager.h.

References m_dummy.

◆ back() [2/2]

const Character & CharacterVector::back ( ) const
inline

Definition at line 412 of file TextManager.h.

References m_dummy.

◆ front() [1/2]

Character & CharacterVector::front ( )
inline

Definition at line 388 of file TextManager.h.

References m_dummy.

◆ front() [2/2]

const Character & CharacterVector::front ( ) const
inline

Definition at line 396 of file TextManager.h.

References m_dummy.

◆ insert() [1/2]

iterator CharacterVector::insert ( size_t  pos,
const CharacterVector vect 
)
inline

Definition at line 462 of file TextManager.h.

◆ insert() [2/2]

iterator CharacterVector::insert ( size_t  pos,
const std::string &  sText,
short  flags = 0 
)
inline

Definition at line 457 of file TextManager.h.

References CharacterVector(), and insert().

Referenced by insert().

Here is the call graph for this function:

◆ length()

size_t CharacterVector::length ( ) const
inline

Definition at line 452 of file TextManager.h.

◆ operator+=() [1/2]

CharacterVector & CharacterVector::operator+= ( const CharacterVector vect)
inline

Definition at line 360 of file TextManager.h.

◆ operator+=() [2/2]

CharacterVector & CharacterVector::operator+= ( const std::string &  sText)
inline

Definition at line 354 of file TextManager.h.

References append().

Here is the call graph for this function:

◆ operator=()

CharacterVector & CharacterVector::operator= ( const std::string &  sText)
inline

Definition at line 366 of file TextManager.h.

References assign().

Here is the call graph for this function:

◆ operator[]() [1/2]

Character & CharacterVector::operator[] ( size_t  i)
inline

Definition at line 372 of file TextManager.h.

References m_dummy.

◆ operator[]() [2/2]

const Character & CharacterVector::operator[] ( size_t  i) const
inline

Definition at line 380 of file TextManager.h.

References m_dummy.

◆ subcolors()

std::vector< unsigned short > CharacterVector::subcolors ( size_t  pos,
size_t  len = std::string::npos 
) const
inline

Definition at line 435 of file TextManager.h.

◆ substr()

std::string CharacterVector::substr ( size_t  pos,
size_t  len = std::string::npos 
) const
inline

Definition at line 430 of file TextManager.h.

References toString().

Here is the call graph for this function:

◆ toString()

std::string CharacterVector::toString ( ) const
inline

Definition at line 420 of file TextManager.h.

Referenced by substr().

Member Data Documentation

◆ m_dummy

Character CharacterVector::m_dummy
private

Definition at line 321 of file TextManager.h.

Referenced by back(), front(), and operator[]().


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