Namespaces | Classes | Typedefs | Functions

test_throw Namespace Reference

Namespaces

namespace  implementation

Classes

struct  bad_lexical_cast
 Thrown when a lexical_cast fails. More...

Typedefs

typedef boost::mpl::vector
< bool, char, signed char,
unsigned char, short, int,
long, long long, unsigned
short, unsigned int, unsigned
long, unsigned long long > 
test_match_types
typedef boost::mpl::vector
< float, double, long double > 
test_nomatch_types
typedef boost::mpl::copy
< test_nomatch_types,
boost::mpl::back_inserter
< test_match_types > >::type 
test_types
typedef boost::mpl::vector
< signed char, short, int,
long > 
test_lexical_cast_signed_types
typedef boost::mpl::vector
< bool, unsigned char,
unsigned short, unsigned int,
unsigned long > 
test_lexical_cast_unsigned_types

Functions

template<typename To , typename From >
To lexical_cast (From value)
 Lexical cast converts one type to another.
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_throw, T, test_types)
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_signed, T, test_lexical_cast_signed_types)
 BOOST_AUTO_TEST_CASE (test_lexical_cast_long_long)
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_unsigned, T, test_lexical_cast_unsigned_types)
 BOOST_AUTO_TEST_CASE (test_lexical_cast_unsigned_long_long)

Typedef Documentation

typedef boost::mpl::vector< signed char , short , int , long> test_throw::test_lexical_cast_signed_types

Definition at line 124 of file test_lexical_cast.cpp.

typedef boost::mpl::vector< bool , unsigned char , unsigned short , unsigned int , unsigned long> test_throw::test_lexical_cast_unsigned_types

Definition at line 164 of file test_lexical_cast.cpp.

typedef boost::mpl::vector< bool, char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long > test_throw::test_match_types

Definition at line 57 of file test_lexical_cast.cpp.

typedef boost::mpl::vector< float, double, long double > test_throw::test_nomatch_types

Definition at line 61 of file test_lexical_cast.cpp.

typedef boost::mpl::copy< test_nomatch_types, boost::mpl::back_inserter<test_match_types> >::type test_throw::test_types

Definition at line 66 of file test_lexical_cast.cpp.


Function Documentation

test_throw::BOOST_AUTO_TEST_CASE ( test_lexical_cast_long_long   ) 

Definition at line 143 of file test_lexical_cast.cpp.

test_throw::BOOST_AUTO_TEST_CASE ( test_lexical_cast_unsigned_long_long   ) 

Definition at line 184 of file test_lexical_cast.cpp.

References validate().

Here is the call graph for this function:

test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE ( test_lexical_cast_unsigned  ,
,
test_lexical_cast_unsigned_types   
)

Definition at line 166 of file test_lexical_cast.cpp.

test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE ( test_lexical_cast_throw  ,
,
test_types   
)

Definition at line 94 of file test_lexical_cast.cpp.

References type.

test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE ( test_lexical_cast_signed  ,
,
test_lexical_cast_signed_types   
)

Definition at line 126 of file test_lexical_cast.cpp.

References validate().

Here is the call graph for this function:

template<typename To , typename From >
To test_throw::lexical_cast ( From  value  )  [inline]

Lexical cast converts one type to another.

Template Parameters:
To The type to convert to.
From The type to convert from.
Parameters:
value The value to convert.
Returns:
The converted value.

Definition at line 93 of file test_lexical_cast.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:25:40 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs