Ponca  cfb0fcc680f97b3ab7288990161ce80053655869
Point Cloud Analysis library
Loading...
Searching...
No Matches
evaluationScheme.h
1/*
2 This Source Code Form is subject to the terms of the Mozilla Public
3 License, v. 2.0. If a copy of the MPL was not distributed with this
4 file, You can obtain one at http://mozilla.org/MPL/2.0/.
5*/
6
7#pragma once
8
9#include "defines.h"
10#include "enums.h"
11
12namespace Ponca
13{
20 {
21 public:
22#ifdef PONCA_CPU_ARCH
30 template <typename ComputeObject, typename Container>
32 {
33 return co.compute(std::begin(c), std::end(c));
34 }
35#endif
36
43 template <typename ComputeObject, typename IteratorBegin, typename IteratorEnd>
44 PONCA_MULTIARCH inline FIT_RESULT compute(ComputeObject& co, const IteratorBegin& begin,
45 const IteratorEnd& end) const
46 {
47 return co.compute(begin, end);
48 };
50
57 template <typename ComputeObject, typename IndexRange, typename PointContainer>
59 const PointContainer& points) const
60 {
61 return co.computeWithIds(ids, points);
62 };
63
64 private:
65 };
66} // namespace Ponca
Aggregator class used to declare specialized structures using CRTP.
Definition basket.h:257
This Source Code Form is subject to the terms of the Mozilla Public License, v.
FIT_RESULT
Enum corresponding to the state of a fitting method (and what the finalize function returns)
Definition enums.h:15
FIT_RESULT computeWithIds(IndexRange ids, const PointContainer &points)
Convenience function to iterate over a subset of samples in a PointContainer Add neighbors stored in ...
Definition basket.h:179
FIT_RESULT compute(const IteratorBegin &begin, const IteratorEnd &end)
Convenience function for STL-like iterators Add neighbors stored in a container using STL-like iterat...
Definition basket.h:153
ComputeObject is a virtual object that represents an algorithm which can be used with the compute fun...
Definition compute.h:24
SingleEvaluationScheme.
FIT_RESULT compute(ComputeObject &co, const Container &c) const
Convenience function for STL-like container.
FIT_RESULT compute(ComputeObject &co, const IteratorBegin &begin, const IteratorEnd &end) const
Convenience function for STL-like iterators.
FIT_RESULT computeWithIds(ComputeObject &co, IndexRange ids, const PointContainer &points) const
[SingleEvaluationScheme Compute Definition]