#include <locale_classes.h>
Inheritance diagram for std::locale::facet:
Protected Member Functions | |
facet (size_t __refs=0) throw () | |
Facet constructor. | |
virtual | ~facet () |
Facet destructor. | |
Static Protected Member Functions | |
static void | _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0) |
static __c_locale | _S_clone_c_locale (__c_locale &__cloc) |
static void | _S_destroy_c_locale (__c_locale &__cloc) |
static __c_locale | _S_get_c_locale () |
static const char * | _S_get_c_name () |
Private Member Functions | |
void | _M_add_reference () const throw () |
void | _M_remove_reference () const throw () |
facet (const facet &) | |
facet & | operator= (const facet &) |
Static Private Member Functions | |
static void | _S_initialize_once () |
Private Attributes | |
_Atomic_word | _M_refcount |
Static Private Attributes | |
static __c_locale | _S_c_locale |
static const char | _S_c_name [2] |
Friends | |
class | locale |
class | locale::_Impl |
The facet class is the base class for a localization feature, such as money, time, and number printing. It provides common support for facets and reference management.
Facets may not be copied or assigned.
Definition at line 343 of file locale_classes.h.
std::locale::facet::facet | ( | size_t | __refs = 0 |
) | throw () [inline, explicit, protected] |
Facet constructor.
This is the constructor provided by the standard. If refs is 0, the facet is destroyed when the last referencing locale is destroyed. Otherwise the facet will never be destroyed.
refs | The initial value for reference count. |
Definition at line 375 of file locale_classes.h.
virtual std::locale::facet::~facet | ( | ) | [protected, virtual] |
Facet destructor.
std::locale::facet::facet | ( | const facet & | ) | [private] |
void std::locale::facet::_M_add_reference | ( | ) | const throw () [inline, private] |
Definition at line 402 of file locale_classes.h.
void std::locale::facet::_M_remove_reference | ( | ) | const throw () [inline, private] |
Definition at line 406 of file locale_classes.h.
static __c_locale std::locale::facet::_S_clone_c_locale | ( | __c_locale & | __cloc | ) | [static, protected] |
static void std::locale::facet::_S_create_c_locale | ( | __c_locale & | __cloc, | |
const char * | __s, | |||
__c_locale | __old = 0 | |||
) | [static, protected] |
static void std::locale::facet::_S_destroy_c_locale | ( | __c_locale & | __cloc | ) | [static, protected] |
static __c_locale std::locale::facet::_S_get_c_locale | ( | ) | [static, protected] |
static const char* std::locale::facet::_S_get_c_name | ( | ) | [static, protected] |
static void std::locale::facet::_S_initialize_once | ( | ) | [static, private] |
friend class locale [friend] |
Definition at line 346 of file locale_classes.h.
Referenced by std::messages< _CharT >::_M_convert_from_char().
friend class locale::_Impl [friend] |
Definition at line 347 of file locale_classes.h.
_Atomic_word std::locale::facet::_M_refcount [mutable, private] |
Definition at line 349 of file locale_classes.h.
__c_locale std::locale::facet::_S_c_locale [static, private] |
Definition at line 352 of file locale_classes.h.
const char std::locale::facet::_S_c_name[2] [static, private] |
Definition at line 355 of file locale_classes.h.