sprint 1-alpha
Public Member Functions
sprint::shared_string Class Reference

similar to STL string (used in no STL projects), but use a sprint::shared_vector object More...

#include <shared_string.h>

Inherits sprint::shared_vector< char >.

List of all members.

Public Member Functions

 shared_string (unsigned int capacity)
 shared_string (const char *str)
 shared_string (const shared_string &src)
void insert (const char *str)
void insert (const shared_string &src)
shared_stringoperator= (const char *str)
shared_stringoperator= (const shared_string &src)
shared_stringoperator+= (const char *str)
shared_stringoperator+= (const shared_string &src)
const char * c_str () const
 STL compatible: return the inner block.
unsigned int lenght () const
 string lenght
unsigned int capacity () const
 the internal buffer capacity

Detailed Description

similar to STL string (used in no STL projects), but use a sprint::shared_vector object

a string with relocation capacity, storage, lenght with reduced memory fragmentation. Reference Counter will used to reduce memory occupation

Note:
is not thread-safe (a user policy is required)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines