NEST main@f146f75
Loading...
Searching...
No Matches
nest::UnionMask< D > Class Template Reference

Mask combining two masks with a Boolean OR, the sum. More...

#include <mask.h>

Inheritance diagram for nest::UnionMask< D >:
[legend]
Collaboration diagram for nest::UnionMask< D >:
[legend]

Public Member Functions

 UnionMask (const Mask< D > &m1, const Mask< D > &m2)
 Construct the union of the two given masks.
 UnionMask (const UnionMask &m)
 ~UnionMask ()
bool inside (const Position< D > &p) const
bool inside (const Box< D > &b) const
bool outside (const Box< D > &b) const
Box< D > get_bbox () const
 The whole mask is inside (i.e., false everywhere outside) the bounding box.
Mask< D > * clone () const
 Clone method.
Public Member Functions inherited from nest::Mask< D >
 ~Mask () override
bool inside (const std::vector< double > &pt) const override
AbstractMask * intersect_mask (const AbstractMask &other) const override
 Create the intersection of this mask with another.
AbstractMask * union_mask (const AbstractMask &other) const override
 Create the union of this mask with another.
AbstractMask * minus_mask (const AbstractMask &other) const override
 Create the difference of this mask and another.
Public Member Functions inherited from nest::AbstractMask
virtual ~AbstractMask ()
virtual Dictionary get_dict () const

Protected Attributes

Mask< D > * mask1_
Mask< D > * mask2_

Detailed Description

template<int D>
class nest::UnionMask< D >

Mask combining two masks with a Boolean OR, the sum.

Constructor & Destructor Documentation

◆ UnionMask() [1/2]

template<int D>
nest::UnionMask< D >::UnionMask ( const Mask< D > & m1,
const Mask< D > & m2 )
inline

Construct the union of the two given masks.

Copies are made of the supplied Mask objects.

References clone(), mask1_, and mask2_.

Referenced by clone(), and UnionMask().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnionMask() [2/2]

template<int D>
nest::UnionMask< D >::UnionMask ( const UnionMask< D > & m)
inline

References clone(), mask1_, mask2_, and UnionMask().

Here is the call graph for this function:

◆ ~UnionMask()

template<int D>
nest::UnionMask< D >::~UnionMask ( )
inline

References mask1_, and mask2_.

Member Function Documentation

◆ clone()

template<int D>
Mask< D > * nest::UnionMask< D >::clone ( ) const
virtual

Clone method.

Returns
dynamically allocated copy of mask object

Implements nest::Mask< D >.

References UnionMask().

Referenced by UnionMask(), and UnionMask().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_bbox()

template<int D>
Box< D > nest::UnionMask< D >::get_bbox ( ) const
virtual

The whole mask is inside (i.e., false everywhere outside) the bounding box.

Returns
bounding box

Implements nest::Mask< D >.

References nest::Box< D >::lower_left, mask1_, mask2_, and nest::Box< D >::upper_right.

◆ inside() [1/2]

template<int D>
bool nest::UnionMask< D >::inside ( const Box< D > & ) const
virtual
Returns
true if the whole box is inside the mask.
Note
a return value of false is not a guarantee that the whole box is not inside the mask.

Implements nest::Mask< D >.

References mask1_, and mask2_.

◆ inside() [2/2]

template<int D>
bool nest::UnionMask< D >::inside ( const Position< D > & ) const
virtual
Returns
true if point is inside mask.

Implements nest::Mask< D >.

References mask1_, and mask2_.

◆ outside()

template<int D>
bool nest::UnionMask< D >::outside ( const Box< D > & b) const
virtual
Returns
true if the whole box is outside the mask.
Note
a return value of false is not a guarantee that the whole box is not outside the mask.

Reimplemented from nest::Mask< D >.

References mask1_, and mask2_.

Member Data Documentation

◆ mask1_

template<int D>
Mask< D >* nest::UnionMask< D >::mask1_
protected

◆ mask2_

template<int D>
Mask< D > * nest::UnionMask< D >::mask2_
protected

The documentation for this class was generated from the following files: