![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::int_adapter — Adapter to create integer types with +-infinity, and not a value.
// In header: <boost/date_time/int_adapter.hpp> template<typename int_type_> class int_adapter { public: // types typedef ; // construct/copy/destruct (); // public member functions () ; () ; () ; () ; () ; (int_adapter &) ; () ; (int_adapter &) ; () ; (int_adapter &) ; () ; (int_adapter &) ; () ; () ; template<typename rhs_type> int_adapter (int_adapter< ) ; int_adapter () ; template<typename rhs_type> int_adapter (int_adapter< ) ; int_adapter () ; int_adapter (int_adapter &) ; int_adapter () ; int_adapter (int_adapter &) ; int_adapter () ; int_adapter (int_adapter &) ; int_adapter () ; // public static functions (); int_adapter (); int_adapter (); int_adapter (); int_adapter (); int_adapter (); int_adapter (); (); (); (); (); (); (); // private member functions (int_adapter &) ; int_adapter (int_adapter &) ; int_adapter () ; };
This class is used internally in counted date/time representations. It adds the floating point like features of infinities and not a number. It also provides mathmatical operations with consideration to special values following these rules:
+
int_adapter
public member functions() ;
() ;
() ;
() ;
() ;
(int_adapter & rhs) ;
( rhs) ;
(int_adapter & rhs) ;
( rhs) ;
(int_adapter & rhs) ;
( rhs) ;
(int_adapter & rhs) ;
() ;
() ;Returns either special value type or is_not_special.
template<typename rhs_type> int_adapter (int_adapter< rhs) ;
Operator allows for adding dissimilar int_adapter
types. The return type will match that of the the calling object's type
int_adapter ( rhs) ;
template<typename rhs_type> int_adapter (int_adapter< rhs) ;
Operator allows for subtracting dissimilar int_adapter
types. The return type will match that of the the calling object's type
int_adapter ( rhs) ;
int_adapter (int_adapter & rhs) ;
int_adapter ( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
int_adapter (int_adapter & rhs) ;
int_adapter ( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
int_adapter (int_adapter & rhs) ;
int_adapter ( rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
int_adapter
public static functions();
int_adapter ();
int_adapter ();
int_adapter ();
int_adapter ();
int_adapter ();
int_adapter ( sv);
( v);
( v);
( v);
( v);
( v);Returns either special value type or is_not_special.
();
int_adapter
private member functions(int_adapter & rhs) ;returns -1, 0, 1, or 2 if 'this' is <, ==, >, or 'nan comparison' rhs
int_adapter (int_adapter & rhs) ;Assumes at least 'this' or 'rhs' is a special value.
int_adapter ( rhs) ;Assumes 'this' is a special value.