![]() |
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 int_type_ ; // construct/copy/destruct (int_type); // public member functions BOOST_CONSTEXPR bool () ; BOOST_CONSTEXPR bool () ; BOOST_CONSTEXPR bool () ; BOOST_CONSTEXPR bool () ; BOOST_CONSTEXPR bool () ; BOOST_CONSTEXPR bool (const int_adapter &) ; BOOST_CXX14_CONSTEXPR bool (const int &) ; BOOST_CONSTEXPR bool (const int_adapter &) ; BOOST_CXX14_CONSTEXPR bool (const int &) ; BOOST_CONSTEXPR bool (const int_adapter &) ; BOOST_CXX14_CONSTEXPR bool (const int &) ; BOOST_CONSTEXPR bool (const int_adapter &) ; BOOST_CONSTEXPR int_type () ; BOOST_CONSTEXPR () ; template<typename rhs_type> BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter< rhs_type > &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_type) ; template<typename rhs_type> BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter< rhs_type > &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_type) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int) ; // public static functions BOOST_CONSTEXPR bool (); BOOST_CONSTEXPR int_adapter (); BOOST_CONSTEXPR int_adapter (); BOOST_CONSTEXPR int_adapter (); BOOST_CONSTEXPR int_adapter max (); BOOST_CONSTEXPR int_adapter min (); BOOST_CXX14_CONSTEXPR int_adapter (); BOOST_CONSTEXPR bool (int_type); BOOST_CXX14_CONSTEXPR bool (int_type); BOOST_CXX14_CONSTEXPR bool (int_type); BOOST_CXX14_CONSTEXPR bool (int_type); BOOST_CXX14_CONSTEXPR (int_type); BOOST_CONSTEXPR int_type (); // private member functions BOOST_CXX14_CONSTEXPR int (const int_adapter &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter &) ; BOOST_CXX14_CONSTEXPR int_adapter (const int &) ; };
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 functionsBOOST_CONSTEXPR bool () ;
BOOST_CONSTEXPR bool () ;
BOOST_CONSTEXPR bool () ;
BOOST_CONSTEXPR bool () ;
BOOST_CONSTEXPR bool () ;
BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
BOOST_CONSTEXPR int_type () ;
BOOST_CONSTEXPR () ;Returns either special value type or is_not_special.
template<typename rhs_type> BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter< rhs_type > & rhs) ;
Operator allows for adding dissimilar int_adapter
types. The return type will match that of the the calling object's type
BOOST_CXX14_CONSTEXPR int_adapter (const int_type rhs) ;
template<typename rhs_type> BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter< rhs_type > & rhs) ;
Operator allows for subtracting dissimilar int_adapter
types. The return type will match that of the the calling object's type
BOOST_CXX14_CONSTEXPR int_adapter (const int_type rhs) ;
BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR int_adapter (const int rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR int_adapter (const int rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
BOOST_CXX14_CONSTEXPR int_adapter (const int rhs) ;
Provided for cases when automatic conversion from 'int' to 'int_adapter
' causes incorrect results.
int_adapter
public static functionsBOOST_CONSTEXPR bool ();
BOOST_CONSTEXPR int_adapter ();
BOOST_CONSTEXPR int_adapter ();
BOOST_CONSTEXPR int_adapter ();
BOOST_CONSTEXPR int_adapter max ();
BOOST_CONSTEXPR int_adapter min ();
BOOST_CXX14_CONSTEXPR int_adapter ( sv);
BOOST_CONSTEXPR bool (int_type v);
BOOST_CXX14_CONSTEXPR bool (int_type v);
BOOST_CXX14_CONSTEXPR bool (int_type v);
BOOST_CXX14_CONSTEXPR bool (int_type v);
BOOST_CXX14_CONSTEXPR (int_type v);Returns either special value type or is_not_special.
BOOST_CONSTEXPR int_type ();
int_adapter
private member functionsBOOST_CXX14_CONSTEXPR int (const int_adapter & rhs) ;returns -1, 0, 1, or 2 if 'this' is <, ==, >, or 'nan comparison' rhs
BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;Assumes at least 'this' or 'rhs' is a special value.
BOOST_CXX14_CONSTEXPR int_adapter (const int & rhs) ;Assumes 'this' is a special value.