libpsynth 0.2.1
Public Types | Public Member Functions | Friends
psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true > Class Template Reference

A mutable subbyte sample reference whose bit offset is fixed at compile time. More...

#include <sample.hpp>

Inheritance diagram for psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >:
Inheritance graph
[legend]
Collaboration diagram for psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef const
packed_sample_reference
< BitField, FirstBit, NumBits,
false > 
const_reference
typedef const
packed_sample_reference
< BitField, FirstBit, NumBits,
true > 
mutable_reference
typedef parent_t::integer_t integer_t

Public Member Functions

 packed_sample_reference (void *data_ptr)
 packed_sample_reference (const packed_sample_reference &ref)
const packed_sample_reference & operator= (integer_t value) const
const packed_sample_reference & operator= (const mutable_reference &ref) const
const packed_sample_reference & operator= (const const_reference &ref) const
template<bool Mutable1>
const packed_sample_reference & operator= (const packed_dynamic_sample_reference< BitField, NumBits, Mutable1 > &ref) const
unsigned first_bit () const
integer_t get () const
void set_unsafe (integer_t value) const

Friends

class packed_sample_reference< BitField, FirstBit, NumBits, false >

Detailed Description

template<typename BitField, int FirstBit, int NumBits>
class psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >

A mutable subbyte sample reference whose bit offset is fixed at compile time.

Models SampleConcept


Member Typedef Documentation

template<typename BitField , int FirstBit, int NumBits>
typedef const packed_sample_reference<BitField,FirstBit,NumBits,false> psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::const_reference
template<typename BitField , int FirstBit, int NumBits>
typedef parent_t::integer_t psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::integer_t
template<typename BitField , int FirstBit, int NumBits>
typedef const packed_sample_reference<BitField,FirstBit,NumBits,true> psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::mutable_reference

Constructor & Destructor Documentation

template<typename BitField , int FirstBit, int NumBits>
psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::packed_sample_reference ( void *  data_ptr) [inline, explicit]
template<typename BitField , int FirstBit, int NumBits>
psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::packed_sample_reference ( const packed_sample_reference< BitField, FirstBit, NumBits, true > &  ref) [inline]

Member Function Documentation

template<typename BitField , int FirstBit, int NumBits>
unsigned psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::first_bit ( ) const [inline]
template<typename BitField , int FirstBit, int NumBits>
integer_t psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::get ( ) const [inline]
template<typename BitField , int FirstBit, int NumBits>
const packed_sample_reference& psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::operator= ( integer_t  value) const [inline]
template<typename BitField , int FirstBit, int NumBits>
const packed_sample_reference& psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::operator= ( const mutable_reference ref) const [inline]
template<typename BitField , int FirstBit, int NumBits>
template<bool Mutable1>
const packed_sample_reference& psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::operator= ( const packed_dynamic_sample_reference< BitField, NumBits, Mutable1 > &  ref) const [inline]
template<typename BitField , int FirstBit, int NumBits>
const packed_sample_reference& psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::operator= ( const const_reference ref) const [inline]
template<typename BitField , int FirstBit, int NumBits>
void psynth::sound::packed_sample_reference< BitField, FirstBit, NumBits, true >::set_unsafe ( integer_t  value) const [inline]

Friends And Related Function Documentation

template<typename BitField , int FirstBit, int NumBits>
friend class packed_sample_reference< BitField, FirstBit, NumBits, false > [friend]

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