codecvt< _InternT, _ExternT, _StateT > Class Template Reference

class codecvt [22.2.1.5]. NB: Generic, mostly useless implementation. More...

#include <codecvt.h>

Inheritance diagram for codecvt< _InternT, _ExternT, _StateT >:

__codecvt_abstract_base< _InternT, _ExternT, _StateT > codecvt_base codecvt_byname< _InternT, _ExternT, _StateT > List of all members.

Public Types

typedef codecvt_base::result result
typedef _InternT intern_type
typedef _ExternT extern_type
typedef _StateT state_type

Public Member Functions

 codecvt (size_t __refs=0)
 codecvt (__c_locale __cloc, size_t __refs=0)

Static Public Attributes

static locale::id id

Protected Member Functions

virtual ~codecvt ()
virtual result do_out (state_type &__state, const intern_type *__from, const intern_type *__from_end, const intern_type *&__from_next, extern_type *__to, extern_type *__to_end, extern_type *&__to_next) const
 Convert from internal to external character set.
virtual result do_unshift (state_type &__state, extern_type *__to, extern_type *__to_end, extern_type *&__to_next) const
virtual result do_in (state_type &__state, const extern_type *__from, const extern_type *__from_end, const extern_type *&__from_next, intern_type *__to, intern_type *__to_end, intern_type *&__to_next) const
virtual int do_encoding () const throw ()
virtual bool do_always_noconv () const throw ()
virtual int do_length (state_type &, const extern_type *__from, const extern_type *__end, size_t __max) const
virtual int do_max_length () const throw ()

Protected Attributes

__c_locale _M_c_locale_codecvt

Detailed Description

template<typename _InternT, typename _ExternT, typename _StateT>
class codecvt< _InternT, _ExternT, _StateT >

class codecvt [22.2.1.5]. NB: Generic, mostly useless implementation.

Definition at line 271 of file codecvt.h.


Member Typedef Documentation

template<typename _InternT, typename _ExternT, typename _StateT>
typedef _ExternT codecvt< _InternT, _ExternT, _StateT >::extern_type

Reimplemented from __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

Definition at line 278 of file codecvt.h.

template<typename _InternT, typename _ExternT, typename _StateT>
typedef _InternT codecvt< _InternT, _ExternT, _StateT >::intern_type

Reimplemented from __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

Definition at line 277 of file codecvt.h.

template<typename _InternT, typename _ExternT, typename _StateT>
typedef codecvt_base::result codecvt< _InternT, _ExternT, _StateT >::result

Reimplemented from __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

Definition at line 276 of file codecvt.h.

template<typename _InternT, typename _ExternT, typename _StateT>
typedef _StateT codecvt< _InternT, _ExternT, _StateT >::state_type

Reimplemented from __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

Definition at line 279 of file codecvt.h.


Constructor & Destructor Documentation

template<typename _InternT, typename _ExternT, typename _StateT>
codecvt< _InternT, _ExternT, _StateT >::codecvt ( size_t  __refs = 0  )  [inline, explicit]

Definition at line 288 of file codecvt.h.

template<typename _InternT, typename _ExternT, typename _StateT>
codecvt< _InternT, _ExternT, _StateT >::codecvt ( __c_locale  __cloc,
size_t  __refs = 0 
) [explicit]

template<typename _InternT, typename _ExternT, typename _StateT>
virtual codecvt< _InternT, _ExternT, _StateT >::~codecvt (  )  [inline, protected, virtual]

Definition at line 296 of file codecvt.h.


Member Function Documentation

template<typename _InternT, typename _ExternT, typename _StateT>
virtual bool codecvt< _InternT, _ExternT, _StateT >::do_always_noconv (  )  const throw () [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual int codecvt< _InternT, _ExternT, _StateT >::do_encoding (  )  const throw () [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual result codecvt< _InternT, _ExternT, _StateT >::do_in ( state_type __state,
const extern_type __from,
const extern_type __from_end,
const extern_type *&  __from_next,
intern_type __to,
intern_type __to_end,
intern_type *&  __to_next 
) const [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual int codecvt< _InternT, _ExternT, _StateT >::do_length ( state_type ,
const extern_type __from,
const extern_type __end,
size_t  __max 
) const [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual int codecvt< _InternT, _ExternT, _StateT >::do_max_length (  )  const throw () [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual result codecvt< _InternT, _ExternT, _StateT >::do_out ( state_type __state,
const intern_type __from,
const intern_type __from_end,
const intern_type *&  __from_next,
extern_type __to,
extern_type __to_end,
extern_type *&  __to_next 
) const [protected, virtual]

Convert from internal to external character set.

Converts input string of intern_type to output string of extern_type. This function is a hook for derived classes to change the value returned.

See also:
out for more information.

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.

template<typename _InternT, typename _ExternT, typename _StateT>
virtual result codecvt< _InternT, _ExternT, _StateT >::do_unshift ( state_type __state,
extern_type __to,
extern_type __to_end,
extern_type *&  __to_next 
) const [protected, virtual]

Implements __codecvt_abstract_base< _InternT, _ExternT, _StateT >.


Member Data Documentation

template<typename _InternT, typename _ExternT, typename _StateT>
__c_locale codecvt< _InternT, _ExternT, _StateT >::_M_c_locale_codecvt [protected]

Definition at line 282 of file codecvt.h.

template<typename _InternT, typename _ExternT, typename _StateT>
locale::id codecvt< _InternT, _ExternT, _StateT >::id [static]

Definition at line 285 of file codecvt.h.


The documentation for this class was generated from the following file:
Generated on Tue Feb 2 16:57:40 2010 for GNU C++ STL by  doxygen 1.4.7