Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::locale Class Reference

#include <localefwd.h>

Collaboration diagram for std::locale:

Collaboration graph
[legend]
List of all members.

Public Types

typedef unsigned int category

Public Methods

 locale () throw ()
 locale (const locale &__other) throw ()
 locale (const char *__std_name)
 locale (const locale &__base, const char *__s, category __cat)
 locale (const locale &__base, const locale &__add, category __cat)
template<typename _Facet>  locale (const locale &__other, _Facet *__f)
 ~locale () throw ()
const locale& operator= (const locale &__other) throw ()
template<typename _Facet> locale combine (const locale &__other)
string name () const
bool operator== (const locale &__other) const throw ()
bool operator!= (const locale &__other) const throw ()
template<typename _Char, typename _Traits, typename _Alloc> bool operator() (const basic_string< _Char, _Traits, _Alloc > &__s1, const basic_string< _Char, _Traits, _Alloc > &__s2) const

Static Public Methods

locale global (const locale &)
const locale& classic ()

Static Public Attributes

const category none = 0
const category ctype = 1L << 0
const category numeric = 1L << 1
const category collate = 1L << 2
const category time = 1L << 3
const category monetary = 1L << 4
const category messages = 1L << 5
const category all

Private Methods

 locale (_Impl *) throw ()
void _M_coalesce (const locale &__base, const locale &__add, category __cat)

Private Attributes

_Impl_M_impl

Static Private Methods

void _S_initialize ()
category _S_normalize_category (category)

Static Private Attributes

_Impl_S_classic
_Impl_S_global
const size_t _S_num_categories = 6
const size_t _S_num_facets = _GLIBCPP_NUM_FACETS

Friends

class  facet
class  _Impl
template<typename _Facet> const _Facet& use_facet (const locale &)
template<typename _Facet> bool has_facet (const locale &) throw ()

Member Typedef Documentation

typedef unsigned int std::locale::category
 

Definition at line 184 of file localefwd.h.


Constructor & Destructor Documentation

std::locale::locale ( ) throw ()
 

std::locale::locale ( const locale & __other ) throw ()
 

std::locale::locale ( const char * __std_name ) [explicit]
 

std::locale::locale ( const locale & __base,
const char * __s,
category __cat )
 

std::locale::locale ( const locale & __base,
const locale & __add,
category __cat )
 

template<typename _Facet>
std::locale::locale ( const locale & __other,
_Facet * __f )
 

std::locale::~locale ( ) throw ()
 

std::locale::locale ( _Impl * ) throw () [explicit, private]
 


Member Function Documentation

void std::locale::_M_coalesce ( const locale & __base,
const locale & __add,
category __cat ) [private]
 

void std::locale::_S_initialize ( ) [inline, static, private]
 

Definition at line 278 of file localefwd.h.

category std::locale::_S_normalize_category ( category ) [static, private]
 

const locale& std::locale::classic ( ) [static]
 

Referenced by _S_initialize().

template<typename _Facet>
locale std::locale::combine ( const locale & __other )
 

locale std::locale::global ( const locale & ) [static]
 

string std::locale::name ( ) const
 

bool std::locale::operator!= ( const locale & __other ) const throw () [inline]
 

Definition at line 246 of file localefwd.h.

template<typename _Char, typename _Traits, typename _Alloc>
bool std::locale::operator() ( const basic_string< _Char, _Traits, _Alloc > & __s1,
const basic_string< _Char, _Traits, _Alloc > & __s2 ) const
 

const locale& std::locale::operator= ( const locale & __other ) throw ()
 

bool std::locale::operator== ( const locale & __other ) const throw ()
 

Referenced by operator!=().


Friends And Related Function Documentation

friend class _Impl [friend]
 

Definition at line 192 of file localefwd.h.

friend class facet [friend]
 

Definition at line 191 of file localefwd.h.

template<typename _Facet>
bool has_facet ( const locale & __loc ) throw () [friend]
 

Definition at line 83 of file locale_facets.tcc.

template<typename _Facet>
const _Facet& use_facet ( const locale & __loc ) [friend]
 

Definition at line 70 of file locale_facets.tcc.


Member Data Documentation

_Impl* std::locale::_M_impl [private]
 

Definition at line 263 of file localefwd.h.

_Impl* std::locale::_S_classic [static, private]
 

Definition at line 266 of file localefwd.h.

_Impl* std::locale::_S_global [static, private]
 

Definition at line 269 of file localefwd.h.

const size_t std::locale::_S_num_categories = 6 [static, private]
 

Definition at line 271 of file localefwd.h.

const size_t std::locale::_S_num_facets = _GLIBCPP_NUM_FACETS [static, private]
 

Definition at line 272 of file localefwd.h.

const category std::locale::all [static]
 

Initial value:

 (collate | ctype | monetary |
                       numeric | time  | messages)

Definition at line 211 of file localefwd.h.

const category std::locale::collate = 1L << 2 [static]
 

Definition at line 207 of file localefwd.h.

const category std::locale::ctype = 1L << 0 [static]
 

Definition at line 205 of file localefwd.h.

const category std::locale::messages = 1L << 5 [static]
 

Definition at line 210 of file localefwd.h.

const category std::locale::monetary = 1L << 4 [static]
 

Definition at line 209 of file localefwd.h.

const category std::locale::none = 0 [static]
 

Definition at line 204 of file localefwd.h.

const category std::locale::numeric = 1L << 1 [static]
 

Definition at line 206 of file localefwd.h.

const category std::locale::time = 1L << 3 [static]
 

Definition at line 208 of file localefwd.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:19 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001