From: bangerth Date: Sat, 8 Dec 2012 19:54:35 +0000 (+0000) Subject: Add operator!=. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79c5e5de60c82ce16ec2e00ca773a5d58dbdbe69;p=dealii-svn.git Add operator!=. git-svn-id: https://svn.dealii.org/trunk@27782 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/fe/block_mask.h b/deal.II/include/deal.II/fe/block_mask.h index 1b98bafe74..e9616258d6 100644 --- a/deal.II/include/deal.II/fe/block_mask.h +++ b/deal.II/include/deal.II/fe/block_mask.h @@ -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 diff --git a/deal.II/include/deal.II/fe/component_mask.h b/deal.II/include/deal.II/fe/component_mask.h index 66996349fd..9512abe54f 100644 --- a/deal.II/include/deal.II/fe/component_mask.h +++ b/deal.II/include/deal.II/fe/component_mask.h @@ -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