libpsynth 0.2.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable > Class Template Reference

#include <sample.hpp>

List of all members.

Public Types

typedef packed_sample_value
< NumBits > 
value_type
typedef const Derived reference
typedef value_type * pointer
typedef const value_type * const_pointer
typedef BitField bitfield_t
typedef value_type::integer_t integer_t

Public Member Functions

 BOOST_STATIC_CONSTANT (int, num_bits=NumBits)
 BOOST_STATIC_CONSTANT (bool, is_mutable=Mutable)
 packed_sample_reference_base (data_ptr_t data_ptr)
 packed_sample_reference_base (const packed_sample_reference_base &ref)
const Derived & operator= (integer_t v) const
const Derived & operator++ () const
const Derived & operator-- () const
Derived operator++ (int) const
Derived operator-- (int) const
template<typename Scalar2 >
const Derived & operator+= (Scalar2 v) const
template<typename Scalar2 >
const Derived & operator-= (Scalar2 v) const
template<typename Scalar2 >
const Derived & operator*= (Scalar2 v) const
template<typename Scalar2 >
const Derived & operator/= (Scalar2 v) const
 operator integer_t () const
data_ptr_t operator& () const

Static Public Member Functions

static value_type min_value ()
static value_type max_value ()
static value_type zero_value ()

Protected Types

typedef boost::mpl::if_c
< Mutable, void *, const void * >
::type 
data_ptr_t

Protected Member Functions

bitfield_t get_data () const
void set_data (const bitfield_t &val) const

Protected Attributes

data_ptr_t _data_ptr

Static Protected Attributes

static const integer_t max_val = (1 << NumBits) - 1

template<typename Derived, typename BitField, int NumBits, bool Mutable>
class psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >


Member Typedef Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef BitField psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::bitfield_t
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef const value_type* psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::const_pointer
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef boost::mpl::if_c<Mutable, void*, const void*>::type psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::data_ptr_t [protected]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef value_type::integer_t psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::integer_t
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef value_type* psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::pointer
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef const Derived psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::reference
template<typename Derived, typename BitField, int NumBits, bool Mutable>
typedef packed_sample_value<NumBits> psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::value_type

Constructor & Destructor Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::packed_sample_reference_base ( data_ptr_t  data_ptr) [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::packed_sample_reference_base ( const packed_sample_reference_base< Derived, BitField, NumBits, Mutable > &  ref) [inline]

Member Function Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::BOOST_STATIC_CONSTANT ( int  ,
num_bits  = NumBits 
)
template<typename Derived, typename BitField, int NumBits, bool Mutable>
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::BOOST_STATIC_CONSTANT ( bool  ,
is_mutable  = Mutable 
)
template<typename Derived, typename BitField, int NumBits, bool Mutable>
bitfield_t psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::get_data ( ) const [inline, protected]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
static value_type psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::max_value ( ) [inline, static]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
static value_type psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::min_value ( ) [inline, static]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator integer_t ( ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
data_ptr_t psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator& ( ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator*= ( Scalar2  v) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
Derived psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator++ ( int  ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator++ ( ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator+= ( Scalar2  v) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator-- ( ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
Derived psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator-- ( int  ) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator-= ( Scalar2  v) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
template<typename Scalar2 >
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator/= ( Scalar2  v) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const Derived& psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::operator= ( integer_t  v) const [inline]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
void psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::set_data ( const bitfield_t &  val) const [inline, protected]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
static value_type psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::zero_value ( ) [inline, static]

Member Data Documentation

template<typename Derived, typename BitField, int NumBits, bool Mutable>
data_ptr_t psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::_data_ptr [protected]
template<typename Derived, typename BitField, int NumBits, bool Mutable>
const integer_t psynth::sound::detail::packed_sample_reference_base< Derived, BitField, NumBits, Mutable >::max_val = (1 << NumBits) - 1 [static, protected]

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