Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros
use_facet.h File Reference
#include <new>
#include <rw/_defs.h>
#include "access.h"
Include dependency graph for use_facet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _RWSTD_DEFINE_FACET_FACTORY(Linkage, Facet, TArgs, fid)
 
#define _RWSTD_SPECIALIZE_FACET_ID(Facet, TArgs)
 
#define _RWSTD_SPECIALIZE_USE_FACET(fid)
 

Macro Definition Documentation

◆ _RWSTD_DEFINE_FACET_FACTORY

#define _RWSTD_DEFINE_FACET_FACTORY (   Linkage,
  Facet,
  TArgs,
  fid 
)
Value:
typedef _STD:: Facet TArgs __rw_ ## fid ## _facet; \
_RWSTD_NAMESPACE (__rw) \
{ \
Linkage __rw_facet* \
__rw_ct_ ## fid (_RWSTD_SIZE_T ref, const char *name) \
{ \
__rw_facet* pfacet; \
if (name) { \
/* construct a _byname facet on the heap */ \
pfacet = new _STD:: Facet ## _byname TArgs (name, ref); \
} \
else { \
/* construct an ordinary facet in static memory */ \
static union { \
void *align_; \
char data_ [sizeof (__rw_ ## fid ## _facet)]; \
} f; \
static __rw_facet* const pf = \
new (&f) __rw_ ## fid ## _facet (ref); \
pfacet = pf; \
} \
/* set the pointer to the facet id */ \
__rw_access::_C_get_pid (*pfacet) = \
&(__rw_access::_C_get_id (__rw_ ## fid ## _facet::id)); \
return pfacet; \
} \
} /* namespace __rw */ \
typedef void __rw_unused_type
#define pf
Definition 17.names.cpp:516
#define f
Definition 17.names.cpp:119
const char * name
Definition codecvt1.cpp:72

use_facet.h

This is an internal header file used to implement the C++ Standard Library. It should never be #included directly by a program.

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2006 Rogue Wave Software.

Definition at line 52 of file use_facet.h.

◆ _RWSTD_SPECIALIZE_FACET_ID

#define _RWSTD_SPECIALIZE_FACET_ID (   Facet,
  TArgs 
)
Value:
_RWSTD_SPECIALIZED_CLASS \
_RW::__rw_facet_id Facet TArgs:: \
id (_RW::__rw_facet_id::_C_Init); \
} \
typedef void __rw_unused_type
#define _RWSTD_NAMESPACE(name)
Definition _defs.h:567
Definition json.h:5363

Definition at line 115 of file use_facet.h.

◆ _RWSTD_SPECIALIZE_USE_FACET

#define _RWSTD_SPECIALIZE_USE_FACET (   fid)
Value:
_RWSTD_EXPORT \
const __rw_facet* \
__rw_get_facet_by_id \
(const _STD::locale &__loc, \
const __rw_facet_id&, \
const __rw_ ## fid ## _facet*) { \
return __rw_get_std_facet (__loc, __rw_facet::_C_ ## fid, \
__rw_ct_ ## fid); \
} \
} \
typedef void __rw_unused_type

Definition at line 129 of file use_facet.h.