Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Darc/dc_main.h File Reference
#include <stdint.h>

Namespaces

namespace  darc

Defines

#define DC_API   __declspec (dllimport)
#define DC_COPY(NAME)   NAME (const NAME & src){}
#define DC_ASSIGN(NAME)   NAME& operator = (const NAME& src){ return *this; }
#define DC_DELETE_ARRAY(X)   {delete[] X; X=NULL;}
#define DCC1(X0)   m##X0##(##X0##)
#define DCC2(X0, X1)   DCC1(X0), DCC1(X1)
#define DCC3(X0, X1, X2)   DCC1(X0), DCC2(X1, X2)
#define DC_CAST(E, O)   ((E*)O)
#define DC_NO_COPY(NAME)   NAME (const NAME & src){} NAME& operator = (const NAME& src){ return *this; }

Typedefs

typedef uint8_t darc::Byte
typedef int16_t darc::Short
typedef uint16_t darc::UShort
typedef wchar_t darc::WChar
typedef int32_t darc::Int
typedef uint32_t darc::UInt
typedef float darc::Real
typedef int64_t darc::Int64
typedef uint64_t darc::UInt64
typedef double darc::Real64
typedef UInt darc::DCR

Enumerations

enum  darc::E_DCR {
  darc::OK = 0, darc::FAILED, darc::ARG_NULL, darc::ARG_INVALID,
  darc::OUT_OF_BOUNDS, darc::OUT_OF_MEMORY, darc::NOT_AVAILABLE, darc::INACTIVE,
  darc::CORRUPTED, darc::NOT_FOUND
}
 General return types. Range 0-99. More...
enum  darc::DC_ELANGUAGE { darc::DC_ALL, darc::DC_ENGLISH, darc::DC_GERMAN, darc::DC_LANGUAGE_MAX }

Functions

template<typename T >
darc::Sq (const T &_tValue)
template<typename T >
darc::DC_DTR (T _tDeg)
template<typename T >
darc::DC_RTD (T _tRad)
template<typename T >
void darc::Delete (T *&_ptObj)
template<typename T >
void darc::Null (T *&_ptObj)
template<class T >
darc::Random (T _min, T _max)
 Returns a random number without seeding.
Int DC_API darc::dc_sign (Real _x)
template<class T >
T * darc::dc_bsearch_first (T *_v, T *_key, int _left, int _right)
DC_API UInt64 darc::dc_getHash (Byte *data, UInt len)

Variables

static const Real64 darc::EPSILON = 0.000001
static const Real64 darc::PI = 3.1415926535897932384626433832795

Define Documentation

#define DC_API   __declspec (dllimport)
#define DC_ASSIGN (   NAME)    NAME& operator = (const NAME& src){ return *this; }
#define DC_CAST (   E,
 
)    ((E*)O)
#define DC_COPY (   NAME)    NAME (const NAME & src){}
#define DC_DELETE_ARRAY (   X)    {delete[] X; X=NULL;}
#define DC_NO_COPY (   NAME)    NAME (const NAME & src){} NAME& operator = (const NAME& src){ return *this; }
#define DCC1 (   X0)    m##X0##(##X0##)
#define DCC2 (   X0,
  X1 
)    DCC1(X0), DCC1(X1)
#define DCC3 (   X0,
  X1,
  X2 
)    DCC1(X0), DCC2(X1, X2)