Ardour  9.0-pre0-582-g084a23a80d
bbt_argument.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2023 Paul Davis
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Lesser General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This program is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public License
15  along with this program; if not, write to the Free Software Foundation,
16  Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18 
19 #pragma once
20 
21 #include "temporal/bbt_time.h"
22 #include "temporal/timeline.h"
23 
24 namespace Temporal {
25 
27 {
28  public:
29  BBT_Argument () : BBT_Time (), _reference (0) {}
30  BBT_Argument (int32_t B, int32_t b, int32_t t) : BBT_Time (B, b, t), _reference (0) {}
31 
32  BBT_Argument (superclock_t r) : BBT_Time (), _reference (r) {}
33  BBT_Argument (superclock_t r, int32_t B, int32_t b, int32_t t) : BBT_Time (B, b, t), _reference (r) {}
34 
35  explicit BBT_Argument (BBT_Time const & bbt) : BBT_Time (bbt), _reference (0) {}
36  BBT_Argument (superclock_t r, BBT_Time const & bbt) : BBT_Time (bbt), _reference (r) {}
37 
38  superclock_t reference() const { return _reference; }
39 
40  private:
42 
43 };
44 
45 } // end namespace
46 
47 namespace std {
48 
49 LIBTEMPORAL_API std::ostream& operator<< (std::ostream& o, Temporal::BBT_Argument const & bbt);
50 
51 }
52 
int64_t superclock_t
Definition: superclock.h:34
BBT_Argument(BBT_Time const &bbt)
Definition: bbt_argument.h:35
BBT_Argument(int32_t B, int32_t b, int32_t t)
Definition: bbt_argument.h:30
BBT_Argument(superclock_t r)
Definition: bbt_argument.h:32
superclock_t _reference
Definition: bbt_argument.h:41
BBT_Argument(superclock_t r, BBT_Time const &bbt)
Definition: bbt_argument.h:36
superclock_t reference() const
Definition: bbt_argument.h:38
BBT_Argument(superclock_t r, int32_t B, int32_t b, int32_t t)
Definition: bbt_argument.h:33
#define LIBTEMPORAL_API