diff --git a/fastlib/branches/fastlib-cmake/src/col/heap.h b/fastlib/branches/fastlib-cmake/src/col/heap.h index 390256a86c..3d5f5e07b1 100644 --- a/fastlib/branches/fastlib-cmake/src/col/heap.h +++ b/fastlib/branches/fastlib-cmake/src/col/heap.h @@ -78,7 +78,8 @@ class MinHeap { template void serialize(Archive & ar, const unsigned int version) { - ar & entries_; + //ArrayList to be replaced by std::vector + //ar & entries_; } /** diff --git a/fastlib/branches/fastlib-cmake/src/data/dataset.h b/fastlib/branches/fastlib-cmake/src/data/dataset.h index 7db05e0a4c..6e0dff88b8 100644 --- a/fastlib/branches/fastlib-cmake/src/data/dataset.h +++ b/fastlib/branches/fastlib-cmake/src/data/dataset.h @@ -47,6 +47,11 @@ #include "../la/matrix.h" #include "../math/discrete.h" #include "../file/textfile.h" +#include +#include +#include +#include +#include class TextLineReader; class TextWriter; @@ -87,6 +92,7 @@ class DatasetFeature { OT_ENUM_VAL(NOMINAL)); OT_OBJ(value_names_); } + /** * Initialization common to all features. @@ -104,9 +110,11 @@ class DatasetFeature { template void serialize(Archive & ar, const unsigned int version) { - ar & name_; + // String will be replaced by std::string + //ar & name_; ar & type_; - ar & value_names_; + // ArrayList will be replaced by std::vector + //ar & value_names_; } /** @@ -237,6 +245,18 @@ class DatasetInfo { } public: + + friend class boost::serialization::access; // Should be removed later + + template + void serialize(Archive & ar, QueryStat & query) + { + // String will be replaced by std::string + //ar & name_; + // ArrayList will be replaced by std::vector + //ar & features_; + } + /** Gets a mutable list of all features. */ ArrayList& features() { return features_; diff --git a/fastlib/branches/fastlib-cmake/src/math/kernel.h b/fastlib/branches/fastlib-cmake/src/math/kernel.h index f295afd674..38ae160e11 100644 --- a/fastlib/branches/fastlib-cmake/src/math/kernel.h +++ b/fastlib/branches/fastlib-cmake/src/math/kernel.h @@ -143,18 +143,30 @@ class GaussianStarKernel { double critical_point_sq_; double critical_point_value_; - OBJECT_TRAVERSAL(GaussianStarKernel) { + /*OBJECT_TRAVERSAL(GaussianStarKernel) { OT_OBJ(neg_inv_bandwidth_2sq_); OT_OBJ(factor_); OT_OBJ(bandwidth_sq_); OT_OBJ(critical_point_sq_); OT_OBJ(critical_point_value_); - } + }*/ public: static const bool HAS_CUTOFF = false; public: + + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int version) + { + ar & neg_inv_bandwidth_2sq_; + ar & factor_; + ar & bandwidth_sq_; + ar & critical_point_sq_; + ar & critical_point_value_; + } + double bandwidth_sq() const { return bandwidth_sq_; } @@ -236,15 +248,24 @@ class EpanKernel { double inv_bandwidth_sq_; double bandwidth_sq_; - OBJECT_TRAVERSAL(EpanKernel) { + /*OBJECT_TRAVERSAL(EpanKernel) { OT_OBJ(inv_bandwidth_sq_); OT_OBJ(bandwidth_sq_); - } + }*/ public: static const bool HAS_CUTOFF = true; public: + + friend class boost::serialization::access; + template + void serialize(Archive & ar, const unsigned int version) + { + ar & inv_bandwidth_sq_; + ar & bandwidth_sq_; + } + void Init(double bandwidth_in, index_t dims) { Init(bandwidth_in); }