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

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

#include <vclib/space/complex/sampler/sampler_concept.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 box in N-dimensional space.
Definition box.h:46
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_concept.h:42

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.