CL_StringAllocator Class Reference
[clanCore Text]

Allocate strings in blocks. More...

#include <string_allocator.h>

List of all members.

Public Member Functions

Construction
 CL_StringAllocator ()
 CL_StringAllocator (const CL_StringAllocator &source)
 Constructs a StringAllocator.
 ~CL_StringAllocator ()
Operations
CL_StringAllocatoroperator= (const CL_StringAllocator &source)
CL_StringRef8 alloc (const CL_StringRef8 &str)
 Alloc.
CL_StringRef8 alloc (const char *str)
 Alloc.
CL_StringRef8 alloc (const char *str, CL_StringRef8::size_type length)
CL_StringRef16 alloc (const CL_StringRef16 &str)
 Alloc.
CL_StringRef16 alloc (const wchar_t *str)
 Alloc.
CL_StringRef16 alloc (const wchar_t *str, CL_StringRef16::size_type length)
CL_StringRef alloc (unsigned int length)
 Alloc.
CL_StringRef8 alloc8 (unsigned int length)
 Alloc8.
CL_StringRef16 alloc16 (unsigned int length)
 Alloc16.
void clear ()
 Clear.


Detailed Description

Allocate strings in blocks.

This class allows you to efficiently allocate strings. Instead of using the default new operator, this class allocates string data in blocks. The temporary strings returned by the class remain valid as long as the CL_StringAllocator stays valid, or until clear() is called.


Constructor & Destructor Documentation

CL_StringAllocator::CL_StringAllocator  ) 
 

CL_StringAllocator::CL_StringAllocator const CL_StringAllocator source  ) 
 

Constructs a StringAllocator.

Parameters:
source = String Allocator

CL_StringAllocator::~CL_StringAllocator  ) 
 


Member Function Documentation

CL_StringRef CL_StringAllocator::alloc unsigned int  length  ) 
 

Alloc.

Parameters:
length = value
Returns:
String Ref

CL_StringRef16 CL_StringAllocator::alloc const wchar_t *  str,
CL_StringRef16::size_type  length
 

CL_StringRef16 CL_StringAllocator::alloc const wchar_t *  str  ) 
 

Alloc.

Parameters:
str = wchar_t
Returns:
String Ref16

CL_StringRef16 CL_StringAllocator::alloc const CL_StringRef16 str  ) 
 

Alloc.

Parameters:
str = String Ref16
Returns:
String Ref16

CL_StringRef8 CL_StringAllocator::alloc const char *  str,
CL_StringRef8::size_type  length
 

CL_StringRef8 CL_StringAllocator::alloc const char *  str  ) 
 

Alloc.

Parameters:
str = char
Returns:
String Ref8

CL_StringRef8 CL_StringAllocator::alloc const CL_StringRef8 str  ) 
 

Alloc.

Parameters:
str = String Ref8
Returns:
String Ref8

CL_StringRef16 CL_StringAllocator::alloc16 unsigned int  length  ) 
 

Alloc16.

Parameters:
length = value
Returns:
String Ref16

CL_StringRef8 CL_StringAllocator::alloc8 unsigned int  length  ) 
 

Alloc8.

Parameters:
length = value
Returns:
String Ref8

void CL_StringAllocator::clear  ) 
 

Clear.

CL_StringAllocator& CL_StringAllocator::operator= const CL_StringAllocator source  ) 
 


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:41 2009 for ClanLib by  doxygen 1.4.6