Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
ef1c3846
Commit
ef1c3846
authored
16 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecated class BitField
[[Imported from SVN: r5490]]
parent
88de94d9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
common/Makefile.am
+1
-1
1 addition, 1 deletion
common/Makefile.am
common/bitfield.hh
+0
-67
0 additions, 67 deletions
common/bitfield.hh
common/test/parsetest.cc
+1
-1
1 addition, 1 deletion
common/test/parsetest.cc
with
2 additions
and
69 deletions
common/Makefile.am
+
1
−
1
View file @
ef1c3846
...
...
@@ -11,7 +11,7 @@ AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/..
commonincludedir
=
$(
includedir
)
/dune/common
commoninclude_HEADERS
=
dlist.cc alignment.hh
\
arraylist.hh
bitfield.hh
bitsetvector.hh debugstream.hh deprecated.hh dlist.hh
\
arraylist.hh bitsetvector.hh debugstream.hh deprecated.hh dlist.hh
\
enumset.hh exceptions.hh fixedarray.hh fmatrix.hh
\
fvector.hh genericiterator.hh
\
helpertemplates.hh iteratorfacades.hh
\
...
...
This diff is collapsed.
Click to expand it.
common/bitfield.hh
deleted
100644 → 0
+
0
−
67
View file @
88de94d9
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_BITFIELD_HH
#define DUNE_BITFIELD_HH
#warning This file is deprecated! Use bitsetvector.hh instead!
#include
<vector>
#include
<iostream>
namespace
Dune
{
/** \brief A dynamic array of booleans
* \ingroup Common
*
* This class is basically std::vector<bool>, but with a few added
* methods.
*/
class
BitField
:
public
std
::
vector
<
bool
>
{
public:
//! Default constructor
BitField
()
:
std
::
vector
<
bool
>
()
{}
//! Constructor with a given length
explicit
BitField
(
int
n
)
:
std
::
vector
<
bool
>
(
n
)
{}
//! Constructor which initializes the field
BitField
(
int
n
,
bool
v
)
:
std
::
vector
<
bool
>
(
n
)
{
this
->
assign
(
size
(),
v
);
}
//! Sets all entries to <tt> true </tt>
void
setAll
()
{
this
->
assign
(
size
(),
true
);
}
//! Sets all entries to <tt> false </tt>
void
unsetAll
()
{
this
->
assign
(
size
(),
false
);
}
//! Returns the number of set bits
int
nSetBits
()
const
{
int
n
=
0
;
for
(
size_t
i
=
0
;
i
<
size
();
i
++
)
n
+=
((
*
this
)[
i
])
?
1
:
0
;
return
n
;
}
//! Send bitfield to an output stream
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
BitField
&
v
)
{
for
(
size_t
i
=
0
;
i
<
v
.
size
();
i
++
)
s
<<
v
[
i
]
<<
" "
;
s
<<
std
::
endl
;
return
s
;
}
}
DUNE_DEPRECATED
;
}
#endif
This diff is collapsed.
Click to expand it.
common/test/parsetest.cc
+
1
−
1
View file @
ef1c3846
...
...
@@ -18,7 +18,7 @@
#include
<dune/common/alignment.hh>
#include
<dune/common/arraylist.hh>
#include
<dune/common/bigunsignedint.hh>
#include
<dune/common/bit
field
.hh>
#include
<dune/common/bit
setvector
.hh>
#include
<dune/common/configparser.hh>
#include
<dune/common/debugstream.hh>
#include
<dune/common/dlist.hh>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment