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; }
//! 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; }
/*! \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; }
//! 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; }
//! 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; }
//! 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; }