VAPOR3 3.9.4
Classes | Namespaces | Macros | Functions | Variables
MyBase.h File Reference
#include <cmath>
#include <cstdarg>
#include <string>
#include <cstring>
#include <vector>
#include <vapor/common.h>

Go to the source code of this file.

Classes

class  Wasp::MyBase
 Wasp base class. More...
 

Namespaces

namespace  Wasp
 

Macros

#define FSEEK64   fseek64
 
#define FOPEN64   fopen64
 
#define STAT64_T   stat64
 
#define STAT64   stat64
 
#define TIME64_T   int64_t
 

Functions

COMMON_API int Wasp::IsOdd (int x)
 
COMMON_API int Wasp::IsPowerOfTwo (unsigned int x)
 Return true if power of two.
 
COMMON_API int Wasp::Min (int a, int b)
 
COMMON_API int Wasp::Max (int a, int b)
 
COMMON_API size_t Wasp::Min (size_t a, size_t b)
 
COMMON_API size_t Wasp::Max (size_t a, size_t b)
 
COMMON_API float Wasp::Min (float a, float b)
 
COMMON_API float Wasp::Max (float a, float b)
 
COMMON_API double Wasp::Min (double a, double b)
 
COMMON_API double Wasp::Max (double a, double b)
 
COMMON_API double Wasp::LogBaseN (double x, double n)
 
COMMON_API int Wasp::ILog2 (int n)
 
COMMON_API int Wasp::StrCmpNoCase (const string &s, const string &t)
 Case-insensitive string comparison.
 
COMMON_API void Wasp::StrRmWhiteSpace (string &s)
 Remove white space from a string.
 
COMMON_API void Wasp::StrToWordVec (const string &s, vector< string > &v)
 Parse a string, returning a vector of words.
 
COMMON_API std::vector< std::string > & Wasp::SplitString (const std::string &s, char delim, std::vector< std::string > &elems)
 
COMMON_API std::vector< size_t > & Wasp::SplitString (const std::string &s, char delim, std::vector< size_t > &elems)
 
COMMON_API std::vector< int > & Wasp::SplitString (const std::string &s, char delim, std::vector< int > &elems)
 
COMMON_API std::vector< float > & Wasp::SplitString (const std::string &s, char delim, std::vector< float > &elems)
 
COMMON_API std::vector< double > & Wasp::SplitString (const std::string &s, char delim, std::vector< double > &elems)
 
COMMON_API unsigned long long Wasp::GetBits64 (unsigned long long targ, int pos, int n)
 
COMMON_API unsigned long long Wasp::SetBits64 (unsigned long long targ, int pos, int n, unsigned long long src)
 
COMMON_API double Wasp::ran1 (long *)
 

Variables

const float Wasp::ABOVE_GRID = 0.f
 
const float Wasp::BELOW_GRID = 0.f
 

Macro Definition Documentation

◆ FOPEN64

#define FOPEN64   fopen64

Definition at line 390 of file MyBase.h.

◆ FSEEK64

#define FSEEK64   fseek64

Definition at line 375 of file MyBase.h.

◆ STAT64

#define STAT64   stat64

Definition at line 421 of file MyBase.h.

◆ STAT64_T

#define STAT64_T   stat64

Definition at line 420 of file MyBase.h.

◆ TIME64_T

#define TIME64_T   int64_t

Definition at line 428 of file MyBase.h.