![]() |
PIP 5.5.3
Platform-Independent Primitives
|
Simple variant type. More...
#include <pivariantsimple.h>
Public Member Functions | |
| PIVariantSimple () | |
| Construct null PIVariantSimple. | |
| PIVariantSimple (const PIVariantSimple &v) | |
| Contructs a copy of PIVariantSimple. | |
| PIVariantSimple & | operator= (const PIVariantSimple &v) |
| Assign operator. | |
| template<typename T > | |
| void | setValue (const T &v) |
| Set value to "v". | |
| template<typename T > | |
| T | value () const |
| Returns value as type "T". More... | |
Static Public Member Functions | |
| template<typename T > | |
| static PIVariantSimple | fromValue (const T &v) |
| Returns PIVariantSimple with value "v". | |
Simple variant type.
|
inline |
Returns value as type "T".
In contrast of PIVariant this class has strong check of type. Returns value only if this type was set before.