Ardour  9.0-pre0-582-g084a23a80d
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 46 of file bbt_time.h.

Constructor & Destructor Documentation

◆ BBT_Time() [1/2]

Temporal::BBT_Time::BBT_Time ( )
inline

Definition at line 62 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 63 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 59 of file bbt_time.h.

◆ is_beat()

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

Definition at line 60 of file bbt_time.h.

◆ next_bar()

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

Definition at line 127 of file bbt_time.h.

◆ operator!=() [1/2]

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

Definition at line 307 of file bbt_time.h.

◆ operator!=() [2/2]

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

Definition at line 97 of file bbt_time.h.

◆ operator<() [1/2]

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

Definition at line 268 of file bbt_time.h.

◆ operator<() [2/2]

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

Definition at line 69 of file bbt_time.h.

◆ operator<=() [1/2]

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

Definition at line 276 of file bbt_time.h.

◆ operator<=() [2/2]

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

Definition at line 75 of file bbt_time.h.

◆ operator==() [1/2]

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

Definition at line 301 of file bbt_time.h.

◆ operator==() [2/2]

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

Definition at line 93 of file bbt_time.h.

◆ operator>() [1/2]

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

Definition at line 285 of file bbt_time.h.

◆ operator>() [2/2]

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

Definition at line 81 of file bbt_time.h.

◆ operator>=() [1/2]

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

Definition at line 293 of file bbt_time.h.

◆ operator>=() [2/2]

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

Definition at line 87 of file bbt_time.h.

◆ prev_bar()

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

Definition at line 128 of file bbt_time.h.

◆ print_padded()

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

Definition at line 130 of file bbt_time.h.

◆ round_down_to_bar()

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

Definition at line 126 of file bbt_time.h.

◆ round_down_to_beat()

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

Definition at line 115 of file bbt_time.h.

◆ round_to_beat()

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

Definition at line 114 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 116 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 137 of file bbt_time.h.

Member Data Documentation

◆ bars

int32_t Temporal::BBT_Time::bars

Definition at line 52 of file bbt_time.h.

◆ beats

int32_t Temporal::BBT_Time::beats

Definition at line 53 of file bbt_time.h.

◆ ticks

int32_t Temporal::BBT_Time::ticks

Definition at line 54 of file bbt_time.h.


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