Visual Computing Library
Loading...
Searching...
No Matches
vcl::SamplerConcept Concept Reference

A concept for a container that stores Point samples. More...

#include <vclib/concepts/space/sampler.h>

Concept definition

template<typename T>
concept vcl::SamplerConcept = requires (T&& obj) {
typename RemoveRef<T>::PointType;
obj.samples();
{ obj.size() } -> std::same_as<std::size_t>;
obj.sample(uint());
obj.begin();
obj.end();
requires IsConst<T> || requires {
obj.clear();
obj.reserve(uint());
obj.resize(uint());
};
}
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The IsConst concept is satisfied if T satisfies one of the following conditions:
Definition const_correctness.h:43
A concept for a container that stores Point samples.
Definition sampler.h:43

Detailed Description

A concept for a container that stores Point samples.

A type satisfies this concept if it provides the following interface:

  • o.samples(): returns a container of samples in the sampler.
  • o.clear(): clears all previously contained samples.
  • o.reserve(uint()): reserves memory for the given number of samples.
  • o.resize(uint()): resizes the sampler to the given number of samples.
Template Parameters
TThe type to be tested for conformity to the SamplerConcept.