Util Class Reference

This class contains all general & stateless utilities. More...

#include <Util.h>

List of all members.

Static Public Member Functions

static QString formattedDistance (double d)
 Format a distance to be printed.
static bool cmp (double a, double b)
 Compare two doubles.
static QByteArray randomKey (int size)
 Get a random key of length size.

Detailed Description

This class contains all general & stateless utilities.


Member Function Documentation

bool Util::cmp ( double  a,
double  b 
) [static]

Compare two doubles.

Parameters:
a the first double
b the other double
Returns:
a bool to indicate whether they are equal
QString Util::formattedDistance ( double  dist  )  [static]

Format a distance to be printed.

Returns:
the formatted distance
QByteArray Util::randomKey ( int  size  )  [static]

Get a random key of length size.

Parameters:
size is the size of the Key, typically 128
Returns:
the random key

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3