OSGBaseFunctions.h File Reference

#include <cmath>
#include <cstring>
#include <strings.h>
#include <unistd.h>
#include <cerrno>
#include <iostream>
#include <ctime>
#include "OSGConfig.h"
#include "OSGBaseDef.h"
#include "OSGBaseTypes.h"
#include <vector>
#include <string>
#include <iterator>
#include <algorithm>
#include "OSGBaseFunctions.inl"

Go to the source code of this file.


Namespaces

namespace  OSG

Classes

struct  OSG::LTString
struct  OSG::EQString
struct  OSG::string_token_iterator
class  OSG::indirector< ContentT, IndexT >
struct  OSG::PtrStripper< PtrT >
struct  OSG::PtrStripper< PtrT * >
struct  OSG::PtrStripper< PtrT const * >
struct  OSG::PtrStripper< PtrT *const >

Functions

template<class FloatTypeT>
FloatTypeT OSG::osgAbs (const FloatTypeT rValue)
template<class TypeT>
bool OSG::osgIsPower2 (TypeT rValue)
template<class TypeT>
TypeT OSG::osgNextPower2 (TypeT rValue)
void OSG::osgGetHostname (char *szBuffer, UInt32 uiSize)
std::string OSG::getCallStack ()
template<class ValueTypeT>
ValueTypeT OSG::osgSwapBytes (ValueTypeT src)
Real128 OSG::osgntohd (Real128 src)
sqrt


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgSqrt (const FloatTypeT rValue)
cos


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgCos (const FloatTypeT rValue)
sin


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgSin (const FloatTypeT rValue)
tan


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgTan (const FloatTypeT rValue)
acos


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgACos (const FloatTypeT rValue)
asin


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgASin (const FloatTypeT rValue)
atan


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgATan (const FloatTypeT rValue)
atan2


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgATan2 (const FloatTypeT rValue1, const FloatTypeT rValue2)
pow


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgPow (const FloatTypeT rValue, const FloatTypeT rExp)
log


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgLog (const FloatTypeT rValue)
exp


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgExp (const FloatTypeT rValue)
floor


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgFloor (const FloatTypeT rValue)
ceil


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgCeil (const FloatTypeT rValue)
finite


template<class FloatTypeT>
UInt32 OSG::osgFinite (const FloatTypeT rValue)
min / max


template<class TypeT>
TypeT OSG::osgMin (const TypeT lValue, const TypeT rValue)
template<class TypeT>
TypeT OSG::osgMax (const TypeT lValue, const TypeT rValue)
template<class TypeT>
TypeT OSG::osgClamp (const TypeT minVal, const TypeT val, const TypeT maxVal)
swap


template<class TypeT>
void OSG::osgSwap (TypeT &lValue, TypeT &rValue)
sgn


template<class TypeT>
Int8 OSG::osgSgn (TypeT val)
degree2rad


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgDegree2Rad (const FloatTypeT rValue)
rad2degree


template<class FloatTypeT>
TypeTraits< FloatTypeT
>::RealReturnType 
OSG::osgRad2Degree (const FloatTypeT rValue)
Misc


int OSG::osgLog2Int (Real32 v)
Int32 OSG::osgRound2Int (Real64 val)
template<class VecPntT>
UInt32 OSG::getMaxIndexAbs3 (const VecPntT &v)
Int32 OSG::putenv (Char8 *string)
void OSG::osgSleep (UInt32 millisecs)
Real32 OSG::osgRand (void)
Byte Order


bool OSG::osgIsBigEndian (void)
template<class TypeT>
TypeT OSG::osgHostToBigEndian (TypeT src)
template<class TypeT>
TypeT OSG::osgHostToLittleEndian (TypeT src)
template<class TypeT>
TypeT OSG::osgBigEndianToHost (TypeT src)
template<class TypeT>
TypeT OSG::osgLittleEndianToHost (TypeT src)
template<class TypeT>
TypeT OSG::osgHostToNet (const TypeT src)
template<class TypeT>
TypeT OSG::osgNetToHost (const TypeT src)
UInt16 OSG::osghtons (UInt16 src)
UInt32 OSG::osghtonl (UInt32 src)
UInt64 OSG::osghtonll (UInt64 src)
Real32 OSG::osghtonf (Real32 src)
Real64 OSG::osghtond (Real64 src)
Real128 OSG::osghtondd (Real128 src)
UInt16 OSG::osgntohs (UInt16 src)
UInt32 OSG::osgntohl (UInt32 src)
UInt64 OSG::osgntohll (UInt64 src)
Real32 OSG::osgntohf (Real32 src)
Real64 OSG::osgntohd (Real64 src)
C strings


void OSG::osgStringDup (const TChar *szInput, TChar *&szOutput)
void OSG::osgStringCopy (const Char8 *szInput, Char8 *szOutput)
Int32 OSG::osgStringNCmp (const Char8 *string1, const Char8 *string2, size_t count)
Int32 OSG::osgStringLen (const Char8 *string1)
Int32 OSG::osgStringCmp (const Char8 *string1, const Char8 *string2)
Int32 OSG::osgStringCaseCmp (const Char8 *string1, const Char8 *string2)