Ptex: String Class Reference

Ptex

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | List of all members
String Class Reference

Memory-managed string. More...

`#include <Ptexture.h>`

## Public Member Functions
| String ()
| String (const String &str)
| ~String ()
String & | operator= (const char *str)
String & | operator= (const String &str)
String & | operator= (const std::string &str)
const char * | c_str () const
bool | empty () const

## Private Attributes
char * | _str

## Detailed Description

Memory-managed string.

Used for returning error messages from API functions. On most platforms, this is a typedef to std::string. For Windows, this is a custom class that implements a subset of std::string. (Note: std::string cannot be passed through a Windows DLL interface).

Definition at line 416 of file Ptexture.h.

## Constructor & Destructor Documentation

String::String | ( |  | ) |
| inline

Definition at line 419 of file Ptexture.h.

String::String | ( | const String & | str | ) |
| inline

Definition at line 420 of file Ptexture.h.

String::~String | ( |  | ) |

## Member Function Documentation

const char* String::c_str | ( |  | ) | const
| inline

Definition at line 425 of file Ptexture.h.

bool String::empty | ( |  | ) | const
| inline

Definition at line 426 of file Ptexture.h.

String& String::operator= | ( | const char * | str | ) |

String& String::operator= | ( | const String & | str | ) |
| inline

Definition at line 423 of file Ptexture.h.

String& String::operator= | ( | const std::string & | str | ) |
| inline

Definition at line 424 of file Ptexture.h.

## Member Data Documentation

char* String::_str
| private

Definition at line 429 of file Ptexture.h.

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

- Ptexture.h