Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::AnyTime Class Reference

#include <types.h>

Inheritance diagram for ARDOUR::AnyTime:
[legend]

Public Types

enum  Type {
  Timecode , BBT , BBT_Offset , Samples ,
  Seconds
}
 

Public Member Functions

 AnyTime ()
 
 AnyTime (Temporal::BBT_Offset bt)
 
 AnyTime (std::string const &)
 
std::string str () const
 
bool operator== (AnyTime const &other) const
 
bool not_zero () const
 

Public Attributes

Type type
 
Timecode::Time timecode
 
union {
   Temporal::BBT_Time   bbt
 
   Temporal::BBT_Offset   bbt_offset
 
}; 
 
union {
   samplecnt_t   samples
 
   double   seconds
 
}; 
 

Detailed Description

Definition at line 302 of file ardour/ardour/types.h.

Member Enumeration Documentation

◆ Type

Enumerator
Timecode 
BBT 
BBT_Offset 
Samples 
Seconds 

Definition at line 304 of file ardour/ardour/types.h.

Constructor & Destructor Documentation

◆ AnyTime() [1/3]

ARDOUR::AnyTime::AnyTime ( )
inline

Definition at line 325 of file ardour/ardour/types.h.

◆ AnyTime() [2/3]

ARDOUR::AnyTime::AnyTime ( Temporal::BBT_Offset  bt)
inline

Definition at line 326 of file ardour/ardour/types.h.

◆ AnyTime() [3/3]

ARDOUR::AnyTime::AnyTime ( std::string const &  )

Member Function Documentation

◆ not_zero()

bool ARDOUR::AnyTime::not_zero ( ) const
inline

Definition at line 349 of file ardour/ardour/types.h.

◆ operator==()

bool ARDOUR::AnyTime::operator== ( AnyTime const &  other) const
inline

Definition at line 331 of file ardour/ardour/types.h.

◆ str()

std::string ARDOUR::AnyTime::str ( ) const

Member Data Documentation

◆ 

union { ... }

◆ 

union { ... }

◆ bbt

Temporal::BBT_Time ARDOUR::AnyTime::bbt

Definition at line 316 of file ardour/ardour/types.h.

◆ bbt_offset

Temporal::BBT_Offset ARDOUR::AnyTime::bbt_offset

Definition at line 317 of file ardour/ardour/types.h.

◆ samples

samplecnt_t ARDOUR::AnyTime::samples

Definition at line 321 of file ardour/ardour/types.h.

◆ seconds

double ARDOUR::AnyTime::seconds

Definition at line 322 of file ardour/ardour/types.h.

◆ timecode

Timecode::Time ARDOUR::AnyTime::timecode

Definition at line 314 of file ardour/ardour/types.h.

◆ type

Type ARDOUR::AnyTime::type

Definition at line 312 of file ardour/ardour/types.h.


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