ardour
Public Types | Public Member Functions | Private Attributes | List of all members
ARDOUR::ChanMapping Class Reference

#include <chan_mapping.h>

Public Types

typedef std::map< uint32_t,
uint32_t > 
TypeMapping
 
typedef std::map< DataType,
TypeMapping
Mappings
 

Public Member Functions

 ChanMapping ()
 
 ChanMapping (ARDOUR::ChanCount identity)
 
uint32_t get (DataType t, uint32_t from, bool *valid)
 
void set (DataType t, uint32_t from, uint32_t to)
 
void offset_from (DataType t, int32_t delta)
 
void offset_to (DataType t, int32_t delta)
 
Mappings mappings ()
 
const Mappings mappings () const
 

Private Attributes

Mappings _mappings
 

Detailed Description

A mapping from one set of channels to another (e.g. how to 'connect' two BufferSets).

Definition at line 37 of file chan_mapping.h.

Member Typedef Documentation

Definition at line 48 of file chan_mapping.h.

typedef std::map<uint32_t, uint32_t> ARDOUR::ChanMapping::TypeMapping

Definition at line 47 of file chan_mapping.h.

Constructor & Destructor Documentation

ARDOUR::ChanMapping::ChanMapping ( )
inline

Definition at line 39 of file chan_mapping.h.

ARDOUR::ChanMapping::ChanMapping ( ARDOUR::ChanCount  identity)

Definition at line 30 of file chan_mapping.cc.

Member Function Documentation

uint32_t ARDOUR::ChanMapping::get ( DataType  t,
uint32_t  from,
bool *  valid 
)

Definition at line 44 of file chan_mapping.cc.

Mappings ARDOUR::ChanMapping::mappings ( )
inline

Definition at line 50 of file chan_mapping.h.

const Mappings ARDOUR::ChanMapping::mappings ( ) const
inline

Definition at line 51 of file chan_mapping.h.

void ARDOUR::ChanMapping::offset_from ( DataType  t,
int32_t  delta 
)

Offset the 'from' field of every mapping for type t by delta

Definition at line 73 of file chan_mapping.cc.

void ARDOUR::ChanMapping::offset_to ( DataType  t,
int32_t  delta 
)

Offset the 'to' field of every mapping for type t by delta

Definition at line 87 of file chan_mapping.cc.

void ARDOUR::ChanMapping::set ( DataType  t,
uint32_t  from,
uint32_t  to 
)

Definition at line 61 of file chan_mapping.cc.

Member Data Documentation

Mappings ARDOUR::ChanMapping::_mappings
private

Definition at line 54 of file chan_mapping.h.


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