Ardour  8.7-15-gadf511264b
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 #ifndef __libtemporal_bbt_argument_h__
20 #define __libtemporal_bbt_argument_h__
21 
22 #include "temporal/bbt_time.h"
23 #include "temporal/timeline.h"
24 
25 namespace Temporal {
26 
28 {
29  public:
30  BBT_Argument () : BBT_Time (), _reference (0) {}
31  BBT_Argument (int32_t B, int32_t b, int32_t t) : BBT_Time (B, b, t), _reference (0) {}
32 
33  BBT_Argument (superclock_t r) : BBT_Time (), _reference (r) {}
34  BBT_Argument (superclock_t r, int32_t B, int32_t b, int32_t t) : BBT_Time (B, b, t), _reference (r) {}
35 
36  explicit BBT_Argument (BBT_Time const & bbt) : BBT_Time (bbt), _reference (0) {}
37  BBT_Argument (superclock_t r, BBT_Time const & bbt) : BBT_Time (bbt), _reference (r) {}
38 
39  superclock_t reference() const { return _reference; }
40 
41  private:
43 
44 };
45 
46 } // end namespace
47 
48 namespace std {
49 
50 LIBTEMPORAL_API std::ostream& operator<< (std::ostream& o, Temporal::BBT_Argument const & bbt);
51 
52 }
53 
54 #endif /* __libtemporal_bbt_argument_h__ */
int64_t superclock_t
Definition: superclock.h:35
BBT_Argument(BBT_Time const &bbt)
Definition: bbt_argument.h:36
BBT_Argument(int32_t B, int32_t b, int32_t t)
Definition: bbt_argument.h:31
BBT_Argument(superclock_t r)
Definition: bbt_argument.h:33
superclock_t _reference
Definition: bbt_argument.h:42
BBT_Argument(superclock_t r, BBT_Time const &bbt)
Definition: bbt_argument.h:37
superclock_t reference() const
Definition: bbt_argument.h:39
BBT_Argument(superclock_t r, int32_t B, int32_t b, int32_t t)
Definition: bbt_argument.h:34
#define LIBTEMPORAL_API