Ignore:
Timestamp:
Jan 30, 2006 6:40:05 PM (18 years ago)
Author:
bennylp
Message:

Finished implementation of UA layer (to be tested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj++/types.hpp

    r65 r127  
    157157}; 
    158158 
     159// 
     160// Macro to declare common object comparison operators. 
     161// 
     162#define PJ_DECLARE_OPERATORS(rhs_type)                      \ 
     163            bool operator!=(rhs_type rhs) const {           \ 
     164                return !operator==(rhs); }                  \ 
     165            bool operator<=(rhs_type rhs) const {           \ 
     166                return operator<(rhs) || operator==(rhs); } \ 
     167            bool operator>(rhs_type rhs) const {            \ 
     168                return !operator<=(rhs); }                  \ 
     169            bool operator>=(rhs_type rhs) const {           \ 
     170                return !operator<(rhs); } 
     171 
     172 
    159173#endif  /* __PJPP_TYPES_HPP__ */ 
    160174 
Note: See TracChangeset for help on using the changeset viewer.