Ardour  8.6-511-g145f6d587c
Temporal::BBT_Time Struct Reference

#include <bbt_time.h>

Inheritance diagram for Temporal::BBT_Time:
[legend]

Public Member Functions

int64_t as_integer () const
 
bool is_bar () const
 
bool is_beat () const
 
 BBT_Time ()
 
 BBT_Time (int32_t ba, uint32_t be, uint32_t t)
 
bool operator< (const BBT_Time &other) const
 
bool operator<= (const BBT_Time &other) const
 
bool operator> (const BBT_Time &other) const
 
bool operator>= (const BBT_Time &other) const
 
bool operator== (const BBT_Time &other) const
 
bool operator!= (const BBT_Time &other) const
 
bool operator< (const BBT_Offset &other) const
 
bool operator<= (const BBT_Offset &other) const
 
bool operator> (const BBT_Offset &other) const
 
bool operator>= (const BBT_Offset &other) const
 
bool operator== (const BBT_Offset &other) const
 
bool operator!= (const BBT_Offset &other) const
 
BBT_Time round_to_beat () const
 
BBT_Time round_down_to_beat () const
 
BBT_Time round_up_to_beat () const
 
BBT_Time round_up_to_beat_div (int beat_div) const
 
BBT_Time round_up_to_bar () const
 
BBT_Time round_down_to_bar () const
 
BBT_Time next_bar () const
 
BBT_Time prev_bar () const
 
void print_padded (std::ostream &o) const
 
std::string str () const
 

Static Public Member Functions

static BBT_Time from_integer (int64_t)
 

Public Attributes

int32_t bars
 
int32_t beats
 
int32_t ticks
 

Detailed Description

Bar, Beat, Tick Time (i.e. Tempo-Based Time)

Definition at line 47 of file bbt_time.h.

Constructor & Destructor Documentation

◆ BBT_Time() [1/2]

Temporal::BBT_Time::BBT_Time ( )
inline

Definition at line 63 of file bbt_time.h.

◆ BBT_Time() [2/2]

Temporal::BBT_Time::BBT_Time ( int32_t  ba,
uint32_t  be,
uint32_t  t 
)
inline

Definition at line 64 of file bbt_time.h.

Member Function Documentation

◆ as_integer()

int64_t Temporal::BBT_Time::as_integer ( ) const

◆ from_integer()

static BBT_Time Temporal::BBT_Time::from_integer ( int64_t  )
static

◆ is_bar()

bool Temporal::BBT_Time::is_bar ( ) const
inline

Definition at line 60 of file bbt_time.h.

◆ is_beat()

bool Temporal::BBT_Time::is_beat ( ) const
inline

Definition at line 61 of file bbt_time.h.

◆ next_bar()

BBT_Time Temporal::BBT_Time::next_bar ( ) const
inline

Definition at line 128 of file bbt_time.h.

◆ operator!=() [1/2]

bool Temporal::BBT_Time::operator!= ( const BBT_Offset other) const
inline

Definition at line 308 of file bbt_time.h.

◆ operator!=() [2/2]

bool Temporal::BBT_Time::operator!= ( const BBT_Time other) const
inline

Definition at line 98 of file bbt_time.h.

◆ operator<() [1/2]

bool Temporal::BBT_Time::operator< ( const BBT_Offset other) const
inline

Definition at line 269 of file bbt_time.h.

◆ operator<() [2/2]

bool Temporal::BBT_Time::operator< ( const BBT_Time other) const
inline

Definition at line 70 of file bbt_time.h.

◆ operator<=() [1/2]

bool Temporal::BBT_Time::operator<= ( const BBT_Offset other) const
inline

Definition at line 277 of file bbt_time.h.

◆ operator<=() [2/2]

bool Temporal::BBT_Time::operator<= ( const BBT_Time other) const
inline

Definition at line 76 of file bbt_time.h.

◆ operator==() [1/2]

bool Temporal::BBT_Time::operator== ( const BBT_Offset other) const
inline

Definition at line 302 of file bbt_time.h.

◆ operator==() [2/2]

bool Temporal::BBT_Time::operator== ( const BBT_Time other) const
inline

Definition at line 94 of file bbt_time.h.

◆ operator>() [1/2]

bool Temporal::BBT_Time::operator> ( const BBT_Offset other) const
inline

Definition at line 286 of file bbt_time.h.

◆ operator>() [2/2]

bool Temporal::BBT_Time::operator> ( const BBT_Time other) const
inline

Definition at line 82 of file bbt_time.h.

◆ operator>=() [1/2]

bool Temporal::BBT_Time::operator>= ( const BBT_Offset other) const
inline

Definition at line 294 of file bbt_time.h.

◆ operator>=() [2/2]

bool Temporal::BBT_Time::operator>= ( const BBT_Time other) const
inline

Definition at line 88 of file bbt_time.h.

◆ prev_bar()

BBT_Time Temporal::BBT_Time::prev_bar ( ) const
inline

Definition at line 129 of file bbt_time.h.

◆ print_padded()

void Temporal::BBT_Time::print_padded ( std::ostream &  o) const
inline

Definition at line 131 of file bbt_time.h.

◆ round_down_to_bar()

BBT_Time Temporal::BBT_Time::round_down_to_bar ( ) const
inline

Definition at line 127 of file bbt_time.h.

◆ round_down_to_beat()

BBT_Time Temporal::BBT_Time::round_down_to_beat ( ) const
inline

Definition at line 116 of file bbt_time.h.

◆ round_to_beat()

BBT_Time Temporal::BBT_Time::round_to_beat ( ) const
inline

Definition at line 115 of file bbt_time.h.

◆ round_up_to_bar()

BBT_Time Temporal::BBT_Time::round_up_to_bar ( ) const

◆ round_up_to_beat()

BBT_Time Temporal::BBT_Time::round_up_to_beat ( ) const
inline

Definition at line 117 of file bbt_time.h.

◆ round_up_to_beat_div()

BBT_Time Temporal::BBT_Time::round_up_to_beat_div ( int  beat_div) const

◆ str()

std::string Temporal::BBT_Time::str ( ) const
inline

Definition at line 138 of file bbt_time.h.

Member Data Documentation

◆ bars

int32_t Temporal::BBT_Time::bars

Definition at line 53 of file bbt_time.h.

◆ beats

int32_t Temporal::BBT_Time::beats

Definition at line 54 of file bbt_time.h.

◆ ticks

int32_t Temporal::BBT_Time::ticks

Definition at line 55 of file bbt_time.h.


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