#include <iostream>
#include <iomanip>
#include <functional>
#include <boost/enum.hpp>
#include <boost/concept_check.hpp>
#include <boost/function.hpp>
#include <boost/array.hpp>
#include <boost/type_traits/is_virtual_base_of.hpp>
Go to the source code of this file.
Classes |
class | expanded::Level |
struct | Log |
struct | Point |
struct | switch_enum< T > |
struct | switch_enum< boolean > |
struct | switch_enum< Points > |
struct | detail::switch_helper< is_enum > |
struct | detail::switch_helper< true > |
Namespaces |
namespace | detail |
namespace | expanded |
Functions |
| BOOST_BITFIELD (MouseKey,(LeftButton)(0x0001)(RightButton)(0x0002)(Shift)(0x0004)(Control)(0x0008)(MiddleButton)(0x0010)) namespace expanded |
| BOOST_ENUM (boolean,(False)(True)) namespace expanded |
| BOOST_ENUM_VALUES (VirtualKey, int,(Zero)(0)(Space)(0x20)(Prior)(0x21)(Next)(0x22)(End)(0x23)(Home)(0x24)) namespace expanded |
| BOOST_ENUM_VALUES (Points, Point,(Origin)(Point(0, 0))(LeftField)(Point(-100,-100))) template< typename T > void test_iterator() |
int | main (int argc, char *argv[]) |
ostream & | operator<< (ostream &os, const Point &rhs) |
bool | operator== (const Point &lhs, const Point &rhs) |
template<typename T > |
void | take_enum (const T &value) |
template<typename T > |
void | test_bitfield (BOOST_DEDUCED_TYPENAME T::value_type invalid_value) |
template<typename T > |
void | test_enum (BOOST_DEDUCED_TYPENAME T::value_type invalid_value) |
template<typename T > |
void | test_get_by_index (BOOST_DEDUCED_TYPENAME T::index_type index, const boost::optional< T > &expected) |
template<typename T > |
void | test_get_by_name (const std::string &str, const boost::optional< T > &expected) |
template<typename T > |
void | test_get_by_value (BOOST_DEDUCED_TYPENAME T::value_type value, const boost::optional< T > &expected) |
template<typename T , typename A > |
void | test_optional_method (const A &arg, const BOOST_DEDUCED_TYPENAME T::optional &expected, const char *method_name, const boost::function1< BOOST_DEDUCED_TYPENAME T::optional, A > &method) |
Function Documentation
BOOST_BITFIELD |
( |
MouseKey |
, |
|
|
(LeftButton)(0x0001)(RightButton)(0x0002)(Shift)(0x0004)(Control)(0x0008)(MiddleButton)(0x0010) |
|
|
) |
| |
BOOST_ENUM_VALUES |
( |
VirtualKey |
, |
|
|
int |
, |
|
|
(Zero)(0)(Space)(0x20)(Prior)(0x21)(Next)(0x22)(End)(0x23)(Home)(0x24) |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
ostream& operator<< |
( |
ostream & |
os, |
|
|
const Point & |
rhs |
|
) |
| |
bool operator== |
( |
const Point & |
lhs, |
|
|
const Point & |
rhs |
|
) |
| |
template<typename T >
void test_bitfield |
( |
BOOST_DEDUCED_TYPENAME T::value_type |
invalid_value | ) |
|
template<typename T >
void test_enum |
( |
BOOST_DEDUCED_TYPENAME T::value_type |
invalid_value | ) |
|
template<typename T >
void test_get_by_index |
( |
BOOST_DEDUCED_TYPENAME T::index_type |
index, |
|
|
const boost::optional< T > & |
expected |
|
) |
| |
template<typename T >
void test_get_by_name |
( |
const std::string & |
str, |
|
|
const boost::optional< T > & |
expected |
|
) |
| |
template<typename T >
void test_get_by_value |
( |
BOOST_DEDUCED_TYPENAME T::value_type |
value, |
|
|
const boost::optional< T > & |
expected |
|
) |
| |
template<typename T , typename A >
void test_optional_method |
( |
const A & |
arg, |
|
|
const BOOST_DEDUCED_TYPENAME T::optional & |
expected, |
|
|
const char * |
method_name, |
|
|
const boost::function1< BOOST_DEDUCED_TYPENAME T::optional, A > & |
method |
|
) |
| |