libpsynth 0.2.1
Public Types | Public Member Functions
psynth::sound::memunit_step_fn< Iterator > Struct Template Reference

function object that returns the memory unit distance between two iterators and advances a given iterator a given number of mem units (bytes or bits) More...

#include <step_iterator.hpp>

List of all members.

Public Types

typedef std::ptrdiff_t difference_type

Public Member Functions

 memunit_step_fn (difference_type step=memunit_step(Iterator()))
difference_type difference (const Iterator &it1, const Iterator &it2) const
void advance (Iterator &it, difference_type d) const
difference_type step () const
void set_step (std::ptrdiff_t step)

Detailed Description

template<typename Iterator>
struct psynth::sound::memunit_step_fn< Iterator >

function object that returns the memory unit distance between two iterators and advances a given iterator a given number of mem units (bytes or bits)


Member Typedef Documentation

template<typename Iterator>
typedef std::ptrdiff_t psynth::sound::memunit_step_fn< Iterator >::difference_type

Constructor & Destructor Documentation

template<typename Iterator>
psynth::sound::memunit_step_fn< Iterator >::memunit_step_fn ( difference_type  step = memunit_step (Iterator())) [inline]

Member Function Documentation

template<typename Iterator>
void psynth::sound::memunit_step_fn< Iterator >::advance ( Iterator &  it,
difference_type  d 
) const [inline]
template<typename Iterator>
difference_type psynth::sound::memunit_step_fn< Iterator >::difference ( const Iterator &  it1,
const Iterator &  it2 
) const [inline]
template<typename Iterator>
void psynth::sound::memunit_step_fn< Iterator >::set_step ( std::ptrdiff_t  step) [inline]
template<typename Iterator>
difference_type psynth::sound::memunit_step_fn< Iterator >::step ( ) const [inline]

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