Null values
[Type Manipulation and Column Name re-mapping]


Functions

template<typename U>
enable_if
< boost::is_arithmetic< U >, U >
::type 
eepgwde::detail::i0::null1 (dummy< 0 >=0)
 Any numeric types: use the system minimum.
template<typename U>
disable_if_c
< boost::is_base_of
< boost::any, U >::value||boost::is_arithmetic
< U >::value||boost::is_arithmetic
< typename U::value_type >
::value||boost::is_base_of
< std::string, U >::value||!(boost::has_trivial_default_constructor
< U >::value), U >::type 
eepgwde::detail::i0::null1 (dummy< 1 >=1)

Detailed Description

A null value needs to be added for most one of the typical input data-types. It's used to help with type-checking.

The singleton class also maintains a list of type names and null0 values accepted and able to be rendered.

This uses some boost::type_traits. It can cover most plain-old numeric types, strings and dates. Special scaled Numeric classes can be handled.

This only creates the null0 value. The rendering is a another issue. The rendering as() methods use the relationships between the null0 types.

See also:
eepgwde::detail::Typing, eepgwde::detail::null0

Function Documentation

template<typename U>
disable_if_c< boost::is_base_of< boost::any, U >::value||boost::is_arithmetic< U >::value||boost::is_arithmetic< typename U::value_type >::value||boost::is_base_of< std::string, U >::value||!(boost::has_trivial_default_constructor< U >::value), U >::type eepgwde::detail::i0::null1 ( dummy< 1 >  = 1  )  [inline]

If all else fails assume it is a type with a default value constructor.

This should match all of those that aren't specified here.

If all else fails assume it is a type with a default value constructor.

This should match all of those that aren't specified here.

Definition at line 62 of file scalt4.cpp.

template<typename U>
enable_if< boost::is_same< ql::Date, U >, U >::type eepgwde::detail::i0::null1 ( dummy< 0 >  = 0  )  [inline]

Any numeric types: use the system minimum.

A null for QuantLib date.

The generic null is boost::any.

Numeric derivations: avoid clash with string.

Dates: use an old one.

Strings: use an empty one.

A place to group null0 templated methods.

See also:
null0

Definition at line 24 of file scalt4.cpp.


Generated on Thu Feb 18 21:30:12 2010 for eleve by  doxygen 1.5.6