Public Types | Public Member Functions | Protected Member Functions | List of all members
geo::part::PartitionBase Class Reference

Non-template definitions and data for Partition class hierarchy. More...

#include <Partitions.h>

Inheritance diagram for geo::part::PartitionBase:
geo::part::AreaOwner geo::part::Partition< Data > geo::part::PartitionWithData< Data > geo::part::PartitionContainer< Data > geo::part::PartitionElement< Data > geo::part::GridPartition< Data > geo::part::SortedPartition< Data, Sorter >

Public Types

using Area_t = AreaOwner::Area_t
 
using AreaRangeMember_t = AreaOwner::AreaRangeMember_t
 
- Public Types inherited from geo::part::AreaOwner
using Area_t = lar::util::simple_geo::Rectangle< double >
 Type of area covered by the partition. More...
 
using AreaRangeMember_t = Area_t::Range_t(Area_t::*)
 Type of pointer to Area_t data member of type Range_t. More...
 

Public Member Functions

 PartitionBase (Area_t const &area)
 Constructor: sets the covered area and no subpartitions. More...
 
- Public Member Functions inherited from geo::part::AreaOwner
 AreaOwner (Area_t const &area)
 Constructor: sets the covered area and no subpartitions. 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

std::string describeArea (std::string indent, std::string firstIndent) const
 Returns a description of the partition area. More...
 

Detailed Description

Non-template definitions and data for Partition class hierarchy.

The partition base class provides a common non-templated ground for all Partition hierarchies. The class defines an area that the partition cover, as a rectangle. The dimensions of this rectangle, called "width" and "depth", don't have to match any axis from any 3D coordinate system.

Definition at line 142 of file Partitions.h.

Member Typedef Documentation

Definition at line 146 of file Partitions.h.

Definition at line 147 of file Partitions.h.

Constructor & Destructor Documentation

geo::part::PartitionBase::PartitionBase ( Area_t const &  area)
inline

Constructor: sets the covered area and no subpartitions.

Definition at line 150 of file Partitions.h.

150 : AreaOwner(area) {}
AreaOwner(Area_t const &area)
Constructor: sets the covered area and no subpartitions.
Definition: Partitions.h:49
Area_t const & area() const
Returns the covered area.
Definition: Partitions.h:56

Member Function Documentation

std::string geo::part::PartitionBase::describeArea ( std::string  indent,
std::string  firstIndent 
) const
inlineprotected

Returns a description of the partition area.

Definition at line 606 of file Partitions.h.

607 {
608  std::ostringstream sstr;
609  sstr << firstIndent << "partition covers ";
610  dumpArea(sstr);
611  return sstr.str();
612 } // geo::part::PartitionBase::describeArea()
void dumpArea(Stream &&out) const
Output the owned area into an output stream.
Definition: Partitions.h:60

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