当前位置: 首页>>代码示例>>C++>>正文


C++ int_vector::serialize方法代码示例

本文整理汇总了C++中int_vector::serialize方法的典型用法代码示例。如果您正苦于以下问题:C++ int_vector::serialize方法的具体用法?C++ int_vector::serialize怎么用?C++ int_vector::serialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在int_vector的用法示例。


在下文中一共展示了int_vector::serialize方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: serialize

size_t index_sa_text_psi::serialize(std::ostream &out) const {
	size_t written_bytes = 0;
	out.put('1');
	written_bytes += sizeof(char);
	superserialize(out);
	written_bytes += sa.serialize(out);
	written_bytes += text.serialize(out);
	written_bytes += psi.serialize(out);
	return written_bytes;
}
开发者ID:cpockrandt,项目名称:pr_dict_cmp,代码行数:10,代码来源:index_sa_text_psi.hpp

示例2: serialize

 //! Serialize to a stream.
 size_type serialize(std::ostream& out, structure_tree_node* v=nullptr,
                     std::string name="")const {
     structure_tree_node* child = structure_tree::add_child(v, name,
                                  util::class_name(*this));
     size_type written_bytes = 0;
     written_bytes += m_small_lcp.serialize(out, child, "small_lcp");
     written_bytes += m_big_lcp.serialize(out, child, "large_lcp");
     written_bytes += m_big_lcp_idx.serialize(out, child, "large_lcp_idx");
     structure_tree::add_size(child, written_bytes);
     return written_bytes;
 }
开发者ID:chenlonggang,项目名称:sdsl-lite,代码行数:12,代码来源:lcp_byte.hpp

示例3: serialize

 /*! \param out Out-Stream to serialize the data to.
 */
 size_type serialize(std::ostream& out, structure_tree_node* v=NULL, std::string name="")const {
     size_type written_bytes = 0;
     structure_tree_node* child = structure_tree::add_child(v, name, util::class_name(*this));
     written_bytes += m_abs_samples.serialize(out, child, "absolute_samples");
     written_bytes += m_differences.serialize(out, child, "differences");
     written_bytes += write_member(m_ones, out, child, "ones");
     written_bytes += write_member(m_size,out,  child, "size");
     written_bytes += m_contains_abs_sample.serialize(out, child, "contains_abs_sample");
     written_bytes += m_rank_contains_abs_sample.serialize(out, child, "rank_contains_abs_sample");
     structure_tree::add_size(child, written_bytes);
     return written_bytes;
 }
开发者ID:Garonenur,项目名称:sdsl-lite,代码行数:14,代码来源:nearest_neighbour_dictionary.hpp

示例4: serialize

 //! Answers select queries
 //! Serializes the data structure into the given ostream
 size_type serialize(std::ostream& out, structure_tree_node* v=nullptr, std::string name="")const {
     structure_tree_node* child = structure_tree::add_child(v, name, util::class_name(*this));
     size_type written_bytes = 0;
     written_bytes += write_member(m_size, out, child, "size");
     written_bytes += m_bt.serialize(out, child, "bt");
     written_bytes += m_btnr.serialize(out, child, "btnr");
     written_bytes += m_btnrp.serialize(out, child, "btnrp");
     written_bytes += m_rank.serialize(out, child, "rank_samples");
     written_bytes += m_invert.serialize(out, child, "invert");
     structure_tree::add_size(child, written_bytes);
     return written_bytes;
 }
开发者ID:Alienfeel,项目名称:sdsl-lite,代码行数:14,代码来源:rrr_vector.hpp

示例5: serialize

 //! Serializes the data structure into the given ostream
 size_type serialize(std::ostream& out, structure_tree_node* v=nullptr, std::string name="")const {
     structure_tree_node* child = structure_tree::add_child(v, name, util::class_name(*this));
     size_type written_bytes = 0;
     written_bytes += write_member(m_size, out, child, "size");
     written_bytes += m_bl.serialize(out, child, "bl");
     written_bytes += m_bf.serialize(out, child, "bf");
     written_bytes += m_wt.serialize(out, child, "wt");
     written_bytes += m_bl_rank.serialize(out, child, "bl_rank");
     written_bytes += m_bf_rank.serialize(out, child, "bf_rank");
     written_bytes += m_bl_select.serialize(out, child, "bl_select");
     written_bytes += m_bf_select.serialize(out, child, "bf_select");
     written_bytes += m_C.serialize(out, child, "C");
     written_bytes += m_C_bf_rank.serialize(out, child, "C_bf_rank");
     structure_tree::add_size(child, written_bytes);
     return written_bytes;
 }
开发者ID:tb37,项目名称:sdsl-lite,代码行数:17,代码来源:wt_int_rlmn.hpp

示例6: serialize

 //! Serializes the data structure into the given ostream
 size_type serialize(std::ostream& out, structure_tree_node* v=NULL, std::string name="")const {
     size_type written_bytes = 0;
     structure_tree_node* child = structure_tree::add_child(v, name, util::class_name(*this));
     written_bytes += util::write_member(m_size, out, child, "size");
     written_bytes += m_position.serialize(out, child, "positions");
     structure_tree::add_size(child, written_bytes);
     return written_bytes;
 }
开发者ID:pombredanne,项目名称:RoSA,代码行数:9,代码来源:gap_vector.hpp


注:本文中的int_vector::serialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。