NeoPZ
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
TPZAssert Class Reference

#include <TPZAssert.h>

Public Member Functions

template<>
int & NonNegative (int &)
 
template<>
int64_t & NonNegative (int64_t &)
 
template<>
float & NonNegative (float &)
 
template<>
double & NonNegative (double &)
 
template<>
long double & NonNegative (long double &)
 
template<>
int NonNegative (const int &)
 
template<>
int64_t NonNegative (const int64_t &)
 
template<>
float NonNegative (const float &)
 
template<>
double NonNegative (const double &)
 
template<>
long double NonNegative (const long double &)
 

Static Public Member Functions

template<typename T >
static T & NonNegative (T &value)
 
template<typename T >
static T NonNegative (const T &value)
 

Static Private Member Functions

template<typename T , typename TValue >
static void SetValue (T &var, const TValue value)
 

Detailed Description

Definition at line 14 of file TPZAssert.h.

Member Function Documentation

◆ NonNegative() [1/12]

template<>
int& TPZAssert::NonNegative ( int &  )

◆ NonNegative() [2/12]

template<>
int64_t& TPZAssert::NonNegative ( int64_t &  )

◆ NonNegative() [3/12]

template<>
float& TPZAssert::NonNegative ( float &  )

◆ NonNegative() [4/12]

template<>
double& TPZAssert::NonNegative ( double &  )

◆ NonNegative() [5/12]

template<>
long double& TPZAssert::NonNegative ( long double &  )

◆ NonNegative() [6/12]

template<>
int TPZAssert::NonNegative ( const int &  )

◆ NonNegative() [7/12]

template<>
int64_t TPZAssert::NonNegative ( const int64_t &  )

◆ NonNegative() [8/12]

template<typename T >
static T& TPZAssert::NonNegative ( T &  value)
inlinestatic

Definition at line 18 of file TPZAssert.h.

References TPZExtractVal::IsZero(), and SetValue().

Referenced by TPZTensor< STATE >::J2(), and NonNegative().

◆ NonNegative() [9/12]

template<>
float TPZAssert::NonNegative ( const float &  )

◆ NonNegative() [10/12]

template<>
double TPZAssert::NonNegative ( const double &  )

◆ NonNegative() [11/12]

template<>
long double TPZAssert::NonNegative ( const long double &  )

◆ NonNegative() [12/12]

template<typename T >
static T TPZAssert::NonNegative ( const T &  value)
inlinestatic

Definition at line 27 of file TPZAssert.h.

References NonNegative().

◆ SetValue()

template<typename T , typename TValue >
static void TPZAssert::SetValue ( T &  var,
const TValue  value 
)
inlinestaticprivate

Definition at line 35 of file TPZAssert.h.

References TPZExtractVal::ref().

Referenced by NonNegative().


The documentation for this class was generated from the following files: