Whole document tree
    

Whole document tree

std::locale::_Impl class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::locale::_Impl Class Reference

#include <localefwd.h>

Collaboration diagram for std::locale::_Impl:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vector< facet *, allocator<
facet * > > 
__vec_facet

Private Methods

void _M_add_reference () throw ()
void _M_remove_reference () throw ()
 _Impl (const _Impl &, size_t)
 _Impl (string __name, size_t)
 ~_Impl () throw ()
bool _M_check_same_name ()
void _M_replace_categories (const _Impl *, category)
void _M_replace_category (const _Impl *, const locale::id *const *)
void _M_replace_facet (const _Impl *, const locale::id *)
void _M_install_facet (const locale::id *, facet *)
template<typename _Facet> void _M_init_facet (_Facet *__facet)

Private Attributes

size_t _M_references
__vec_facet_M_facets
string _M_names [_S_num_categories]
__c_locale _M_c_locale

Static Private Attributes

const locale::id *const _S_id_ctype []
const locale::id *const _S_id_numeric []
const locale::id *const _S_id_collate []
const locale::id *const _S_id_time []
const locale::id *const _S_id_monetary []
const locale::id *const _S_id_messages []
const locale::id *const *const _S_facet_categories []

Friends

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

Member Typedef Documentation

typedef vector<facet*, allocator<facet*> > std::locale::_Impl::__vec_facet
 

Definition at line 294 of file localefwd.h.

Referenced by _Impl().


Constructor & Destructor Documentation

std::locale::_Impl::_Impl const _Impl &   ,
size_t   
[private]
 

Definition at line 49 of file localename.cc.

References __throw_exception_again, __vec_facet, _M_facets, and _M_names.

std::locale::_Impl::_Impl string    __name,
size_t   
[private]
 

Definition at line 71 of file localename.cc.

References __throw_exception_again, __vec_facet, _M_c_locale, _M_facets, _M_init_facet(), _M_names, and std::string.

std::locale::_Impl::~_Impl   throw () [private]
 

Definition at line 37 of file localename.cc.


Member Function Documentation

void std::locale::_Impl::_M_add_reference   throw () [inline, private]
 

Definition at line 323 of file localefwd.h.

Referenced by std::locale::global().

bool std::locale::_Impl::_M_check_same_name   [inline, private]
 

Definition at line 343 of file localefwd.h.

References std::locale::_S_num_categories.

Referenced by std::locale::global(), and std::locale::name().

template<typename _Facet>
void std::locale::_Impl::_M_init_facet _Facet *    __facet [inline, private]
 

Definition at line 364 of file localefwd.h.

Referenced by _Impl().

void std::locale::_Impl::_M_install_facet const locale::id  ,
facet  
[private]
 

Definition at line 170 of file localename.cc.

References std::locale::facet::_M_add_reference(), _M_facets, std::locale::id::_M_index, and std::locale::facet::_M_remove_reference().

Referenced by _M_replace_facet(), and std::locale::locale().

void std::locale::_Impl::_M_remove_reference   throw () [inline, private]
 

Definition at line 327 of file localefwd.h.

Referenced by std::locale::_M_coalesce(), std::locale::classic(), and std::locale::global().

void std::locale::_Impl::_M_replace_categories const _Impl *   ,
category   
[private]
 

Definition at line 129 of file localename.cc.

References _M_names, _M_replace_category(), _S_facet_categories, std::locale::category, and std::string.

Referenced by std::locale::_M_coalesce().

void std::locale::_Impl::_M_replace_category const _Impl *   ,
const locale::id *const *   
[private]
 

Definition at line 149 of file localename.cc.

References _M_replace_facet().

Referenced by _M_replace_categories().

void std::locale::_Impl::_M_replace_facet const _Impl *   ,
const locale::id  
[private]
 

Definition at line 157 of file localename.cc.

References std::__throw_runtime_error(), _M_facets, std::locale::id::_M_index, and _M_install_facet().

Referenced by _M_replace_category(), and std::locale::combine().


Friends And Related Function Documentation

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

Definition at line 83 of file locale_facets.tcc.

friend class locale [friend]
 

Definition at line 297 of file localefwd.h.

friend class locale::facet [friend]
 

Definition at line 298 of file localefwd.h.

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

Definition at line 70 of file locale_facets.tcc.


Member Data Documentation

__c_locale std::locale::_Impl::_M_c_locale [private]
 

Definition at line 313 of file localefwd.h.

Referenced by _Impl().

__vec_facet* std::locale::_Impl::_M_facets [private]
 

Definition at line 311 of file localefwd.h.

Referenced by _Impl(), _M_install_facet(), and _M_replace_facet().

string std::locale::_Impl::_M_names[_S_num_categories] [private]
 

Definition at line 312 of file localefwd.h.

Referenced by _Impl(), _M_replace_categories(), std::locale::global(), std::locale::locale(), and std::locale::name().

size_t std::locale::_Impl::_M_references [private]
 

Definition at line 310 of file localefwd.h.

const locale::id *const *const std::locale::_Impl::_S_facet_categories [static, private]
 

Initial value:

  {
    
    locale::_Impl::_S_id_ctype,
    locale::_Impl::_S_id_numeric,
    locale::_Impl::_S_id_collate,
    locale::_Impl::_S_id_time,
    locale::_Impl::_S_id_monetary,
    locale::_Impl::_S_id_messages,
    0
  }

Definition at line 149 of file locale.cc.

Referenced by _M_replace_categories().

const locale::id *const std::locale::_Impl::_S_id_collate [static, private]
 

Initial value:

  {
    &std::collate<char>::id,



    0
  }

Definition at line 101 of file locale.cc.

const locale::id *const std::locale::_Impl::_S_id_ctype [static, private]
 

Initial value:

Definition at line 75 of file locale.cc.

const locale::id *const std::locale::_Impl::_S_id_messages [static, private]
 

Initial value:

  {
    &std::messages<char>::id, 



    0
  }

Definition at line 139 of file locale.cc.

const locale::id *const std::locale::_Impl::_S_id_monetary [static, private]
 

Initial value:

  {
    &money_get<char>::id,        
    &money_put<char>::id,        
    &moneypunct<char, false>::id, 
    &moneypunct<char, true >::id, 






    0
  }

Definition at line 123 of file locale.cc.

const locale::id *const std::locale::_Impl::_S_id_numeric [static, private]
 

Initial value:

  {
    &num_get<char>::id,  
    &num_put<char>::id,  
    &numpunct<char>::id, 





    0
  }

Definition at line 87 of file locale.cc.

const locale::id *const std::locale::_Impl::_S_id_time [static, private]
 

Initial value:

  {
    &time_get<char>::id, 
    &time_put<char>::id, 




    0
  }

Definition at line 111 of file locale.cc.


The documentation for this class was generated from the following files:
Generated on Mon Apr 8 03:19:00 2002 for libstdc++-v3 Source by doxygen1.2.15