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
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
  template<typename rhs_type> 
     
    () ;
   () ;
  template<typename rhs_type> 
     
    () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;
   () ;

  // public static functions
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();
   ();

  // private member functions
   () ;
   
  () ;
   () ;
};

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.  ( rhs) ;
  7.  ( rhs) ;
  8.  ( rhs) ;
  9.  ( rhs) ;
  10.  ( rhs) ;
  11.  ( rhs) ;
  12.  ( rhs) ;
  13.  () ;
  14.  () ;
    Returns either special value type or is_not_special.
  15. template<typename 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.  ( rhs) ;
  17. template<typename 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.  ( rhs) ;
  19.  ( rhs) ;
  20.  ( rhs) ;

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

  21.  ( rhs) ;
  22.  ( rhs) ;

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

  23.  ( rhs) ;
  24.  ( rhs) ;

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

int_adapter public static functions

  1.  ();
  2.  ();
  3.  ();
  4.  ();
  5.  ();
  6.  ();
  7.  ( 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.  ( rhs) ;
    returns -1, 0, 1, or 2 if 'this' is <, ==, >, or 'nan comparison' rhs
  2.  
    ( rhs) ;
    Assumes at least 'this' or 'rhs' is a special value.
  3.  ( rhs) ;
    Assumes 'this' is a special value.

PrevUpHomeNext