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  ;

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

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

  1. ( v);

int_adapter public member functions

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

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

  18. int_adapter ( rhs) ;
  19. int_adapter (int_adapter & rhs) ;
  20. int_adapter ( rhs) ;

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

  21. int_adapter (int_adapter & rhs) ;
  22. int_adapter ( rhs) ;

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

  23. int_adapter (int_adapter & rhs) ;
  24. int_adapter ( rhs) ;

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

int_adapter public static functions

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

int_adapter private member functions

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

PrevUpHomeNext