BDE 4.14.0 Production release
Loading...
Searching...
No Matches
s_baltst_testenumerationutil.h
Go to the documentation of this file.
1/// @file s_baltst_testenumerationutil.h
2///
3/// The content of this file has been pre-processed for Doxygen.
4///
5
6
7// s_baltst_testenumerationutil.h -*-C++-*-
8#ifndef INCLUDED_S_BALTST_TESTENUMERATIONUTIL
9#define INCLUDED_S_BALTST_TESTENUMERATIONUTIL
10
11#include <bsls_ident.h>
12BSLS_IDENT("$Id: $")
13
14/// @defgroup s_baltst_testenumerationutil s_baltst_testenumerationutil
15/// @brief Provide non-primitive operations on `s_baltst::TestEnumeration`.
16/// @addtogroup Standalones
17/// @{
18/// @addtogroup s_baltst
19/// @{
20/// @addtogroup s_baltst_testenumerationutil
21/// @{
22///
23/// <h1> Outline </h1>
24/// * <a href="#s_baltst_testenumerationutil-purpose"> Purpose</a>
25/// * <a href="#s_baltst_testenumerationutil-classes"> Classes </a>
26///
27/// # Purpose {#s_baltst_testenumerationutil-purpose}
28/// Provide non-primitive operations on `s_baltst::TestEnumeration`.
29///
30/// # Classes {#s_baltst_testenumerationutil-classes}
31///
32/// - s_baltst::TestEnumerationUtil: utilities for test enumerations
33/// @}
34/** @} */
35/** @} */
36
37/** @addtogroup Standalones
38 * @{
39 */
40/** @addtogroup s_baltst
41 * @{
42 */
43/** @addtogroup s_baltst_testenumerationutil
44 * @{
45 */
46/
50
51
52namespace s_baltst {
53
54 // ==========================
55 // struct TestEnumerationUtil
56 // ==========================
57
59 // CLASS METHODS
60 template <class ENUMERATOR_0>
61 static TestEnumeration<ENUMERATOR_0> generate(const ENUMERATOR_0&,
62 int value);
63
64 template <class ENUMERATOR_0, class ENUMERATOR_1>
66 const ENUMERATOR_0&,
67 const ENUMERATOR_1&,
68 int value);
69
70 template <class ENUMERATOR_0>
72 const ENUMERATOR_0&);
73
74 template <class ENUMERATOR_0, class ENUMERATOR_1>
76 generatePlaceHolder(const ENUMERATOR_0&, const ENUMERATOR_1&);
77};
78
79// ============================================================================
80// INLINE DEFINITIONS
81// ============================================================================
82
83 // --------------------------
84 // struct TestEnumerationUtil
85 // --------------------------
86
87// CLASS METHODS
88template <class ENUMERATOR_0>
90 const ENUMERATOR_0&,
91 int value)
92{
94}
95
96template <class ENUMERATOR_0, class ENUMERATOR_1>
98 const ENUMERATOR_0&,
99 const ENUMERATOR_1&,
100 int value)
101{
103}
104
105template <class ENUMERATOR_0>
108{
109 typedef TestEnumeration<ENUMERATOR_0> Enumeration;
110
112}
113
114template <class ENUMERATOR_0, class ENUMERATOR_1>
117 const ENUMERATOR_1&)
118{
120
122}
123
124} // close package namespace
125
126
127#endif // INCLUDED_S_BALTST_TESTENUMERATIONUTIL
128
129// ----------------------------------------------------------------------------
130// Copyright 2021 Bloomberg Finance L.P.
131//
132// Licensed under the Apache License, Version 2.0 (the "License");
133// you may not use this file except in compliance with the License.
134// You may obtain a copy of the License at
135//
136// http://www.apache.org/licenses/LICENSE-2.0
137//
138// Unless required by applicable law or agreed to in writing, software
139// distributed under the License is distributed on an "AS IS" BASIS,
140// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
141// See the License for the specific language governing permissions and
142// limitations under the License.
143// ----------------------------- END-OF-FILE ----------------------------------
144
145/** @} */
146/** @} */
147/** @} */
Definition s_baltst_testenumeration.h:71
Definition s_baltst_testplaceholder.h:63
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition s_baltst_address.h:66
Definition s_baltst_testenumerationutil.h:58
static TestPlaceHolder< TestEnumeration< ENUMERATOR_0 > > generatePlaceHolder(const ENUMERATOR_0 &)
Definition s_baltst_testenumerationutil.h:107
static TestEnumeration< ENUMERATOR_0 > generate(const ENUMERATOR_0 &, int value)
Definition s_baltst_testenumerationutil.h:89