Skip to content
Snippets Groups Projects
Commit a4993487 authored by Markus Blatt's avatar Markus Blatt
Browse files

Use more obvious modifiers and initializers.

[[Imported from SVN: r986]]
parent 5d275438
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,7 @@ namespace Dune
}
EdgeProperties::EdgeProperties()
: flags_(0)
: flags_()
{}
inline std::bitset<EdgeProperties::SIZE>::reference
......@@ -318,13 +318,14 @@ namespace Dune
inline void EdgeProperties::reset()
{
flags_=0;
flags_.reset();
}
inline void EdgeProperties::setInfluences()
{
// Set the INFLUENCE bit
flags_ |= (1<<INFLUENCE);
//flags_ |= (1<<INFLUENCE);
flags_.set(INFLUENCE);
}
inline bool EdgeProperties::influences() const
......@@ -336,13 +337,15 @@ namespace Dune
inline void EdgeProperties::setDepends()
{
// Set the first bit.
flags_ |= (1<<DEPEND);
//flags_ |= (1<<DEPEND);
flags_.set(DEPEND);
}
inline void EdgeProperties::resetDepends()
{
// reset the first bit.
flags_ &= ~(1<<DEPEND);
//flags_ &= ~(1<<DEPEND);
flags_.reset(DEPEND);
}
inline bool EdgeProperties::depends() const
......@@ -382,7 +385,7 @@ namespace Dune
}
inline VertexProperties::VertexProperties()
: flags_(0)
: flags_()
{}
......@@ -459,7 +462,7 @@ namespace Dune
*/
inline void VertexProperties::reset()
{
flags_=0;
flags_.reset();
}
/** @} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment