Audio Effects Framework
CUtil Class Reference

class with static utility functions More...

#include <Util.h>

Static Public Member Functions

template<typename T >
static T float2int (float fInput)
 
template<typename T >
static T double2int (double fInput)
 
static bool isPowOf2 (int n)
 
static int nextPowOf2 (int n)
 
template<typename T >
static void swap (T &tValue1, T &tValue2)
 

Detailed Description

class with static utility functions

Member Function Documentation

◆ double2int()

template<typename T >
static T CUtil::double2int ( double  fInput)
inlinestatic

converts a double to an int

Parameters
fInputdouble value
Returns
T

◆ float2int()

template<typename T >
static T CUtil::float2int ( float  fInput)
inlinestatic

converts a float to an int

Parameters
fInputfloat value
Returns
T

◆ isPowOf2()

static bool CUtil::isPowOf2 ( int  n)
inlinestatic

checks if the input is a power of 2

Parameters
ninteger value
Returns
bool

◆ nextPowOf2()

static int CUtil::nextPowOf2 ( int  n)
inlinestatic

converts an arbitrary integer (positive) to the next larger power of two

Parameters
ninteger value
Returns
int

◆ swap()

template<typename T >
static void CUtil::swap ( T &  tValue1,
T &  tValue2 
)
inlinestatic

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