igor::iAny Class Reference

#include <iAny.h>

Public Member Functions

 iAny ()=default
 
 iAny (const iAny &value)
 
template<class T >
 iAny (T &&value)
 
template<typename T >
getValue () const
 
iaString toString () const
 
iAnyType getType () const
 
const std::any & getData () const
 
template<class T >
 iAny (T &&value)
 
template<typename T >
getValue () const
 

Static Public Member Functions

static bool compare (const iAny &a, const iAny &b)
 
static std::any getAny (const iAnyType &type)
 

Detailed Description

a wrapper for std::any that is aware of igor types

Constructor & Destructor Documentation

◆ iAny() [1/4]

igor::iAny::iAny ( )
default

default ctor

◆ iAny() [2/4]

igor::iAny::iAny ( const iAny value)

copy ctor

◆ iAny() [3/4]

template<class T >
igor::iAny::iAny ( T &&  value)

◆ iAny() [4/4]

template<class T >
igor::iAny::iAny ( T &&  value)

Member Function Documentation

◆ compare()

bool igor::iAny::compare ( const iAny a,
const iAny b 
)
static

compare two any

Parameters
afirst any
bsecond any
Returns
true if types and values match

◆ getAny()

std::any igor::iAny::getAny ( const iAnyType type)
static
Returns
default any for given type
Parameters
typethe given type

◆ getData()

const std::any & igor::iAny::getData ( ) const
Returns
data

◆ getType()

iAnyType igor::iAny::getType ( ) const
Returns
type of any

◆ getValue() [1/2]

template<typename T >
T igor::iAny::getValue ( ) const
Returns
value for given type

◆ getValue() [2/2]

template<typename T >
T igor::iAny::getValue ( ) const

◆ toString()

iaString igor::iAny::toString ( ) const
Returns
value as string if known type

this is for readability not for preserving information


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