#include <config.h>
#include <xapian/error.h>
#include "omassert.h"
#include "serialise-double.h"
#include <float.h>
#include <math.h>
#include <algorithm>
#include <string>
Include dependency graph for serialise-double.cc:
Go to the source code of this file.
Functions | |
static int | base256ify_double (double &v) |
std::string | serialise_double (double v) |
Serialise a double to a string. | |
double | unserialise_double (const char **p, const char *end) |
Unserialise a double serialised by serialise_double. |
static int base256ify_double | ( | double & | v | ) | [static] |
Definition at line 64 of file serialise-double.cc.
Referenced by serialise_double(), and unserialise_double().
std::string serialise_double | ( | double | v | ) |
Serialise a double to a string.
v | The double to serialise. |
Definition at line 75 of file serialise-double.cc.
References Assert, and base256ify_double().
Referenced by check_double_serialisation(), RemoteServer::RemoteServer(), Xapian::TradWeight::serialise(), ScaleWeight::serialise(), Xapian::BM25Weight::serialise(), serialise_mset(), serialise_mset_pre_30_5(), serialise_stats(), Xapian::Query::Internal::set_dbl_parameter(), and RemoteDatabase::set_query().
double unserialise_double | ( | const char ** | p, | |
const char * | end | |||
) |
Unserialise a double serialised by serialise_double.
p | Pointer to a pointer to the string, which will be advanced past the serialised double. | |
end | Pointer to the end of the string. |
Definition at line 134 of file serialise-double.cc.
References base256ify_double().
Referenced by check_double_serialisation(), Xapian::Query::Internal::get_dbl_parameter(), RemoteDatabase::get_doclength(), NetworkPostList::next(), RemoteDatabase::open_term_list(), QUnserial::readcompound(), RemoteDatabase::RemoteDatabase(), ScaleWeight::unserialise(), unserialise_mset(), unserialise_stats(), and RemoteDatabase::update_stats().