ardour
Public Member Functions | List of all members
Evoral::IdentityConverter< A, B > Class Template Reference

#include <TimeConverter.hpp>

Inheritance diagram for Evoral::IdentityConverter< A, B >:
Evoral::TimeConverter< A, B >

Public Member Functions

 IdentityConverter ()
 
to (A a) const
 
from (B b) const
 
- Public Member Functions inherited from Evoral::TimeConverter< A, B >
 TimeConverter ()
 
 TimeConverter (B ob)
 
virtual ~TimeConverter ()
 
origin_b () const
 
void set_origin_b (B o)
 

Additional Inherited Members

- Protected Attributes inherited from Evoral::TimeConverter< A, B >
_origin_b
 

Detailed Description

template<typename A, typename B>
class Evoral::IdentityConverter< A, B >

A stub TimeConverter that simple statically casts between types. _origin_b has no bearing here, as there is no time conversion going on.

Definition at line 68 of file TimeConverter.hpp.

Constructor & Destructor Documentation

template<typename A , typename B >
Evoral::IdentityConverter< A, B >::IdentityConverter ( )
inline

Definition at line 70 of file TimeConverter.hpp.

Member Function Documentation

template<typename A , typename B >
A Evoral::IdentityConverter< A, B >::from ( b) const
virtual

Convert B time to A time (A from B)

Implements Evoral::TimeConverter< A, B >.

Definition at line 41 of file TimeConverter.cpp.

template<typename A , typename B >
B Evoral::IdentityConverter< A, B >::to ( a) const
virtual

Convert A time to B time (A to B)

Implements Evoral::TimeConverter< A, B >.

Definition at line 34 of file TimeConverter.cpp.


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