Ardour  9.0-pre0-380-gbbdb6b0e63
ArdourSurface::TypedValue Class Reference

#include <typed_value.h>

Public Types

enum  Type {
  Empty , Bool , Int , Double ,
  String
}
 

Public Member Functions

 TypedValue ()
 
 TypedValue (bool)
 
 TypedValue (int)
 
 TypedValue (double)
 
 TypedValue (std::string)
 
bool empty () const
 
Type type () const
 
 operator bool () const
 
 operator int () const
 
 operator double () const
 
 operator std::string () const
 
bool operator== (const TypedValue &other) const
 
bool operator!= (const TypedValue &other) const
 
std::string debug_str () const
 

Private Attributes

Type _type
 
bool _b
 
int _i
 
double _d
 
std::string _s
 

Detailed Description

Definition at line 26 of file typed_value.h.

Member Enumeration Documentation

◆ Type

Enumerator
Empty 
Bool 
Int 
Double 
String 

Definition at line 29 of file typed_value.h.

Constructor & Destructor Documentation

◆ TypedValue() [1/5]

ArdourSurface::TypedValue::TypedValue ( )

◆ TypedValue() [2/5]

ArdourSurface::TypedValue::TypedValue ( bool  )

◆ TypedValue() [3/5]

ArdourSurface::TypedValue::TypedValue ( int  )

◆ TypedValue() [4/5]

ArdourSurface::TypedValue::TypedValue ( double  )

◆ TypedValue() [5/5]

ArdourSurface::TypedValue::TypedValue ( std::string  )

Member Function Documentation

◆ debug_str()

std::string ArdourSurface::TypedValue::debug_str ( ) const

◆ empty()

bool ArdourSurface::TypedValue::empty ( ) const
inline

Definition at line 43 of file typed_value.h.

◆ operator bool()

ArdourSurface::TypedValue::operator bool ( ) const

◆ operator double()

ArdourSurface::TypedValue::operator double ( ) const

◆ operator int()

ArdourSurface::TypedValue::operator int ( ) const

◆ operator std::string()

ArdourSurface::TypedValue::operator std::string ( ) const

◆ operator!=()

bool ArdourSurface::TypedValue::operator!= ( const TypedValue other) const

◆ operator==()

bool ArdourSurface::TypedValue::operator== ( const TypedValue other) const

◆ type()

Type ArdourSurface::TypedValue::type ( ) const
inline

Definition at line 47 of file typed_value.h.

Member Data Documentation

◆ _b

bool ArdourSurface::TypedValue::_b
private

Definition at line 64 of file typed_value.h.

◆ _d

double ArdourSurface::TypedValue::_d
private

Definition at line 66 of file typed_value.h.

◆ _i

int ArdourSurface::TypedValue::_i
private

Definition at line 65 of file typed_value.h.

◆ _s

std::string ArdourSurface::TypedValue::_s
private

Definition at line 67 of file typed_value.h.

◆ _type

Type ArdourSurface::TypedValue::_type
private

Definition at line 63 of file typed_value.h.


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