Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

pge::String Class Reference

#include <String.h>


Public Member Functions

 String (void)
 Constructor.

 String (const String &copy)
 String (const std::string &str)
 String (char *str)
 String (char c)
 String (int i)
 String (float f)
 String (double d)
virtual ~String (void)
 Destructor.

std::string getString (void)
const char * getCString (void)
void append (const String &str)
void append (const std::string &str)
void append (char *str)
void append (char c)
void append (int i)
String append (float f)
String append (double d)
String operator+ (const String &str)

Private Attributes

std::string m_string


Constructor & Destructor Documentation

pge::String::String void   )  [inline]
 

Constructor.

Definition at line 24 of file String.h.

References m_string.

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

00024                              {
00025                         m_string = "";
00026                 }

pge::String::String const String copy  )  [inline]
 

Definition at line 28 of file String.h.

References m_string.

00028                                            {
00029                         m_string = copy.m_string;
00030                 }

pge::String::String const std::string &  str  )  [inline]
 

Definition at line 32 of file String.h.

References append().

00032                                              {
00033                         append(str);
00034                 }

Here is the call graph for this function:

pge::String::String char *  str  )  [inline]
 

Definition at line 36 of file String.h.

References append().

00036                                   {
00037                         append(str);
00038                 }

Here is the call graph for this function:

pge::String::String char  c  )  [inline]
 

Definition at line 40 of file String.h.

References append().

00040                                {
00041                         append(c);
00042                 }

Here is the call graph for this function:

pge::String::String int  i  )  [inline]
 

Definition at line 44 of file String.h.

References append().

00044                               {
00045                         append(i);
00046                 }

Here is the call graph for this function:

pge::String::String float  f  )  [inline]
 

Definition at line 48 of file String.h.

References append().

00048                                 {
00049                         append(f);
00050                 }

Here is the call graph for this function:

pge::String::String double  d  )  [inline]
 

Definition at line 52 of file String.h.

References append().

00052                                  {
00053                         append(d);
00054                 }

Here is the call graph for this function:

virtual pge::String::~String void   )  [inline, virtual]
 

Destructor.

Definition at line 63 of file String.h.

00063                                       {
00064                 }


Member Function Documentation

String pge::String::append double  d  )  [inline]
 

Definition at line 114 of file String.h.

References m_string.

00114                                         {
00115                         std::stringstream str;
00116 
00117                         str << d;
00118                         str >> m_string;
00119                         return m_string;
00120                 }

String pge::String::append float  f  )  [inline]
 

Definition at line 106 of file String.h.

References m_string, and String().

00106                                        {
00107                         std::stringstream str;
00108 
00109                         str << f;
00110                         str >> m_string;
00111                         return String(m_string);
00112                 }

Here is the call graph for this function:

void pge::String::append int  i  )  [inline]
 

Definition at line 99 of file String.h.

References m_string.

00099                                    {
00100                         std::stringstream str;
00101 
00102                         str << i;
00103                         str >> m_string;
00104                 }

void pge::String::append char  c  )  [inline]
 

Definition at line 92 of file String.h.

References m_string.

00092                                     {
00093                         std::stringstream str;
00094 
00095                         str << c;
00096                         str >> m_string;
00097                 }

void pge::String::append char *  str  )  [inline]
 

Definition at line 88 of file String.h.

References m_string.

00088                                        {
00089                         m_string.append(std::string(str));
00090                 }

void pge::String::append const std::string &  str  )  [inline]
 

Definition at line 84 of file String.h.

References m_string.

00084                                                   {
00085                         m_string.append(str);
00086                 }

void pge::String::append const String str  )  [inline]
 

Definition at line 80 of file String.h.

References m_string.

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

00080                                                {
00081                         m_string.append(str.m_string);
00082                 }

const char* pge::String::getCString void   )  [inline]
 

Definition at line 76 of file String.h.

References m_string.

00076                                              {
00077                         return m_string.c_str();
00078                 }

std::string pge::String::getString void   )  [inline]
 

Definition at line 72 of file String.h.

References m_string.

Referenced by pge::gui::SceneAnalyseGUI::render().

00072                                           {
00073                         return m_string;
00074                 }

String pge::String::operator+ const String str  )  [inline]
 

Definition at line 122 of file String.h.

References append(), m_string, and String().

00122                                                     {
00123                         append(str);
00124                         return String(m_string);
00125                 }

Here is the call graph for this function:


Field Documentation

std::string pge::String::m_string [private]
 

Definition at line 134 of file String.h.

Referenced by append(), getCString(), getString(), operator+(), and String().


The documentation for this class was generated from the following file:
Generated on Mon Oct 16 12:09:44 2006 for Phobosengine by doxygen 1.3.4