NCBI C++ ToolKit
Classes | Macros
promote.hpp File Reference
#include <corelib/ncbistd.hpp>
+ Include dependency graph for promote.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SPromoteTraits< T, U >
 
struct  SPromoteTraits< char, char >
 
struct  SPromoteTraits< unsigned char, unsigned char >
 
struct  SPromoteTraits< short, short >
 
struct  SPromoteTraits< unsigned short, unsigned short >
 
struct  SPromoteTraits< int, int >
 
struct  SPromoteTraits< unsigned int, unsigned int >
 
struct  SPromoteTraits< float, float >
 
struct  SPromoteTraits< double, double >
 
struct  SPromoteTraits< char, unsigned char >
 
struct  SPromoteTraits< unsigned char, char >
 
struct  SPromoteTraits< char, short >
 
struct  SPromoteTraits< short, char >
 
struct  SPromoteTraits< char, unsigned short >
 
struct  SPromoteTraits< unsigned short, char >
 
struct  SPromoteTraits< char, int >
 
struct  SPromoteTraits< int, char >
 
struct  SPromoteTraits< char, unsigned int >
 
struct  SPromoteTraits< unsigned int, char >
 
struct  SPromoteTraits< char, float >
 
struct  SPromoteTraits< float, char >
 
struct  SPromoteTraits< char, double >
 
struct  SPromoteTraits< double, char >
 
struct  SPromoteTraits< unsigned char, short >
 
struct  SPromoteTraits< short, unsigned char >
 
struct  SPromoteTraits< unsigned char, unsigned short >
 
struct  SPromoteTraits< unsigned short, unsigned char >
 
struct  SPromoteTraits< unsigned char, int >
 
struct  SPromoteTraits< int, unsigned char >
 
struct  SPromoteTraits< unsigned char, unsigned int >
 
struct  SPromoteTraits< unsigned int, unsigned char >
 
struct  SPromoteTraits< unsigned char, float >
 
struct  SPromoteTraits< float, unsigned char >
 
struct  SPromoteTraits< unsigned char, double >
 
struct  SPromoteTraits< double, unsigned char >
 
struct  SPromoteTraits< short, unsigned short >
 
struct  SPromoteTraits< unsigned short, short >
 
struct  SPromoteTraits< short, int >
 
struct  SPromoteTraits< int, short >
 
struct  SPromoteTraits< short, unsigned int >
 
struct  SPromoteTraits< unsigned int, short >
 
struct  SPromoteTraits< short, float >
 
struct  SPromoteTraits< float, short >
 
struct  SPromoteTraits< short, double >
 
struct  SPromoteTraits< double, short >
 
struct  SPromoteTraits< unsigned short, int >
 
struct  SPromoteTraits< int, unsigned short >
 
struct  SPromoteTraits< unsigned short, unsigned int >
 
struct  SPromoteTraits< unsigned int, unsigned short >
 
struct  SPromoteTraits< unsigned short, float >
 
struct  SPromoteTraits< float, unsigned short >
 
struct  SPromoteTraits< unsigned short, double >
 
struct  SPromoteTraits< double, unsigned short >
 
struct  SPromoteTraits< int, unsigned int >
 
struct  SPromoteTraits< unsigned int, int >
 
struct  SPromoteTraits< int, float >
 
struct  SPromoteTraits< float, int >
 
struct  SPromoteTraits< int, double >
 
struct  SPromoteTraits< double, int >
 
struct  SPromoteTraits< unsigned int, float >
 
struct  SPromoteTraits< float, unsigned int >
 
struct  SPromoteTraits< unsigned int, double >
 
struct  SPromoteTraits< double, unsigned int >
 
struct  SPromoteTraits< float, double >
 
struct  SPromoteTraits< double, float >
 

Macros

#define NCBI_PROMOTE_TRAITS(type)
 
#define NCBI_PROMOTE2_TRAITS(type1, type2, type3)
 
#define NCBI_PROMOTE(a, b)   typename SPromoteTraits< a, b >::TPromote
 

Macro Definition Documentation

◆ NCBI_PROMOTE

#define NCBI_PROMOTE (   a,
  b 
)    typename SPromoteTraits< a, b >::TPromote

Definition at line 86 of file promote.hpp.

◆ NCBI_PROMOTE2_TRAITS

#define NCBI_PROMOTE2_TRAITS (   type1,
  type2,
  type3 
)
Value:
template<> struct SPromoteTraits< type1, type2 > { \
public: \
typedef type3 TPromote; \
}; \
template<> struct SPromoteTraits< type2, type1 > { \
public: \
typedef type3 TPromote; \
}

Definition at line 68 of file promote.hpp.

◆ NCBI_PROMOTE_TRAITS

#define NCBI_PROMOTE_TRAITS (   type)
Value:
template<> struct SPromoteTraits< type, type > { \
public: \
typedef type TPromote; \
}
Definition: type.c:6

Definition at line 59 of file promote.hpp.

Modified on Sun Apr 14 05:24:46 2024 by modify_doxy.py rev. 669887