knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowCore::ValueIs< _T_ > Class Template Reference

#include <Value.h>

Public Member Functions

 ValueIs (const knowCore::Value &_val)
 
 operator bool ()
 
const _T_ & value () const
 
_T_ & value ()
 
 operator const _T_ & () const
 
_T_ * operator-> ()
 
_T_ * operator-> () const
 
_T_ && moveValue ()
 

Detailed Description

template<typename _T_>
class knowCore::ValueIs< _T_ >

Convenience class to convert a knowCore::Value to an arbitrary type for' use as part of an if expression. Unlike knowCore::ValueCast, no conversion is allowed.

{
SomeKlass sv = vc;
sv.func() == vc->func();
return vc;
}
Definition Value.h:445
Definition Value.h:21
static Value fromValue(const _T_ &_value)
Definition Value.h:241

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