44 #ifndef TEUCHOS_CONFIGDEFS_HPP 45 #define TEUCHOS_CONFIGDEFS_HPP 52 #include "Teuchos_config.h" 54 #ifdef HAVE_TEUCHOS_DEBUG 55 # define TEUCHOS_DEBUG 56 # define HAVE_TEUCHOS_ARRAY_BOUNDSCHECK 61 #if defined(_MSC_VER) || defined(__APPLE__) 62 # define TEUCHOS_NO_ZERO_ITERATOR_CONVERSION 65 #if defined(__IBMC__) || defined(__IBMCPP__) 66 # ifndef TEMPLATE_FRIENDS_NOT_SUPPORTED 67 # define TEMPLATE_FRIENDS_NOT_SUPPORTED 69 # ifndef TEUCHOS_PRIVIATE_DELETE_NOT_SUPPORTED 70 # define TEUCHOS_PRIVIATE_DELETE_NOT_SUPPORTED 107 #if defined(__IBMCPP__) 108 # pragma do_not_instantiate std::fpos<mbstate_t> 111 namespace Teuchos {
class DummyDummyClass; }
115 const double Teuchos_MinDouble = 1.0E-100;
116 const double Teuchos_MaxDouble = 1.0E+100;
117 const double Teuchos_Overflow = 1.79E308;
118 const double Teuchos_Underflow = 2.23E-308;
123 #define TEUCHOS_OSTRINGSTREAM_GET_C_STR(OSS) (OSS).str().c_str() 124 typedef std::ostringstream TeuchosOStringStream;
134 #ifdef TEUCHOS_CHK_ERR 135 #undef TEUCHOS_CHK_ERR 137 #ifdef TEUCHOS_CHK_PTR 138 #undef TEUCHOS_CHK_PTR 140 #ifdef TEUCHOS_CHK_REF 141 #undef TEUCHOS_CHK_REF 150 typedef TEUCHOS_ORDINAL_TYPE Teuchos_Ordinal;
153 namespace Teuchos {
typedef Teuchos_Ordinal Ordinal; }
157 TEUCHOS_DEPRECATED
typedef Teuchos_Ordinal Teuchos_Index;
161 #define TEUCHOS_CHK_ERR(a) { if (a != 0) return(a);} 162 #define TEUCHOS_CHK_PTR(a) { return(a);} 163 #define TEUCHOS_CHK_REF(a) { return(a);} 166 const int Teuchos_DefaultTracebackMode = 1;
170 #define TEUCHOS_MAX(x,y) (( (x) > (y) ) ? (x) : (y) ) 171 #define TEUCHOS_MIN(x,y) (( (x) < (y) ) ? (x) : (y) ) 172 #define TEUCHOS_SGN(x) (( (x) < 0.0 ) ? -1.0 : 1.0 ) 174 #ifndef HAVE_FORTRAN_SUPPORT 175 # ifndef FORTRAN_DISABLED 176 # define FORTRAN_DISABLED 180 #include "Teuchos_DLLExportMacro.h" The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.