Public Types | Public Member Functions | Private Member Functions | List of all members
geo::part::WidthPartition< Data > Class Template Reference

Partition of area along the width dimension. More...

#include <Partitions.h>

Inheritance diagram for geo::part::WidthPartition< Data >:
geo::part::PartitionSortedByRange< Data,&PartitionBase::Area_t::width >

Public Types

using Base_t = PartitionSortedByRange< Data,&PartitionBase::Area_t::width >
 Base class. More...
 
using Base_t = SortedPartition< Data, details::PartitionSorterByAreaRangeLower< Range >>
 Base class. More...
 
using Base_t = PartitionContainer< Data >
 Base class. More...
 
- Public Types inherited from geo::part::PartitionSortedByRange< Data,&PartitionBase::Area_t::width >
using Base_t = SortedPartition< Data, details::PartitionSorterByAreaRangeLower< Range >>
 Base class. More...
 
using Base_t = PartitionContainer< Data >
 Base class. More...
 

Public Member Functions

virtual Base_t::Partition_t const * findPart (double w, double) const override
 Returns the only partition which could contain the specified depth. More...
 

Private Member Functions

virtual std::string describeIntro () const override
 

Detailed Description

template<typename Data>
class geo::part::WidthPartition< Data >

Partition of area along the width dimension.

Definition at line 489 of file Partitions.h.

Member Typedef Documentation

Base class.

Definition at line 495 of file Partitions.h.

template<typename Data >
using geo::part::SortedPartition< Data, Sorter >::Base_t = PartitionContainer<Data>

Base class.

Definition at line 399 of file Partitions.h.

Base class.

Definition at line 455 of file Partitions.h.

Member Function Documentation

template<typename Data >
std::string geo::part::WidthPartition< Data >::describeIntro ( ) const
overrideprivatevirtual

Definition at line 922 of file Partitions.h.

922  {
923  std::ostringstream sstr;
924  sstr
925  << Base_t::size() << " partitions along width covering " << Base_t::area();
926  return sstr.str();
927 } // geo::part::WidthPartition<Data>::describeIntro()
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
template<typename Data >
virtual Base_t::Partition_t const* geo::part::WidthPartition< Data >::findPart ( double  w,
double   
) const
inlineoverridevirtual

Returns the only partition which could contain the specified depth.

Definition at line 501 of file Partitions.h.

502  { return Base_t::findPartWithKey(w); }

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