Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: TNL::StringPtr Class Reference

# TNL::StringPtr Class Reference

`#include <tnlString.h>`

## Public Member Functions

| StringPtr ()
| StringPtr (const char *string)
| StringPtr (const StringPtr &string)
| ~StringPtr ()
StringPtr & | operator= (const StringPtr &ref)
StringPtr & | operator= (const char *string)
| operator const char * () const
const char * | getString () const

## Private Member Functions

void | alloc (const char *string)
void | decRef ()

## Private Attributes

StringData * | mString

## Constructor & Destructor Documentation

TNL::StringPtr::StringPtr | ( |  | ) | `[inline]`

TNL::StringPtr::StringPtr | ( | const char * | string | ) | `[inline]`

TNL::StringPtr::StringPtr | ( | const StringPtr & | string | ) | `[inline]`

TNL::StringPtr::~StringPtr | ( |  | ) | `[inline]`

## Member Function Documentation

void TNL::StringPtr::alloc | ( | const char * | string | ) | `[inline, private]`

void TNL::StringPtr::decRef | ( |  | ) | `[inline, private]`

StringPtr& TNL::StringPtr::operator= | ( | const StringPtr & | ref | ) | `[inline]`

StringPtr& TNL::StringPtr::operator= | ( | const char * | string | ) | `[inline]`

TNL::StringPtr::operator const char * | ( |  | ) | const`[inline]`

const char* TNL::StringPtr::getString | ( |  | ) | const`[inline]`

## Field Documentation

StringData* TNL::StringPtr::mString`[private]`