Ardour
9.0-pre0-582-g084a23a80d
|
#include <variant.h>
Public Types | |
enum | Type { NOTHING , BEATS , BOOL , DOUBLE , FLOAT , INT , LONG , PATH , STRING , URI } |
Public Member Functions | |
Variant () | |
Variant (bool value) | |
Variant (double value) | |
Variant (float value) | |
Variant (int32_t value) | |
Variant (int64_t value) | |
Variant (const Temporal::Beats &beats) | |
Variant (Type type, const std::string &value) | |
Variant (Type type, double value) | |
double | to_double () const |
bool | get_bool () const |
double | get_double () const |
float | get_float () const |
int | get_int () const |
long | get_long () const |
bool | operator== (bool v) const |
double | operator== (double v) const |
float | operator== (float v) const |
int | operator== (int v) const |
long | operator== (long v) const |
Variant & | operator= (bool v) |
Variant & | operator= (double v) |
Variant & | operator= (float v) |
Variant & | operator= (int v) |
Variant & | operator= (long v) |
const std::string & | get_path () const |
const std::string & | get_string () const |
const std::string & | get_uri () const |
bool | operator== (const Variant &v) const |
bool | operator== (const Temporal::Beats &v) const |
bool | operator! () const |
Variant & | operator= (Temporal::Beats v) |
const Temporal::Beats & | get_beats () const |
Type | type () const |
Static Public Member Functions | |
static bool | type_is_numeric (Type type) |
Private Member Functions | |
void | ensure_type (const Type type) const |
Static Private Member Functions | |
static const char * | type_name (const Type type) |
Private Attributes | |
Type | _type |
Type tag. More... | |
std::string | _string |
PATH, STRING, URI. More... | |
Temporal::Beats | _beats |
BEATS. More... | |
union { | |
bool _bool | |
double _double | |
float _float | |
int32_t _int | |
int64_t _long | |
}; | |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestaticprivate |
union { ... } |
|
private |
|
private |