BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlt_calendarcache.h
Go to the documentation of this file.
1/// @file bdlt_calendarcache.h
2///
3/// The content of this file has been pre-processed for Doxygen.
4///
5
6
7// bdlt_calendarcache.h -*-C++-*-
8#ifndef INCLUDED_BDLT_CALENDARCACHE
9#define INCLUDED_BDLT_CALENDARCACHE
10
11#include <bsls_ident.h>
12BSLS_IDENT("$Id: $")
13
14/// @defgroup bdlt_calendarcache bdlt_calendarcache
15/// @brief Provide an efficient cache for read-only `bdlt::Calendar` objects.
16/// @addtogroup bdl
17/// @{
18/// @addtogroup bdlt
19/// @{
20/// @addtogroup bdlt_calendarcache
21/// @{
22///
23/// <h1> Outline </h1>
24/// * <a href="#bdlt_calendarcache-purpose"> Purpose</a>
25/// * <a href="#bdlt_calendarcache-classes"> Classes </a>
26/// * <a href="#bdlt_calendarcache-description"> Description </a>
27/// * <a href="#bdlt_calendarcache-thread-safety"> Thread Safety </a>
28/// * <a href="#bdlt_calendarcache-usage"> Usage </a>
29/// * <a href="#bdlt_calendarcache-example-1-using-a-bdlt-calendarcache"> Example 1: Using a bdlt::CalendarCache </a>
30/// * <a href="#bdlt_calendarcache-example-2-a-calendar-cache-with-a-timeout"> Example 2: A Calendar Cache with a Timeout </a>
31///
32/// # Purpose {#bdlt_calendarcache-purpose}
33/// Provide an efficient cache for read-only `bdlt::Calendar` objects.
34///
35/// # Classes {#bdlt_calendarcache-classes}
36///
37/// - bdlt::CalendarCache: cache for read-only calendars that are loaded on demand
38///
39/// @see bdlt_calendar, bdlt_calendarloader
40///
41/// # Description {#bdlt_calendarcache-description}
42/// This component defines the `bdlt::CalendarCache` class, a cache
43/// for read-only `bdlt::Calendar` objects. The `bdlt::CalendarCache` class
44/// defines two methods for fetching calendars from the cache: a manipulator
45/// called `getCalendar` and an accessor called `lookupCalendar`. Calendars are
46/// identified by name using C-style strings, and both retrieval methods return
47/// a `bsl::shared_ptr<const bdlt::Calendar>`.
48///
49/// The first time a calendar is requested from the cache using the
50/// `getCalendar` manipulator, the identified calendar is loaded into the cache
51/// using the loader that was supplied upon construction of the cache (see
52/// @ref bdlt_calendarloader ); a reference to that newly-loaded calendar is then
53/// returned. Subsequent requests for the same calendar, using either the
54/// `getCalendar` or `lookupCalendar` method, are efficiently satisfied by
55/// returning references to the cached instance. The `lookupCalendar` accessor
56/// differs from the `getCalendar` manipulator in that when a request is made
57/// through the accessor for a calendar that is *not* present in the cache, the
58/// calendar is not loaded as a side-effect. In this case, an empty
59/// `bsl::shared_ptr<const bdlt::Calendar>` is returned instead, which is
60/// effectively a null pointer. Note that the calendar-naming convention in
61/// effect for a given cache is determined by the concrete loader supplied at
62/// construction of the cache.
63///
64/// Calendars stored in a cache can be explicitly invalidated; the `invalidate`
65/// method is used to invalidate a single calendar and `invalidateAll`
66/// invalidates all calendars in the cache. Invalidated calendars are removed
67/// from the cache. However, a calendar that has been invalidated in the cache
68/// remains valid to all outstanding references to it, obtained via earlier
69/// calls to the `getCalendar` and `lookupCalendar` methods, until all of those
70/// references have been destroyed. Note that a subsequent request, using the
71/// `getCalendar` manipulator, for a calendar that has been invalidated incurs
72/// the overhead of once again loading that calendar into the cache.
73///
74/// Calendars can also be invalidated on the basis of a timeout. To use this
75/// feature of `bdlt::CalendarCache`, a `bsls::TimeInterval` timeout must be
76/// supplied at construction. When a timeout is in effect for a cache, requests
77/// for a calendar from the cache using the `getCalendar` manipulator may incur
78/// the reloading of the calendar if the one in the cache has expired (i.e., the
79/// time interval defined by the timeout value has elapsed since the calendar
80/// was last loaded). In the case of the `lookupCalendar` accessor, an empty
81/// `bsl::shared_ptr<const bdlt::Calendar>` is returned if the requested
82/// calendar is found to have expired.
83///
84/// ## Thread Safety {#bdlt_calendarcache-thread-safety}
85///
86///
87/// The `bdlt::CalendarCache` class is fully thread-safe (see @ref bsldoc_glossary )
88/// provided that the allocator supplied at construction and the default
89/// allocator in effect during the lifetime of cache objects are both fully
90/// thread-safe.
91///
92/// ## Usage {#bdlt_calendarcache-usage}
93///
94///
95/// The following example illustrates how to use a `bdlt::CalendarCache`.
96///
97/// ### Example 1: Using a bdlt::CalendarCache {#bdlt_calendarcache-example-1-using-a-bdlt-calendarcache}
98///
99///
100/// This example shows basic use of a `bdlt::CalendarCache` object.
101///
102/// In this example, we assume a hypothetical calendar loader,
103/// `MyCalendarLoader`, the details of which are not important other than that
104/// it supports calendars identified by "DE", "FR", and "US", which nominally
105/// identify the major holidays in Germany, France, and the United States,
106/// respectively. Furthermore, we cite two specific dates of interest:
107/// 2011/07/04, which was a holiday in the US (Independence Day), but not in
108/// France, and 2011/07/14, which was a holiday in France (Bastille Day), but
109/// not in the US. Note that neither of these dates were holidays in Germany.
110///
111/// First, we create a calendar loader, an instance of `MyCalendarLoader`, and
112/// use it, in turn, to create a cache. For the purposes of this example, it is
113/// sufficient to let the cache use the default allocator:
114/// @code
115/// MyCalendarLoader loader;
116/// bdlt::CalendarCache cache(&loader);
117/// @endcode
118/// Next, we retrieve the calendar `usA`, identified by "US", verify that the
119/// loading of that calendar into the cache was successful (`usA.get()` is
120/// non-null), and verify that 2011/07/04 is recognized as a holiday in the "US"
121/// calendar, whereas 2011/07/14 is not:
122/// @code
123/// bsl::shared_ptr<const bdlt::Calendar> usA = cache.getCalendar("US");
124///
125/// assert( usA.get());
126/// assert( usA->isHoliday(bdlt::Date(2011, 7, 4)));
127/// assert(!usA->isHoliday(bdlt::Date(2011, 7, 14)));
128/// @endcode
129/// Then, we fetch the calendar identified by "FR", this time verifying that
130/// 2011/07/14 is recognized as a holiday in the "FR" calendar, but 2011/07/04
131/// is not:
132/// @code
133/// bsl::shared_ptr<const bdlt::Calendar> frA = cache.getCalendar("FR");
134///
135/// assert( frA.get());
136/// assert(!frA->isHoliday(bdlt::Date(2011, 7, 4)));
137/// assert( frA->isHoliday(bdlt::Date(2011, 7, 14)));
138/// @endcode
139/// Next, we retrieve the "FR" calendar again, this time via the
140/// `lookupCalendar` accessor, and note that the request is satisfied by the
141/// calendar that is already in the cache:
142/// @code
143/// const bdlt::CalendarCache& readonlyCache = cache;
144///
145/// bsl::shared_ptr<const bdlt::Calendar> frB =
146/// readonlyCache.lookupCalendar("FR");
147///
148/// assert( frA.get() == frB.get());
149/// @endcode
150/// Then, we invalidate the "US" calendar in the cache and immediately fetch it
151/// again. The call to `invalidate` removed the "US" calendar from the cache,
152/// so it had to be reloaded into the cache to satisfy the request:
153/// @code
154/// int numInvalidated = cache.invalidate("US");
155/// assert(1 == numInvalidated);
156///
157/// bsl::shared_ptr<const bdlt::Calendar> usB = cache.getCalendar("US");
158///
159/// assert( usB.get() != usA.get());
160/// assert( usB.get());
161/// assert( usB->isHoliday(bdlt::Date(2011, 7, 4)));
162/// assert(!usB->isHoliday(bdlt::Date(2011, 7, 14)));
163/// @endcode
164/// Next, all calendars in the cache are invalidated, then reloaded:
165/// @code
166/// numInvalidated = cache.invalidateAll();
167/// assert(2 == numInvalidated);
168///
169/// bsl::shared_ptr<const bdlt::Calendar> usC = cache.getCalendar("US");
170///
171/// assert( usC.get() != usA.get());
172/// assert( usC.get() != usB.get());
173/// assert( usC.get());
174/// assert( usC->isHoliday(bdlt::Date(2011, 7, 4)));
175/// assert(!usC->isHoliday(bdlt::Date(2011, 7, 14)));
176///
177/// bsl::shared_ptr<const bdlt::Calendar> frC = cache.getCalendar("FR");
178///
179/// assert( frC.get() != frA.get());
180/// assert( frC.get() != frB.get());
181/// assert( frC.get());
182/// assert(!frC->isHoliday(bdlt::Date(2011, 7, 4)));
183/// assert( frC->isHoliday(bdlt::Date(2011, 7, 14)));
184/// @endcode
185/// Now, verify that references to calendars that were invalidated in the cache
186/// are still valid for clients that obtained references to them before they
187/// were made invalid:
188/// @code
189/// assert( usA->isHoliday(bdlt::Date(2011, 7, 4)));
190/// assert(!usA->isHoliday(bdlt::Date(2011, 7, 14)));
191///
192/// assert( usB->isHoliday(bdlt::Date(2011, 7, 4)));
193/// assert(!usB->isHoliday(bdlt::Date(2011, 7, 14)));
194///
195/// assert(!frA->isHoliday(bdlt::Date(2011, 7, 4)));
196/// assert( frA->isHoliday(bdlt::Date(2011, 7, 14)));
197///
198/// assert(!frB->isHoliday(bdlt::Date(2011, 7, 4)));
199/// assert( frB->isHoliday(bdlt::Date(2011, 7, 14)));
200/// @endcode
201/// When `usA`, `usB`, `frA`, and `frB` go out of scope, the resources used by
202/// the calendars to which they refer are automatically reclaimed.
203///
204/// Finally, using the `lookupCalendar` accessor, we attempt to retrieve a
205/// calendar that has not yet been loaded into the cache, but that we *know* to
206/// be supported by the calendar loader. Since the `lookupCalendar` accessor
207/// does not load calendars into the cache as a side-effect, the request fails:
208/// @code
209/// bsl::shared_ptr<const bdlt::Calendar> de =
210/// readonlyCache.lookupCalendar("DE");
211///
212/// assert(!de.get());
213/// @endcode
214///
215/// ### Example 2: A Calendar Cache with a Timeout {#bdlt_calendarcache-example-2-a-calendar-cache-with-a-timeout}
216///
217///
218/// This second example shows the effects on a `bdlt::CalendarCache` object that
219/// is constructed to have a timeout value. Note that the following snippets of
220/// code assume a platform-independent `sleepSeconds` method that sleeps for the
221/// specified number of seconds.
222///
223/// First, we create a calendar loader and a calendar cache. The cache is
224/// constructed to have a timeout of 3 seconds. Of course, such a short timeout
225/// is inappropriate for production use, but it is necessary for illustrating
226/// the effects of a timeout in this example. As in example 1 (above), we again
227/// let the cache use the default allocator:
228/// @code
229/// MyCalendarLoader loader;
230/// bdlt::CalendarCache cache(&loader, bsls::TimeInterval(3, 0));
231/// const bdlt::CalendarCache& readonlyCache = cache;
232/// @endcode
233/// Next, we retrieve the calendar identified by "DE" from the cache:
234/// @code
235/// bsl::shared_ptr<const bdlt::Calendar> deA = cache.getCalendar("DE");
236///
237/// assert( deA.get());
238/// @endcode
239/// Next, we sleep for 2 seconds before retrieving the "FR" calendar:
240/// @code
241/// sleepSeconds(2);
242///
243/// bsl::shared_ptr<const bdlt::Calendar> frA = cache.getCalendar("FR");
244///
245/// assert( frA.get());
246/// @endcode
247/// Next, we sleep for 2 more seconds before attempting to retrieve the "DE"
248/// calendar again, this time using the `lookupCalendar` accessor. Since the
249/// cumulative sleep time exceeds the timeout value established for the cache
250/// when it was constructed, the "DE" calendar has expired; hence, it has been
251/// removed from the cache:
252/// @code
253/// sleepSeconds(2);
254///
255/// bsl::shared_ptr<const bdlt::Calendar> deB =
256/// readonlyCache.lookupCalendar("DE");
257///
258/// assert(!deB.get());
259/// @endcode
260/// Next, we verify that the "FR" calendar is still available in the cache:
261/// @code
262/// bsl::shared_ptr<const bdlt::Calendar> frB =
263/// readonlyCache.lookupCalendar("FR");
264///
265/// assert( frA.get() == frB.get());
266/// @endcode
267/// Finally, we sleep for an additional 2 seconds and verify that the "FR"
268/// calendar has also expired:
269/// @code
270/// sleepSeconds(2);
271///
272/// bsl::shared_ptr<const bdlt::Calendar> frC =
273/// readonlyCache.lookupCalendar("FR");
274///
275/// assert(!frC.get());
276/// @endcode
277/// @}
278/** @} */
279/** @} */
280
281/** @addtogroup bdl
282 * @{
283 */
284/** @addtogroup bdlt
285 * @{
286 */
287/** @addtogroup bdlt_calendarcache
288 * @{
289 */
290
291#include <bdlscm_version.h>
292
293#include <bdlt_calendar.h>
294#include <bdlt_datetime.h>
296
297#include <bslma_allocator.h>
299
301
302#include <bslmt_mutex.h>
303
304#include <bsls_timeinterval.h>
305
306#include <bsl_map.h>
307#include <bsl_memory.h> // 'bsl::shared_ptr'
308#include <bsl_string.h>
309
310#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
311#include <bslalg_typetraits.h>
313#endif // BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
314
315
316namespace bdlt {
317
318class CalendarLoader;
319class CalendarCache_Entry;
320
321 // =========================
322 // class CalendarCache_Entry
323 // =========================
324
325// IMPLEMENTATION NOTE: The Sun Studio 12.3 compiler does not support 'map's
326// holding types that are incomplete at the point of declaration of a data
327// member. Other compilers allow us to complete 'CalendarCache_Entry' at a
328// later point in the code, but before any operation (such as 'insert') that
329// would require the type to be complete. If we did not have to support this
330// compiler, this whole class could be defined in the .cpp file; as it stands,
331// it *must* be defined before class 'CalendarCache'.
332
333/// This class defines the type of objects that are inserted into the
334/// calendar cache. Each entry contains a shared pointer to a read-only
335/// calendar and the time at which that calendar was loaded. Note that an
336/// explicit allocator is *required* to create an entry object.
337///
338/// See @ref bdlt_calendarcache
340
341 // DATA
342 bsl::shared_ptr<const Calendar> d_ptr; // shared pointer to
343 // out-of-place instance
344
345 Datetime d_loadTime; // time when calendar was
346 // loaded
347
348 public:
349 // CREATORS
350
351 /// Create an empty cache entry object. Note that an empty cache entry
352 /// is never actually inserted into the cache.
354
355 /// Create a cache entry object for managing the specified `calendar`
356 /// that was loaded at the specified `loadTime` using the specified
357 /// `allocator`. The behavior is undefined unless `calendar` uses
358 /// `allocator` to obtain memory.
360 const Datetime& loadTime,
361 bslma::Allocator *allocator);
362
363 /// Create a cache entry object having the value of the specified
364 /// `original` object.
366
367 /// Destroy this cache entry object.
369
370 // MANIPULATORS
371
372 /// Assign to this cache entry object the value of the specified `rhs`
373 /// object, and return a reference providing modifiable access to this
374 /// object.
376
377 // ACCESSORS
378
379 /// Return a shared pointer providing non-modifiable access to the
380 /// calendar referred to by this cache entry object.
382
383 /// Return the time at which the calendar referred to by this cache
384 /// entry object was loaded.
386};
387
388 // ===================
389 // class CalendarCache
390 // ===================
391
392/// This class implements an efficient cache of *read-only* `bdlt::Calendar`
393/// objects that are loaded into the cache, using a calendar loader supplied
394/// at construction, as a side-effect of the `getCalendar` manipulator.
395/// Calendars in the cache can be invalidated, and removed from the cache
396/// via the `invalidate` and `invalidateAll` methods. In addition,
397/// calendars in the cache can be made to expire based on a timeout that may
398/// be optionally supplied at construction. The
399/// `bsl::shared_ptr<const bdlt::Calendar>` objects returned from the
400/// `getCalendar` and `lookupCalendar` methods allow for the safe removal of
401/// calendars from the cache that may still have outstanding references to
402/// them.
403///
404/// This container is *exception* *neutral* with no guarantee of rollback:
405/// if an exception is thrown during the invocation of a method on a
406/// pre-existing instance, the container is left in a valid state, but its
407/// value is undefined. In no event is memory leaked.
408///
409/// This class is fully thread-safe (see @ref bsldoc_glossary ).
410///
411/// See @ref bdlt_calendarcache
413
414 // DATA
416 d_cache; // cache of (name, handle) pairs
417
418 CalendarLoader *d_loader_p; // calendar loader (held, not
419 // owned)
420
421 DatetimeInterval d_timeOut; // timeout value; ignored unless
422 // 'd_hasTimeOutFlag' is 'true'
423
424 bool d_hasTimeOutFlag; // 'true' if this cache has a
425 // timeout value and 'false'
426 // otherwise
427
428 mutable bslmt::Mutex d_lock; // guard access to cache
429
430 bslma::Allocator *d_allocator_p; // memory allocator (held, not
431 // owned)
432
433 private:
434 // PRIVATE TYPES
436
438 ConstCacheIterator;
439
440 private:
441 // NOT IMPLEMENTED
443 CalendarCache& operator=(const CalendarCache&);
444
445 public:
446 // CREATORS
447
448 /// Create an empty calendar cache that uses the specified `loader` to
449 /// load calendars on demand and has no timeout. Optionally specify a
450 /// `basicAllocator` used to supply memory. If `basicAllocator` is 0,
451 /// the currently installed default allocator is used. Calendars loaded
452 /// into this cache remain valid for retrieval until they have been
453 /// explicitly invalidated (via either the `invalidate` or
454 /// `invalidateAll` methods), or until this object is destroyed. The
455 /// behavior is undefined unless `loader` remains valid throughout the
456 /// lifetime of this cache.
457 explicit
459 bslma::Allocator *basicAllocator = 0);
460
461 /// Create an empty calendar cache that uses the specified `loader` to
462 /// load calendars on demand and has the specified `timeout` interval
463 /// indicating the length of time that calendars remain valid for
464 /// subsequent retrieval from the cache after they have been loaded.
465 /// Optionally specify a `basicAllocator` used to supply memory. If
466 /// `basicAllocator` is 0, the currently installed default allocator is
467 /// used. The behavior is undefined unless
468 /// `bsls::TimeInterval() <= timeout <= bsls::TimeInterval(INT_MAX, 0)`,
469 /// and `loader` remains valid throughout the lifetime of this cache.
470 /// Note that a `timeout` value of 0 indicates that a calendar will be
471 /// loaded into the cache by *each* (successful) call to the
472 /// `getCalendar` method.
474 const bsls::TimeInterval& timeout,
475 bslma::Allocator *basicAllocator = 0);
476
477 /// Destroy this object.
479
480 // MANIPULATORS
481
482 /// Return a shared pointer providing non-modifiable access to the
483 /// calendar having the specified `calendarName` in this calendar cache,
484 /// loading the calendar into the cache using the loader that was
485 /// supplied at construction if the calendar is not already present in
486 /// the cache or if the calendar has expired (i.e., per a timeout
487 /// optionally supplied at construction). If the loader fails, whether
488 /// in loading a calendar for the first time or in reloading a calendar
489 /// that has expired, return an empty shared pointer.
491
492 /// Invalidate the calendar having the specified `calendarName` in this
493 /// calendar cache, and remove it from the cache. If a calendar having
494 /// `calendarName` is not present in this cache, this method has no
495 /// effect. Return the number of calendars that were invalidated. Note
496 /// that a calendar that has been invalidated in the cache remains valid
497 /// to all outstanding references to it, obtained via earlier calls to
498 /// the `getCalendar` and `lookupCalendar` methods, until all of those
499 /// references have been destroyed.
500 int invalidate(const char *calendarName);
501
502 /// Invalidate all calendars in this calendar cache, and remove them
503 /// from the cache. Return the number of calendars that were
504 /// invalidated. Note that a calendar that has been invalidated in the
505 /// cache remains valid to all outstanding references to it, obtained
506 /// via earlier calls to the `getCalendar` and `lookupCalendar` methods,
507 /// until all of those references have been destroyed.
509
510 // ACCESSORS
511
512 /// Return a shared pointer providing non-modifiable access to the
513 /// calendar having the specified `calendarName` in this calendar cache.
514 /// If the calendar having `calendarName` is not found in the cache, or
515 /// if the calendar has expired (i.e., per a timeout optionally supplied
516 /// at construction), return an empty shared pointer.
518 lookupCalendar(const char *calendarName) const;
519
520 /// Return the datetime, in Coordinated Universal Time (UTC), at which
521 /// the calendar having the specified `calendarName` was loaded into
522 /// this calendar cache. If the calendar having `calendarName` is not
523 /// found in the cache, or if the calendar has expired (i.e., per a
524 /// timeout optionally supplied at construction), return `Datetime()`.
525 Datetime lookupLoadTime(const char *calendarName) const;
526};
527
528// ============================================================================
529// INLINE DEFINITIONS
530// ============================================================================
531
532} // close package namespace
533
534
535// TRAITS
536
537
538namespace bslma {
539
540template <>
541struct UsesBslmaAllocator<bdlt::CalendarCache> : bsl::true_type {};
542
543} // close namespace bslma
544
545
546#endif
547
548// ----------------------------------------------------------------------------
549// Copyright 2018 Bloomberg Finance L.P.
550//
551// Licensed under the Apache License, Version 2.0 (the "License");
552// you may not use this file except in compliance with the License.
553// You may obtain a copy of the License at
554//
555// http://www.apache.org/licenses/LICENSE-2.0
556//
557// Unless required by applicable law or agreed to in writing, software
558// distributed under the License is distributed on an "AS IS" BASIS,
559// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
560// See the License for the specific language governing permissions and
561// limitations under the License.
562// ----------------------------- END-OF-FILE ----------------------------------
563
564/** @} */
565/** @} */
566/** @} */
Definition bdlt_calendarcache.h:339
CalendarCache_Entry()
CalendarCache_Entry & operator=(const CalendarCache_Entry &rhs)
CalendarCache_Entry(const CalendarCache_Entry &original)
~CalendarCache_Entry()
Destroy this cache entry object.
Datetime loadTime() const
bsl::shared_ptr< const Calendar > get() const
CalendarCache_Entry(Calendar *calendar, const Datetime &loadTime, bslma::Allocator *allocator)
Definition bdlt_calendarcache.h:412
Datetime lookupLoadTime(const char *calendarName) const
~CalendarCache()
Destroy this object.
bsl::shared_ptr< const Calendar > getCalendar(const char *calendarName)
CalendarCache(CalendarLoader *loader, bslma::Allocator *basicAllocator=0)
bsl::shared_ptr< const Calendar > lookupCalendar(const char *calendarName) const
int invalidate(const char *calendarName)
CalendarCache(CalendarLoader *loader, const bsls::TimeInterval &timeout, bslma::Allocator *basicAllocator=0)
Definition bdlt_calendarloader.h:322
Definition bdlt_calendar.h:569
Definition bdlt_datetimeinterval.h:201
Definition bdlt_datetime.h:331
Definition bslstl_map.h:619
BloombergLP::bslstl::TreeIterator< const value_type, Node, difference_type > const_iterator
Definition bslstl_map.h:724
BloombergLP::bslstl::TreeIterator< value_type, Node, difference_type > iterator
Definition bslstl_map.h:722
Definition bslstl_sharedptr.h:1830
Definition bslma_allocator.h:457
Definition bslmt_mutex.h:315
Definition bsls_timeinterval.h:301
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bbldc_basicisma30360.h:112
Definition balxml_encoderoptions.h:68
Definition bslma_usesbslmaallocator.h:343