Skip to content

shapeworks::Variant

Variant class to represent multiple types. More...

#include <Variant.h>

Public Functions

Name
Variant()
Variant(const std::string & v)
Variant(int v)
Variant(double v)
Variant(const char * v)
Variant(bool v)
Variant(std::vector< double > v)
Variant(std::vector< int > v)
Variant(std::vector< bool > v)
operator std::string()
operator bool()
operator int()
operator unsigned int()
operator long()
operator unsigned long()
operator float()
operator double()
operator std::vector< double >()
operator std::vector< int >()
operator std::vector< bool >()

Detailed Description

class shapeworks::Variant;

Variant class to represent multiple types.

This class was adapted from optparse to contain multiple types as a string This is used for storing parameters in a spreadsheet

Public Functions Documentation

function Variant

inline Variant()

function Variant

inline Variant(
    const std::string & v
)

function Variant

inline Variant(
    int v
)

function Variant

inline Variant(
    double v
)

function Variant

inline Variant(
    const char * v
)

function Variant

inline Variant(
    bool v
)

function Variant

inline Variant(
    std::vector< double > v
)

function Variant

inline Variant(
    std::vector< int > v
)

function Variant

inline Variant(
    std::vector< bool > v
)

function operator std::string

operator std::string()

function operator bool

operator bool()

function operator int

operator int()

function operator unsigned int

operator unsigned int()

function operator long

operator long()

function operator unsigned long

operator unsigned long()

function operator float

operator float()

function operator double

operator double()

function operator std::vector< double >

operator std::vector< double >()

function operator std::vector< int >

operator std::vector< int >()

function operator std::vector< bool >

operator std::vector< bool >()

Updated on 2022-07-23 at 17:50:04 -0600