string_impl Class Reference

Inheritance diagram for string_impl:

Inheritance graph
[legend]
Collaboration diagram for string_impl:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 49 of file string.cpp.


Public Member Functions

void attach ()
bool detach ()
 Returns true if the object deleted itself.
const char * get_c_string () const
const unsigned char * get_p_string () const
const int & get_ref_count () const
const wchar_t * get_w_string () const
string_imploperator= (const string_impl &)
void set_modified ()
 string_impl (const wchar_t *)
 string_impl (const string_impl &)
 string_impl ()
virtual ~string_impl ()

Private Types

enum  { STRING_IMPL_OLD_CDATA = 1 << 0, STRING_IMPL_OLD_PDATA = 1 << 1, STRING_IMPL_MODIFIED = ~0 }

Private Attributes

data::simple_array< char > c_data
 8-bit null-terminated equivalent (in UTF-8).
gsgl::flags_t modified_flags
data::simple_array< unsigned char > p_data
 8-bit null-indexed (Pascal) equivalent (in UTF-8).
data::simple_array< wchar_t > w_data
 Null-terminated wchar_t string.

Member Enumeration Documentation

anonymous enum [private]

Enumerator:
STRING_IMPL_OLD_CDATA 
STRING_IMPL_OLD_PDATA 
STRING_IMPL_MODIFIED 

Definition at line 52 of file string.cpp.


Constructor & Destructor Documentation

string_impl (  ) 

Definition at line 86 of file string.cpp.

References simple_array::append(), and string_impl::w_data.

string_impl ( const string_impl si  ) 

Definition at line 93 of file string.cpp.

References string_impl::w_data.

string_impl ( const wchar_t *  str  )  [explicit]

Definition at line 100 of file string.cpp.

References simple_array::append(), simple_array::ptr(), and string_impl::w_data.

~string_impl (  )  [virtual]

Definition at line 116 of file string.cpp.


Member Function Documentation

void attach (  )  [inherited]

bool detach (  )  [inherited]

Returns true if the object deleted itself.

Definition at line 59 of file shared.cpp.

References shared_object::ref_count.

Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().

const char * get_c_string (  )  const

const unsigned char * get_p_string (  )  const

const int& get_ref_count (  )  const [inline, inherited]

Definition at line 57 of file shared.hpp.

Referenced by string::unshare().

const wchar_t * get_w_string (  )  const

Definition at line 121 of file string.cpp.

References simple_array::ptr(), and string_impl::w_data.

Referenced by string::w_string().

string_impl& operator= ( const string_impl  ) 

void set_modified (  )  [inline]


Member Data Documentation

data::simple_array<char> c_data [mutable, private]

8-bit null-terminated equivalent (in UTF-8).

Definition at line 62 of file string.cpp.

Referenced by string_impl::get_c_string().

gsgl::flags_t modified_flags [mutable, private]

Definition at line 59 of file string.cpp.

Referenced by string_impl::get_c_string(), and string_impl::get_p_string().

data::simple_array<unsigned char> p_data [mutable, private]

8-bit null-indexed (Pascal) equivalent (in UTF-8).

Definition at line 63 of file string.cpp.

Referenced by string_impl::get_p_string().

data::simple_array<wchar_t> w_data [private]


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

Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5