53 virtual bool inside(
const std::vector<double_t> &)
const = 0;
104 bool inside(
const std::vector<double_t> &pt)
const;
170 const double inf = std::numeric_limits<double>::infinity();
498 if ( not ( lower_left_ < upper_right_ ) )
500 "Upper right must be strictly to the right and above lower left.");
506 lower_left_(lower_left), upper_right_(upper_right)
529 "radius > 0 required.");
ConverseMask(const Mask< D > &m)
Construct the converse of the two given mask.
Definition: mask.h:417
virtual AbstractMask * union_mask(const AbstractMask &other) const =0
Create the union of this mask with another.
bool outside(const Box< D > &b) const
Definition: mask_impl.h:91
Mask combining two masks with a minus operation, the difference.
Definition: mask.h:371
virtual bool outside(const Box< D > &b) const
Definition: mask_impl.h:68
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:271
BallMask(Position< D > center, double_t radius)
Definition: mask.h:242
Mask oriented in the opposite direction.
Definition: mask.h:411
IntersectionMask(const IntersectionMask &m)
Copy constructor.
Definition: mask.h:307
const Name d("d")
Specific to Izhikevich 2003.
Definition: nest_names.h:83
bool inside(const Position< D > &p) const
Definition: mask_impl.h:253
Mask< D > * m_
Definition: mask.h:475
~IntersectionMask()
Definition: mask.h:311
virtual AbstractMask * minus_mask(const AbstractMask &other) const =0
Create the difference of this mask and another.
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:233
ConverseMask(const ConverseMask &m)
Copy constructor.
Definition: mask.h:422
Mask shifted by an anchor.
Definition: mask.h:446
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:198
Mask< D > * mask2_
Definition: mask.h:364
const Name spherical("spherical")
Definition: topology_names.h:86
bool inside(const Position< D > &p) const
Definition: mask_impl.h:79
~BoxMask()
Definition: mask.h:195
UnionMask(const UnionMask &m)
Copy constructor.
Definition: mask.h:346
DictionaryDatum get_dict() const
Definition: mask_impl.h:383
const Name lower_left("lower_left")
Definition: topology_names.h:66
bool outside(const Box< D > &) const
Definition: mask.h:165
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
Mask which covers all of space.
Definition: mask.h:141
Position< D > anchor_
Definition: mask.h:476
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:101
virtual Mask * clone() const =0
Clone method.
bool inside(const Position< D > &p) const
Definition: mask_impl.h:291
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:187
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:377
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:315
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:107
Mask defining a circular or spherical region.
Definition: mask.h:235
virtual bool inside(const Position< D > &) const =0
virtual bool inside(const std::vector< double_t > &) const =0
virtual DictionaryDatum get_dict() const
Definition: mask.h:58
bool inside(const Position< D > &p) const
Definition: mask_impl.h:321
Position< D > lower_left_
Definition: mask.h:227
Position< D > upper_right_
Definition: mask.h:228
~BallMask()
Definition: mask.h:253
Mask defining a box region.
Definition: mask.h:182
const Name radius("radius")
Definition: topology_names.h:68
Abstract base class for masks with given dimension.
Definition: mask.h:90
bool inside(const Position< D > &p) const
Definition: mask_impl.h:352
const Name anchor("anchor")
Definition: topology_names.h:50
bool outside(const Box< D > &b) const
Definition: mask_impl.h:174
const Name box("box")
Definition: topology_names.h:88
bool inside(const Box< D > &) const
Definition: mask.h:159
const Name center("center")
Definition: topology_names.h:48
DifferenceMask(const Mask< D > &m1, const Mask< D > &m2)
Construct the difference of the two given masks.
Definition: mask.h:378
DifferenceMask(const DifferenceMask &m)
Copy constructor.
Definition: mask.h:385
const Name other("other")
Node type.
Definition: nest_names.h:216
Base class for all Kernel exceptions.
Definition: exceptions.h:54
Mask< D > * mask2_
Definition: mask.h:403
AnchoredMask(const Mask< D > &m, Position< D > anchor)
Construct the converse of the two given mask.
Definition: mask.h:452
A box is defined by the lower left corner (minimum coordinates) and the upper right corner (maximum c...
Definition: position.h:289
const Name rectangular("rectangular")
Definition: topology_names.h:87
AbstractMask * union_mask(const AbstractMask &other) const
Create the union of this mask with another.
Definition: mask_impl.h:42
UnionMask(const Mask< D > &m1, const Mask< D > &m2)
Construct the union of the two given masks.
Definition: mask.h:339
Position< D > center_
Definition: mask.h:285
virtual AbstractMask * intersect_mask(const AbstractMask &other) const =0
Create the intersection of this mask with another.
Mask< D > * mask1_
Definition: mask.h:325
bool outside(const Box< D > &b) const
Definition: mask_impl.h:333
Mask< D > * mask2_
Definition: mask.h:325
bool outside(const Box< D > &b) const
Definition: mask_impl.h:227
virtual ~AbstractMask()
Virtual destructor.
Definition: mask.h:47
Mask< D > * m_
Definition: mask.h:438
~Mask()
Definition: mask.h:93
BoxMask(const DictionaryDatum &)
Parameters that should be in the dictionary: lower_left - Position of lower left corner (array of dou...
Definition: mask.h:494
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition: exceptions.h:420
bool outside(const Box< D > &b) const
Definition: mask_impl.h:265
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:339
Mask< D > * mask1_
Definition: mask.h:364
double double_t
Double precision floating point numbers.
Definition: nest.h:93
bool outside(const Box< D > &b) const
Definition: mask_impl.h:364
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:346
AbstractMask * minus_mask(const AbstractMask &other) const
Create the difference of this mask and another.
Definition: mask_impl.h:52
const Name b("b")
Specific to Brette & Gerstner 2005 (aeif_cond-*)
Definition: nest_names.h:58
AbstractMask * intersect_mask(const AbstractMask &other) const
Create the intersection of this mask with another.
Definition: mask_impl.h:32
AnchoredMask(const AnchoredMask &m)
Copy constructor.
Definition: mask.h:457
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask.h:168
IntersectionMask(const Mask< D > &m1, const Mask< D > &m2)
Construct the intersection of the two given masks.
Definition: mask.h:300
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:285
Mask< D > * mask1_
Definition: mask.h:403
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:370
Mask combining two masks with a Boolean AND, the intersection.
Definition: mask.h:293
Default types used by the NEST kernel.
~UnionMask()
Definition: mask.h:350
bool outside(const Box< D > &b) const
Definition: mask_impl.h:303
~ConverseMask()
Definition: mask.h:424
Mask combining two masks with a Boolean OR, the sum.
Definition: mask.h:332
virtual Box< D > get_bbox() const =0
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Abstract base class for masks with unspecified dimension.
Definition: mask.h:41
bool inside(const Position< D > &p) const
Definition: mask_impl.h:215
Mask< D > * clone() const
Clone method.
Definition: mask_impl.h:247
DictionaryDatum get_dict() const
Definition: mask_impl.h:204
bool inside(const Position< D > &) const
Definition: mask.h:153
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218
~AllMask()
Definition: mask.h:145
lockPTRDatum< AbstractMask,&TopologyModule::MaskType > MaskDatum
Definition: mask.h:84
const Name circular("circular")
Definition: topology_names.h:85
const Name upper_right("upper_right")
Definition: topology_names.h:67
~AnchoredMask()
Definition: mask.h:459
Mask< D > * clone() const
Clone method.
Definition: mask.h:174
bool inside(const Position< D > &p) const
Definition: mask_impl.h:124
Box< D > get_bbox() const
The whole mask is inside (i.e., false everywhere outside) the bounding box.
Definition: mask_impl.h:309
~DifferenceMask()
Definition: mask.h:389
DictionaryDatum get_dict() const
Definition: mask_impl.h:113
double_t radius_
Definition: mask.h:286