std::locale::facet Class Reference

Localization functionality base class. More...

#include <locale_classes.h>

Inheritance diagram for std::locale::facet:

Inheritance graph
[legend]
List of all members.

Protected Member Functions

 facet (size_t __refs=0) throw ()
 Facet constructor.
virtual ~facet ()
 Facet destructor.

Static Protected Member Functions

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 ()

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

Detailed Description

Localization functionality base class.

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.


Constructor & Destructor Documentation

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.

Parameters:
refs The initial value for reference count.

Definition at line 375 of file locale_classes.h.

facet::~facet (  )  [protected, virtual]

Facet destructor.

Definition at line 195 of file locale.cc.


The documentation for this class was generated from the following files:
Generated on Sat Jul 15 16:21:52 2006 for libstdc++-v3 Source by  doxygen 1.4.7