libpsynth 0.2.1
Public Member Functions | Public Attributes
psynth::sound::SampleConvertibleConcept< SrcSample, DstSample > Struct Template Reference

A sample is convertible to another one if the sample_convert algorithm is defined for the two samples. More...

#include <concept.hpp>

List of all members.

Public Member Functions

void constraints ()

Public Attributes

SrcSample src
DstSample dst

Detailed Description

template<typename SrcSample, typename DstSample>
struct psynth::sound::SampleConvertibleConcept< SrcSample, DstSample >

A sample is convertible to another one if the sample_convert algorithm is defined for the two samples.

Convertibility is non-symmetric and implies that one sample can be converted to another. Conversion is explicit and often lossy operation.

concept SampleConvertibleConcept<SampleConcept SrcSample,
     SampleValueConcept DstSample> {
    DstSample sample_convert(const SrcSample&);
};

Member Function Documentation

template<typename SrcSample , typename DstSample >
void psynth::sound::SampleConvertibleConcept< SrcSample, DstSample >::constraints ( ) [inline]

Member Data Documentation

template<typename SrcSample , typename DstSample >
DstSample psynth::sound::SampleConvertibleConcept< SrcSample, DstSample >::dst
template<typename SrcSample , typename DstSample >
SrcSample psynth::sound::SampleConvertibleConcept< SrcSample, DstSample >::src

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