Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template int_adapter

boost::date_time::int_adapter — Adapter to create integer types with +-infinity, and not a value.

Synopsis

// 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 &) ;
};

Description

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 construct/copy/destruct

int_adapter public member functions

  1. BOOST_CONSTEXPR bool () ;
  2. BOOST_CONSTEXPR bool () ;
  3. BOOST_CONSTEXPR bool () ;
  4. BOOST_CONSTEXPR bool () ;
  5. BOOST_CONSTEXPR bool () ;
  6. BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
  7. BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
  8. BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
  9. BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
  10. BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
  11. BOOST_CXX14_CONSTEXPR bool (const int & rhs) ;
  12. BOOST_CONSTEXPR bool (const int_adapter & rhs) ;
  13. BOOST_CONSTEXPR int_type () ;
  14. BOOST_CONSTEXPR  () ;
    Returns either special value type or is_not_special.
  15. 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

  16. BOOST_CXX14_CONSTEXPR int_adapter (const int_type rhs) ;
  17. 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

  18. BOOST_CXX14_CONSTEXPR int_adapter (const int_type rhs) ;
  19. BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
  20. BOOST_CXX14_CONSTEXPR int_adapter (const int rhs) ;

    Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results.

  21. BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
  22. BOOST_CXX14_CONSTEXPR int_adapter (const int rhs) ;

    Provided for cases when automatic conversion from 'int' to 'int_adapter' causes incorrect results.

  23. BOOST_CXX14_CONSTEXPR int_adapter (const int_adapter & rhs) ;
  24. 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 functions

  1. BOOST_CONSTEXPR bool ();
  2. BOOST_CONSTEXPR int_adapter ();
  3. BOOST_CONSTEXPR int_adapter ();
  4. BOOST_CONSTEXPR int_adapter ();
  5. BOOST_CONSTEXPR int_adapter max ();
  6. BOOST_CONSTEXPR int_adapter min ();
  7. BOOST_CXX14_CONSTEXPR int_adapter ( sv);
  8. BOOST_CONSTEXPR bool (int_type v);
  9. BOOST_CXX14_CONSTEXPR bool (int_type v);
  10. BOOST_CXX14_CONSTEXPR bool (int_type v);
  11. BOOST_CXX14_CONSTEXPR bool (int_type v);
  12. BOOST_CXX14_CONSTEXPR  (int_type v);
    Returns either special value type or is_not_special.
  13. BOOST_CONSTEXPR int_type ();

int_adapter private member functions

  1. BOOST_CXX14_CONSTEXPR int (const int_adapter & rhs) ;
    returns -1, 0, 1, or 2 if 'this' is <, ==, >, or 'nan comparison' rhs
  2. BOOST_CXX14_CONSTEXPR int_adapter 
    (const int_adapter & rhs) ;
    Assumes at least 'this' or 'rhs' is a special value.
  3. BOOST_CXX14_CONSTEXPR int_adapter (const int & rhs) ;
    Assumes 'this' is a special value.

PrevUpHomeNext