vector_bin.h File Reference

Go to the source code of this file.

Classes

struct  Pair
 Pair structure that is used for sparse vectors. More...
struct  serialized_svector_entry
 This structure is used when SVector is being written as binary data during socket communication Essentially, Pair and this structure are same. More...
struct  serialized_fvector_entry
 This structure is used when FVector is being written as binary data during socket communication. More...

Functions

size_t calculate_svector_total_size (int _size)
 Calculates total # of bytes that are used by SVector.
size_t calculate_fvector_total_size (int _size)
 Calculates total # of bytes that are used by FVector.
size_t write_fvector_bin_psql_double (void *out, size_t max_size, int _size, double *ddata)
 Writes given Fvector as binary data.
size_t write_svector_bin_psql_pair (void *out, size_t max_size, int _size, Pair *ddata)
 Writes given Svector as binary data.


Function Documentation

size_t calculate_fvector_total_size ( int  _size  ) 

Calculates total # of bytes that are used by FVector.

Parameters:
[in] _size # of elements (dimension) in FVector /return size of the FVector in bytes

size_t calculate_svector_total_size ( int  _size  ) 

Calculates total # of bytes that are used by SVector.

Parameters:
[in] _size # of elements in SVector
Returns:
size of the SVector in bytes

size_t write_fvector_bin_psql_double ( void *  out,
size_t  max_size,
int  _size,
double *  ddata 
)

Writes given Fvector as binary data.

Parameters:
[out] out data pointer that FVector will be written to
[in] max_size maximum size of the data pointer (out)
[in] _size # of elements in the FVector
[in] ddata FVector data
Returns:
# of bytes that are written to out data

size_t write_svector_bin_psql_pair ( void *  out,
size_t  max_size,
int  _size,
Pair ddata 
)

Writes given Svector as binary data.

Parameters:
[out] out data pointer that SVector will be written to
[in] max_size maximum size of the data pointer (out)
[in] _size # of elements in the SVector
[in] ddata SVector data
Returns:
# of bytes that are written to out data


Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7