foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
pfc::stringcvt::char_buffer_t< t_char, t_alloc >

#include <string_conv.h>

Public Member Functions

 char_buffer_t ()
 
 char_buffer_t (const char_buffer_t &p_source)
 
const t_char * get_ptr () const
 
t_char * get_ptr_var ()
 
void set_size (t_size p_count)
 

Private Attributes

pfc::array_t< t_char, t_alloc > m_buffer
 

Detailed Description

template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
class pfc::stringcvt::char_buffer_t< t_char, t_alloc >

Definition at line 79 of file string_conv.h.

Constructor & Destructor Documentation

template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
pfc::stringcvt::char_buffer_t< t_char, t_alloc >::char_buffer_t ( )
inline

Definition at line 81 of file string_conv.h.

81 {}
template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
pfc::stringcvt::char_buffer_t< t_char, t_alloc >::char_buffer_t ( const char_buffer_t< t_char, t_alloc > &  p_source)
inline

Definition at line 82 of file string_conv.h.

82 : m_buffer(p_source.m_buffer) {}
pfc::array_t< t_char, t_alloc > m_buffer
Definition: string_conv.h:89

Member Function Documentation

template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
const t_char* pfc::stringcvt::char_buffer_t< t_char, t_alloc >::get_ptr ( ) const
inline

Definition at line 85 of file string_conv.h.

85  {
86  return m_buffer.get_size() > 0 ? m_buffer.get_ptr() : null_string_t<t_char>();
87  }
pfc::array_t< t_char, t_alloc > m_buffer
Definition: string_conv.h:89
const t_item * get_ptr() const
Definition: array.h:213
t_size get_size() const
Definition: array.h:130
template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
t_char* pfc::stringcvt::char_buffer_t< t_char, t_alloc >::get_ptr_var ( )
inline

Definition at line 84 of file string_conv.h.

84 {return m_buffer.get_ptr();}
pfc::array_t< t_char, t_alloc > m_buffer
Definition: string_conv.h:89
const t_item * get_ptr() const
Definition: array.h:213
template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
void pfc::stringcvt::char_buffer_t< t_char, t_alloc >::set_size ( t_size  p_count)
inline

Definition at line 83 of file string_conv.h.

83 {m_buffer.set_size(p_count);}
pfc::array_t< t_char, t_alloc > m_buffer
Definition: string_conv.h:89
void set_size(t_size p_size)
Definition: array.h:104

Field Documentation

template<typename t_char, template< typename t_allocitem > class t_alloc = pfc::alloc_standard>
pfc::array_t<t_char,t_alloc> pfc::stringcvt::char_buffer_t< t_char, t_alloc >::m_buffer
private

Definition at line 89 of file string_conv.h.


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