Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

data.h File Reference

#include <stdio.h>
#include <string>

Go to the source code of this file.

Compounds

class  Data
struct  gradient_t

Defines

#define MB_TO_DATASET_THRES(x)   ((x) << 19)
#define DATASET_TO_MB(x)   ((x) >> 19)

Functions

gradient_t operator * (gradient_t g, float s)
gradient_t operator+ (gradient_t g1, gradient_t g2)


Define Documentation

#define DATASET_TO_MB      ((x) >> 19)
 

Definition at line 11 of file data.h.

Referenced by Data::LoadData().

#define MB_TO_DATASET_THRES      ((x) << 19)
 

Definition at line 10 of file data.h.

Referenced by Data::Data(), and Data::SetDataPackets().


Function Documentation

gradient_t operator * gradient_t    g,
float    s
 

Definition at line 5 of file data.cpp.

References gradient_t::x, gradient_t::y, and gradient_t::z.

00006 {
00007         gradient_t res;
00008         res.x = g.x * s;
00009         res.y = g.y * s;
00010         res.z = g.z * s;
00011         return res;
00012 }

gradient_t operator+ gradient_t    g1,
gradient_t    g2
 

Definition at line 14 of file data.cpp.

References gradient_t::x, gradient_t::y, and gradient_t::z.

00015 {
00016         gradient_t res;
00017         res.x = g1.x + g2.x;
00018         res.y = g1.y + g2.y;
00019         res.z = g1.z + g2.z;
00020         return res;
00021 }


Generated on Thu Jan 23 12:32:16 2003 by doxygen1.3-rc2