28 template<
typename VolumeType,
typename BoundingFunctor>
90 void insert(
const VolumeType& volume)
93 ivolume.second = volume;
94 ivolume.first.first =
levels_[0].size();
95 ivolume.first.second =
levels_[0].size();
149 higher.push_back(
bound_(lower,i0,i1));
160 template<
typename MetricFunctor,
typename OtherVolumeType,
typename OtherFunctorType>
163 const double guard = -1.e99;
166 std::priority_queue<SearchState, std::vector<SearchState>, decltype(cmp)> open(cmp);
Definition: vectorbasedvolumetree.h:30
void compute_all_levels()
Definition: vectorbasedvolumetree.h:117
std::pair< std::pair< int, int >, VolumeType > IndexedVolumeType
Definition: vectorbasedvolumetree.h:32
std::vector< VolumeVector > levels_
Definition: vectorbasedvolumetree.h:37
int getOccupancyCount()
Definition: vectorbasedvolumetree.h:72
int branching_factor_
Definition: vectorbasedvolumetree.h:38
void setPreferredBranchingFactor(int f)
Definition: vectorbasedvolumetree.h:83
void insert(const VolumeType &volume)
Definition: vectorbasedvolumetree.h:90
void setLevelCount(int count)
Definition: vectorbasedvolumetree.h:137
std::vector< IndexedVolumeType > VolumeVector
Definition: vectorbasedvolumetree.h:33
VolumeVector & getLevel(int i)
Definition: vectorbasedvolumetree.h:60
const VolumeVector & getLevel(int i) const
Definition: vectorbasedvolumetree.h:65
BoundingFunctor bound_
Definition: vectorbasedvolumetree.h:36
const int getOccupancyCount() const
Definition: vectorbasedvolumetree.h:76
int getLevelCount() const
Definition: vectorbasedvolumetree.h:102
void recompute_levels()
Definition: vectorbasedvolumetree.h:124
bool levels_ok_
Definition: vectorbasedvolumetree.h:39
void remove_all_levels()
Definition: vectorbasedvolumetree.h:109
VectorBasedVolumeTree()
Definition: vectorbasedvolumetree.h:55
bool compute_min(const VectorBasedVolumeTree< OtherVolumeType, OtherFunctorType > &other, double cutoff, double &result_value, const MetricFunctor &f) const
Definition: vectorbasedvolumetree.h:161
@ right
Definition: indicator_hint.h:36
@ left
Definition: indicator_hint.h:35
T min(T a, T b, T c, T d)
Definition: adoremath.h:663
adoreMatrix< T, N, M > max(adoreMatrix< T, N, M > a, const adoreMatrix< T, N, M > &b)
Definition: adoremath.h:686
Definition: areaofeffectconverter.h:20
Definition: vectorbasedvolumetree.h:42
SearchPosition(int lvl, int i0, int i1)
Definition: vectorbasedvolumetree.h:44
int lvl_
Definition: vectorbasedvolumetree.h:43
int i0_
Definition: vectorbasedvolumetree.h:43
int i1_
Definition: vectorbasedvolumetree.h:43
Definition: vectorbasedvolumetree.h:47
SearchState(double value, SearchPosition first, SearchPosition second)
Definition: vectorbasedvolumetree.h:50
SearchPosition first_
Definition: vectorbasedvolumetree.h:48
SearchPosition second_
Definition: vectorbasedvolumetree.h:48
double value_
Definition: vectorbasedvolumetree.h:49