Skip to content

Commit 102b05c

Browse files
osubbooGitHub Enterprise
authored andcommitted
Cleanup bdl (#4814)
* Cleanup bdlma * Cleanup bdlmt * Cleanup bdlcc * Cleanup bdlc
1 parent f57b55f commit 102b05c

File tree

92 files changed

+271
-956
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+271
-956
lines changed

groups/bdl/bdlc/bdlc_hashtable.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// bdlc_hashtable.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
102
#include <bdlc_hashtable.h>
113

124
#include <bsls_ident.h>

groups/bdl/bdlc/bdlc_hashtable.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// bdlc_hashtable.h -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
102
#ifndef INCLUDED_BDLC_HASHTABLE
113
#define INCLUDED_BDLC_HASHTABLE
124

@@ -495,6 +487,10 @@ BSLS_IDENT("$Id: $")
495487
//
496488
///Usage
497489
///-----
490+
// This section illustrates intended use of this component.
491+
//
492+
///Example 1: Basic Usage
493+
/// - - - - - - - - - - -
498494
// The following snippets of code illustrate the usage of this component.
499495
// Suppose we wanted to store a table of 'int' keys with 'double' values. We
500496
// will use a capacity hint of 10, default traits, and default hash functors

groups/bdl/bdlc/bdlc_hashtable.t.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
// bdlc_hashtable.t.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
10-
112
#include <bdlc_hashtable.h>
123

134
#include <bslim_testutil.h>

groups/bdl/bdlc/bdlc_indexclerk.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// bdlc_indexclerk.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
102
#include <bdlc_indexclerk.h>
113

124
#include <bsls_ident.h>

groups/bdl/bdlc/bdlc_indexclerk.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// bdlc_indexclerk.h -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
102
#ifndef INCLUDED_BDLC_INDEXCLERK
113
#define INCLUDED_BDLC_INDEXCLERK
124

@@ -56,6 +48,10 @@ BSLS_IDENT("$Id: $")
5648
//
5749
///Usage
5850
///-----
51+
// This section illustrates intended use of this component.
52+
//
53+
///Example 1: Basic Usage
54+
/// - - - - - - - - - - -
5955
// A 'bdlc::IndexClerk' is commonly used in conjunction with an array to enable
6056
// machine-address-independent referencing. Rather than dynamically allocating
6157
// an object and holding its address, the object is stored in the array at the

groups/bdl/bdlc/bdlc_indexclerk.t.cpp

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
11
// bdlc_indexclerk.t.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
10-
112
#include <bdlc_indexclerk.h>
123

134
#include <bslim_testutil.h>
145

15-
#include <bslx_outstreamfunctions.h> // for testing only
16-
#include <bslx_testoutstream.h> // for testing only
17-
#include <bslx_testinstream.h> // for testing only
18-
#include <bslx_testinstreamexception.h> // for testing only
19-
206
#include <bslma_default.h> // for testing only
217
#include <bslma_defaultallocatorguard.h> // for testing only
228
#include <bslma_testallocator.h> // for testing only
@@ -27,6 +13,11 @@
2713
#include <bsls_review.h>
2814
#include <bsls_types.h>
2915

16+
#include <bslx_outstreamfunctions.h> // for testing only
17+
#include <bslx_testinstream.h> // for testing only
18+
#include <bslx_testinstreamexception.h> // for testing only
19+
#include <bslx_testoutstream.h> // for testing only
20+
3021
#include <bsl_iostream.h>
3122
#include <bsl_sstream.h>
3223
#include <bsl_vector.h>
@@ -36,7 +27,7 @@
3627
#include <bsl_cstring.h> // strcmp
3728

3829
using namespace BloombergLP;
39-
using namespace bsl; // automatically added by script
30+
using namespace bsl;
4031

4132
// ============================================================================
4233
// TEST PLAN

groups/bdl/bdlc/bdlc_queue.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
// bdlc_queue.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
102
#include <bdlc_queue.h>
113

124
#include <bsls_ident.h>

groups/bdl/bdlc/bdlc_queue.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ BSLS_IDENT("$Id: $")
8686
//
8787
///Usage
8888
///-----
89+
// This section illustrates intended use of this component.
90+
//
91+
///Example 1: Basic Usage
92+
/// - - - - - - - - - - -
8993
// The following snippets of code illustrate how to create and use a queue.
9094
// First, create an empty 'bdlc::Queue<double>' 'q' and populate it with two
9195
// elements 'E1' and 'E2'.

groups/bdl/bdlc/bdlc_queue.t.cpp

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
// bdlc_queue.t.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
10-
112
#include <bdlc_queue.h>
123

13-
#include <bslim_testutil.h>
14-
154
#include <bdlma_bufferedsequentialallocator.h>
165

6+
#include <bslim_testutil.h>
7+
178
#include <bslma_testallocator.h> // for testing only
189
#include <bslma_testallocatorexception.h> // for testing only
1910

@@ -23,18 +14,17 @@
2314
#include <bslx_testinstreamexception.h> // for testing only
2415
#include <bslx_testoutstream.h> // for testing only
2516

17+
#include <bsl_cstdlib.h> // atoi()
18+
#include <bsl_cstring.h> // strlen(), memset(), memcpy(), memcmp()
2619
#include <bsl_iostream.h>
2720
#include <bsl_new.h> // placement syntax
2821
#include <bsl_sstream.h>
2922

30-
#include <bsl_cstdlib.h> // atoi()
31-
#include <bsl_cstring.h> // strlen(), memset(), memcpy(), memcmp()
32-
3323
#undef SS // Solaris 5.10/x86 sys/regset.h via stdlib.h
3424
#undef ES
3525

3626
using namespace BloombergLP;
37-
using namespace bsl; // automatically added by script
27+
using namespace bsl;
3828

3929
// ============================================================================
4030
// TEST PLAN

groups/bdl/bdlcc/bdlcc_fixedqueue.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
// bdlcc_fixedqueue.cpp -*-C++-*-
2-
3-
// ----------------------------------------------------------------------------
4-
// NOTICE
5-
//
6-
// This component is not up to date with current BDE coding standards, and
7-
// should not be used as an example for new development.
8-
// ----------------------------------------------------------------------------
9-
10-
112
#include <bdlcc_fixedqueue.h>
123

134
#include <bsls_ident.h>
145
BSLS_IDENT_RCSID(bdlcc_fixedqueue_cpp,"$Id$$CSID$")
156

167
namespace BloombergLP {
8+
namespace bdlcc {
179

1810
///Implementation Note
1911
///===================
@@ -86,6 +78,7 @@ namespace BloombergLP {
8678
// 'bdlcc::FixedQueue' object holds a 'bdlcc::AtomicRinBufferIndexManager' that
8779
// it uses to manage the state of the elements in 'd_elements'.
8880

81+
} // close pacakge namespace
8982
} // close enterprise namespace
9083

9184
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)