libpsynth 0.2.1
Classes | Functions
detail::homogeneous_channel_base

A homogeneous channel base holding one channel element. More...

Classes

struct  psynth::sound::detail::homogeneous_channel_base< Element, Layout, 1 >
 A homogeneous channel base holding one channel element. More...
struct  psynth::sound::detail::homogeneous_channel_base< Element, Layout, 2 >
 A homogeneous channel base holding two channel elements. More...
struct  psynth::sound::detail::homogeneous_channel_base< Element, Layout, 3 >
 A homogeneous channel base holding three channel elements. More...
struct  psynth::sound::detail::homogeneous_channel_base< Element, Layout, 4 >
 A homogeneous channel base holding four channel elements. More...
struct  psynth::sound::detail::homogeneous_channel_base< Element, Layout, 5 >
 A homogeneous channel base holding five channel elements. More...

Functions

template<int K, typename E , typename L , int N>
boost::add_reference< E >::type psynth::sound::at_c (detail::homogeneous_channel_base< E, L, N > &p)
 Provides mutable access to the K-th element, in physical order.
template<int K, typename E , typename L , int N>
boost::add_reference< typename
boost::add_const< E >::type >
::type 
psynth::sound::at_c (const detail::homogeneous_channel_base< E, L, N > &p)
 TODO: Check why this results into ambiguous.

Detailed Description

A homogeneous channel base holding one channel element.

Models HomogeneousChannelBaseConcept or HomogeneousChannelBaseValueConcept

If the element type models Regular, this class models HomogeneousChannelBaseValueConcept.


Function Documentation

template<int K, typename E , typename L , int N>
boost::add_reference< E >::type psynth::sound::at_c ( detail::homogeneous_channel_base< E, L, N > &  p) [inline]

Provides mutable access to the K-th element, in physical order.

template<int K, typename E , typename L , int N>
boost::add_reference< typename boost::add_const< E >::type >::type psynth::sound::at_c ( const detail::homogeneous_channel_base< E, L, N > &  p) [inline]

TODO: Check why this results into ambiguous.

Provides constant access to the K-th element, in physical order