]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add operator!=.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 8 Dec 2012 19:54:35 +0000 (19:54 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 8 Dec 2012 19:54:35 +0000 (19:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@27782 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/fe/block_mask.h
deal.II/include/deal.II/fe/component_mask.h

index 1b98bafe7494ac9b3e644b2476d2be8998701c6a..e9616258d6e65e6dc02414346fcc6492339bc15b 100644 (file)
@@ -198,6 +198,11 @@ public:
    */
   bool operator== (const BlockMask &mask) const;
 
+  /**
+   * Return whether this object and the argument are not identical.
+   */
+  bool operator!= (const BlockMask &mask) const;
+
   /**
    * Determine an estimate for the
    * memory consumption (in bytes)
@@ -408,6 +413,14 @@ BlockMask::operator== (const BlockMask &mask) const
 }
 
 
+inline
+bool
+BlockMask::operator!= (const BlockMask &mask) const
+{
+  return block_mask != mask.block_mask;
+}
+
+
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
index 66996349fdb670b5784451fd272dcc52056b6fc6..9512abe54fb9d3f27c6829583724a0e002067020 100644 (file)
@@ -191,6 +191,11 @@ public:
    */
   bool operator== (const ComponentMask &mask) const;
 
+  /**
+   * Return whether this object and the argument are not identical.
+   */
+  bool operator!= (const ComponentMask &mask) const;
+
   /**
    * Determine an estimate for the
    * memory consumption (in bytes)
@@ -401,6 +406,15 @@ ComponentMask::operator== (const ComponentMask &mask) const
 }
 
 
+inline
+bool
+ComponentMask::operator!= (const ComponentMask &mask) const
+{
+  return component_mask != mask.component_mask;
+}
+
+
+
 DEAL_II_NAMESPACE_CLOSE
 
 #endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.