|
libpsynth 0.2.1
|
Traits for samples. More...
#include <sample.hpp>

Traits for samples.
Contains the following members:
template <typename Sample> struct sample_traits { typedef ... value_type; typedef ... reference; typedef ... pointer; typedef ... const_reference; typedef ... const_pointer; static const bool is_mutable; static value_type min_value(); static value_type max_value(); };
defines properties of samples, such as their range and associated types
The sample traits must be defined for every model of SampleConcept Default traits are provided. For built-in types the default traits use built-in pointer and reference and the sample range is the physical range of the type. For classes, the default traits forward the associated types and range to the class.
1.7.4