libpsynth 0.2.1
Public Types | Public Member Functions
psynth::sound::detail::nth_sample_deref_fn< SrcP > Struct Template Reference

Function object that returns a grayscale reference of the N-th sample of a given reference. More...

#include <buffer_range_factory.hpp>

List of all members.

Public Types

typedef nth_sample_deref_fn
< const_ref_t > 
const_type
typedef frame_value_type
< sample_t, mono_layout >
::type 
value_type
typedef frame_reference_type
< sample_t, mono_layout, false,
false >::type 
const_reference
typedef SrcP argument_type
typedef boost::mpl::if_c
< is_mutable, ref_t,
value_type >::type 
reference
typedef reference result_type

Public Member Functions

 BOOST_STATIC_CONSTANT (bool, is_mutable=frame_is_reference< SrcP >::value &&frame_reference_is_mutable< SrcP >::value)
 nth_sample_deref_fn (int n=0)
template<typename P >
 nth_sample_deref_fn (const nth_sample_deref_fn< P > &d)
result_type operator() (argument_type src_f) const

Detailed Description

template<typename SrcP>
struct psynth::sound::detail::nth_sample_deref_fn< SrcP >

Function object that returns a grayscale reference of the N-th sample of a given reference.

Models: FrameDereferenceAdaptorConcept.

If the input is a frame value or constant reference, the function object is immutable. Otherwise it is mutable (and returns non-const reference to the n-th sample)


Member Typedef Documentation

template<typename SrcP>
typedef SrcP psynth::sound::detail::nth_sample_deref_fn< SrcP >::argument_type
template<typename SrcP>
typedef frame_reference_type< sample_t,mono_layout,false,false>::type psynth::sound::detail::nth_sample_deref_fn< SrcP >::const_reference
template<typename SrcP>
typedef nth_sample_deref_fn<const_ref_t> psynth::sound::detail::nth_sample_deref_fn< SrcP >::const_type
template<typename SrcP>
typedef boost::mpl::if_c< is_mutable, ref_t, value_type>::type psynth::sound::detail::nth_sample_deref_fn< SrcP >::reference
template<typename SrcP>
typedef reference psynth::sound::detail::nth_sample_deref_fn< SrcP >::result_type
template<typename SrcP>
typedef frame_value_type< sample_t, mono_layout>::type psynth::sound::detail::nth_sample_deref_fn< SrcP >::value_type

Constructor & Destructor Documentation

template<typename SrcP>
psynth::sound::detail::nth_sample_deref_fn< SrcP >::nth_sample_deref_fn ( int  n = 0) [inline]
template<typename SrcP>
template<typename P >
psynth::sound::detail::nth_sample_deref_fn< SrcP >::nth_sample_deref_fn ( const nth_sample_deref_fn< P > &  d) [inline]

Member Function Documentation

template<typename SrcP>
psynth::sound::detail::nth_sample_deref_fn< SrcP >::BOOST_STATIC_CONSTANT ( bool  ,
is_mutable  = frame_is_reference< SrcP >::value &&frame_reference_is_mutable< SrcP >::value 
)
template<typename SrcP>
result_type psynth::sound::detail::nth_sample_deref_fn< SrcP >::operator() ( argument_type  src_f) const [inline]

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