C:/Projets/hexamonkey/core/variant.h File Reference
#include <exception>
#include <iostream>
#include <string>

Go to the source code of this file.

Classes

class  Variant
 Tagged union for holding values. More...
union  Variant::Data

Functions

void swap (Variant &a, Variant &b)
Variant operator+ (Variant a, const Variant &b)
Variant operator- (Variant a, const Variant &b)
Variant operator* (Variant a, const Variant &b)
Variant operator/ (Variant a, const Variant &b)
Variant operator% (Variant a, const Variant &b)
Variant operator| (Variant a, const Variant &b)
Variant operator^ (Variant a, const Variant &b)
Variant operator& (Variant a, const Variant &b)
Variant operator<< (Variant a, const Variant &b)
Variant operator>> (Variant a, const Variant &b)
bool operator== (const Variant &a, const Variant &b)
bool operator!= (const Variant &a, const Variant &b)
bool operator< (const Variant &a, const Variant &b)
bool operator<= (const Variant &a, const Variant &b)
bool operator> (const Variant &a, const Variant &b)
bool operator>= (const Variant &a, const Variant &b)
bool operator&& (const Variant &a, const Variant &b)
bool operator|| (const Variant &a, const Variant &b)
std::ostream & operator<< (std::ostream &out, const Variant &variant)

Function Documentation

bool operator!= ( const Variant a,
const Variant b 
)
Variant operator% ( Variant  a,
const Variant b 
)
Variant operator& ( Variant  a,
const Variant b 
)
bool operator&& ( const Variant a,
const Variant b 
)
Variant operator* ( Variant  a,
const Variant b 
)
Variant operator+ ( Variant  a,
const Variant b 
)
Variant operator- ( Variant  a,
const Variant b 
)
Variant operator/ ( Variant  a,
const Variant b 
)
bool operator< ( const Variant a,
const Variant b 
)
Variant operator<< ( Variant  a,
const Variant b 
)
std::ostream& operator<< ( std::ostream &  out,
const Variant variant 
)
bool operator<= ( const Variant a,
const Variant b 
)
bool operator== ( const Variant a,
const Variant b 
)
bool operator> ( const Variant a,
const Variant b 
)
bool operator>= ( const Variant a,
const Variant b 
)
Variant operator>> ( Variant  a,
const Variant b 
)
Variant operator^ ( Variant  a,
const Variant b 
)
Variant operator| ( Variant  a,
const Variant b 
)
bool operator|| ( const Variant a,
const Variant b 
)
void swap ( Variant a,
Variant b 
)