libpsynth 0.2.1
psynth::sound::sample_traits< T > Class Template Reference

Traits for samples. More...

#include <sample.hpp>

Inheritance diagram for psynth::sound::sample_traits< T >:
Inheritance graph
[legend]

Detailed Description

template<typename T>
class psynth::sound::sample_traits< T >

Traits for samples.

sample_traits

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.


The documentation for this class was generated from the following file: