S3FC project page S3FC home page

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

s3_utils Class Reference

Some utility functions. More...

#include <s3_utils.h>

List of all members.

Static Public Methods

template<typename T> T sqr (const T &t)
 Return the product of the argument with itself (i.e. More...

template<typename T> T min (const T &t0, const T &t1)
 Return the smaller of the two arguments. More...

template<typename T> T max (const T &t0, const T &t1)
 Return the larger of the two arguments. More...

float time_diff (const timeval &time_start, const timeval &time_end)
 This method returns the difference in seconds between the start and the stop time. More...


Detailed Description

Some utility functions.

Definition at line 43 of file s3_utils.h.


Member Function Documentation

template<typename T>
T s3_utils::max const T &    t0,
const T &    t1
[inline, static]
 

Return the larger of the two arguments.

Definition at line 71 of file s3_utils.h.

template<typename T>
T s3_utils::min const T &    t0,
const T &    t1
[inline, static]
 

Return the smaller of the two arguments.

Definition at line 62 of file s3_utils.h.

template<typename T>
T s3_utils::sqr const T &    t [inline, static]
 

Return the product of the argument with itself (i.e.

its square).

Parameters:
t  Input to be squared.

Definition at line 53 of file s3_utils.h.

float s3_utils::time_diff const timeval &    time_start,
const timeval &    time_end
[inline, static]
 

This method returns the difference in seconds between the start and the stop time.

A negative result indicates something happened EXTREMELY quickly!

Parameters:
time_start  A constant reference to the start time.
time_end  A constant reference to the stop time.
Returns:
The time duration in seconds.

Definition at line 86 of file s3_utils.h.


The documentation for this class was generated from the following file:
Send comments to: s3fc@stonethree.com SourceForge Logo