partitiontreenode.hpp

来自「dysii是一款非常出色的滤波函数库」· HPP 代码 · 共 77 行

HPP
77
字号
#ifndef INDII_ML_AUX_PARTITIONTREENODE_HPP#define INDII_ML_AUX_PARTITIONTREENODE_HPP#include "boost/serialization/serialization.hpp"namespace indii {  namespace ml {    namespace aux {/** * Node of a spatial partition tree. * * @author Lawrence Murray <lawrence@indii.org> * @version $Rev: 404 $ * @date $Date: 2008-03-05 14:52:55 +0000 (Wed, 05 Mar 2008) $ * * @section PartitionTreeInternal_serialization Serialization * * This class supports serialization through the Boost.Serialization * library. */class PartitionTreeNode {public:  /**   * Default constructor.   *   * This should generally only be used when the object is to be   * restored from a serialization.   */  PartitionTreeNode();  /**   * Destructor.   */  virtual ~PartitionTreeNode();  /**   * Get the weight of the node.   *   * @return \f$w\f$; the weight of the node.   */  virtual double getWeight() = 0;protected:  /**   * Constructor.   *   * @param weight Weight of the node.   */  PartitionTreeNode(const double weight);private:  /**   * Serialize, or restore from serialization.   */  template<class Archive>  void serialize(Archive& ar, const unsigned int version);  /*   * Boost.Serialization requirements.   */  friend class boost::serialization::access;};    }  }}template<class Archive>void indii::ml::aux::PartitionTreeNode::serialize(Archive& ar,    const unsigned int version) {  //}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?