![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Unpartitioned element ("leaf") of a partitioned area. More...
#include "Partitions.h"
Public Types | |
| using | Base_t = PartitionWithData< Data > |
| Base class. More... | |
| using | Base_t = Partition< Data > |
| Base class. More... | |
| using | Partition_t = Partition< Data > |
| Base type of the partition. More... | |
| using | Data_t = typename Partition_t::Data_t |
| Type of contained data. More... | |
| using | Area_t = typename Partition_t::Area_t |
| Type of covered area. More... | |
| using | Subpartitions_t = std::vector< std::unique_ptr< Partition_t const >> |
| Type of list of subpartitions. It needs to preserve polymorphism. More... | |
| using | AreaRangeMember_t = AreaOwner::AreaRangeMember_t |
Public Member Functions | |
| virtual Data_t * | data () const override |
| Returns the datum directly stored (nullptr if none). More... | |
| virtual Data_t * | atPoint (double w, double d) const override |
Returns stored datum only if point is covered, nullptr otherwise. More... | |
| std::string | describe (std::string indent, std::string firstIndent) const |
| Returns a description of the partition. More... | |
| std::string | describe (std::string indent="") const |
| Returns a description of the partition. More... | |
| template<typename Pred > | |
| void | walk (Pred &&pred) const |
Applies pred to all partitions. More... | |
| std::size_t | nParts () const |
| Returns the number of subparts in the partition (0 if simple element). More... | |
| bool | contains (double w, double d) const |
| Returns whether the specified point is covered by this object. More... | |
| Area_t const & | area () const |
| Returns the covered area. More... | |
| template<typename Stream > | |
| void | dumpArea (Stream &&out) const |
| Output the owned area into an output stream. More... | |
Protected Member Functions | |
| virtual Subpartitions_t const & | parts () const |
| Returns a list of all subpartitions. More... | |
| std::string | describeArea (std::string indent, std::string firstIndent) const |
| Returns a description of the partition area. More... | |
Static Protected Member Functions | |
| template<typename Pred > | |
| static void | walk (Partition_t const *start, Pred &&pred) |
Applies pred to start partition first, and then to all subpartitions. More... | |
Static Protected Attributes | |
| static Subpartitions_t const | NoSubparts |
| Subpartitions (if any). More... | |
Unpartitioned element ("leaf") of a partitioned area.
Definition at line 290 of file Partitions.h.
|
inherited |
Type of covered area.
Definition at line 265 of file Partitions.h.
|
inherited |
Definition at line 137 of file Partitions.h.
| using geo::part::PartitionElement< Data >::Base_t = PartitionWithData<Data> |
Base class.
Definition at line 292 of file Partitions.h.
| using geo::part::PartitionWithData< Data >::Base_t = Partition<Data> |
Base class.
Definition at line 262 of file Partitions.h.
|
inherited |
Type of contained data.
Definition at line 264 of file Partitions.h.
|
inherited |
Base type of the partition.
Definition at line 263 of file Partitions.h.
|
inherited |
Type of list of subpartitions. It needs to preserve polymorphism.
Definition at line 180 of file Partitions.h.
|
inlineinherited |
Returns the covered area.
Definition at line 48 of file Partitions.h.
References geo::part::AreaOwner::myArea.
Referenced by geo::part::AreaOwner::contains(), geo::part::AreaOwner::dumpArea(), geo::part::details::RangeLowerBoundExtractor< Range >::operator()(), and geo::part::details::PartitionRangeLowerBoundExtractor< Range >::operator()().
|
inlineoverridevirtualinherited |
Returns stored datum only if point is covered, nullptr otherwise.
Implements geo::part::Partition< Data >.
Reimplemented in geo::part::PartitionContainer< Data >.
Definition at line 274 of file Partitions.h.
|
inlineinherited |
Returns whether the specified point is covered by this object.
Definition at line 45 of file Partitions.h.
References geo::part::AreaOwner::area(), and lar::util::simple_geo::Rectangle< Data >::contains().
|
inlineoverridevirtualinherited |
Returns the datum directly stored (nullptr if none).
Reimplemented from geo::part::Partition< Data >.
Definition at line 271 of file Partitions.h.
Referenced by geo::part::GridPartition< Data >::doDescribe().
|
inlineinherited |
Returns a description of the partition.
Definition at line 204 of file Partitions.h.
|
inlineinherited |
Returns a description of the partition.
Definition at line 210 of file Partitions.h.
References geo::part::Partition< Data >::describe(), and art::detail::indent().
Referenced by geo::part::Partition< Data >::describe().
|
inlineprotectedinherited |
Returns a description of the partition area.
Definition at line 551 of file Partitions.h.
References geo::part::AreaOwner::dumpArea().
Referenced by geo::part::Partition< Data >::doDescribe().
|
inlineinherited |
Output the owned area into an output stream.
Definition at line 52 of file Partitions.h.
References geo::part::AreaOwner::area().
Referenced by geo::part::PartitionBase::describeArea().
|
inlineinherited |
Returns the number of subparts in the partition (0 if simple element).
Definition at line 234 of file Partitions.h.
Referenced by geo::part::GridPartition< Data >::detectSeparators().
|
inlineprotectedvirtualinherited |
Returns a list of all subpartitions.
Reimplemented in geo::part::PartitionContainer< Data >.
Definition at line 240 of file Partitions.h.
Referenced by geo::part::Partition< Data >::walk().
|
inlineinherited |
Applies pred to all partitions.
| Pred | a predicate type |
| pred | the predicate to be applied |
The predicate pred is applied to this partition first, and then to all subpartitions in no specified order.
The predicate is any object behaving like a unary function of signature:
If the predicate returns a value, that value is ignored. The predicate is forwarded while "walking" through the partitions.
Definition at line 228 of file Partitions.h.
|
staticprotectedinherited |
Applies pred to start partition first, and then to all subpartitions.
Definition at line 715 of file Partitions.h.
References geo::part::Partition< Data >::parts().
|
staticprotectedinherited |
Subpartitions (if any).
Definition at line 237 of file Partitions.h.