DB Class Reference

#include <units.h>


Public Member Functions

 DB (float infinitygain=INFINITYGAIN)
virtual ~DB ()
float fromdb_table ()
float fromdb_table (float db)
float fromdb ()
DBoperator++ ()
DBoperator-- ()
DBoperator= (DB &newdb)
DBoperator= (int newdb)
int operator== (DB &newdb)
int operator== (int newdb)

Static Public Member Functions

static float fromdb (float db)
static float todb (float power)

Data Fields

float db
float infinitygain

Static Public Attributes

static float * topower = 0

Static Private Attributes

static float * allocated = NULL


Detailed Description

Definition at line 39 of file units.h.


Constructor & Destructor Documentation

DB::DB ( float  infinitygain = INFINITYGAIN  ) 

Definition at line 18 of file units.C.

References allocated, db, INFINITYGAIN, MAXGAIN, NULL, and topower.

virtual DB::~DB (  )  [inline, virtual]

Definition at line 43 of file units.h.


Member Function Documentation

float DB::fromdb_table (  ) 

Definition at line 41 of file units.C.

References db, and topower.

float DB::fromdb_table ( float  db  ) 

Definition at line 46 of file units.C.

References INFINITYGAIN, MAXGAIN, and topower.

float DB::fromdb (  ) 

float DB::fromdb ( float  db  )  [static]

Definition at line 58 of file units.C.

float DB::todb ( float  power  )  [static]

DB& DB::operator++ (  )  [inline]

Definition at line 55 of file units.h.

References db, and MAXGAIN.

DB& DB::operator-- (  )  [inline]

Definition at line 56 of file units.h.

References db, and INFINITYGAIN.

DB& DB::operator= ( DB newdb  )  [inline]

Definition at line 57 of file units.h.

References db.

DB& DB::operator= ( int  newdb  )  [inline]

Definition at line 58 of file units.h.

References db.

int DB::operator== ( DB newdb  )  [inline]

Definition at line 59 of file units.h.

References db.

int DB::operator== ( int  newdb  )  [inline]

Definition at line 60 of file units.h.


Field Documentation

float * DB::topower = 0 [static]

Definition at line 60 of file units.h.

Referenced by DB(), and fromdb_table().

float DB::db

Definition at line 63 of file units.h.

Referenced by DB(), fromdb(), fromdb_table(), operator++(), operator--(), operator=(), operator==(), and todb().

Definition at line 64 of file units.h.

float * DB::allocated = NULL [static, private]

Definition at line 66 of file units.h.

Referenced by DB().


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

Generated on Mon Apr 28 14:21:20 2008 for Cinelerra by  doxygen 1.5.5