本文整理汇总了C++中rank_support_type类的典型用法代码示例。如果您正苦于以下问题:C++ rank_support_type类的具体用法?C++ rank_support_type怎么用?C++ rank_support_type使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了rank_support_type类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: swap
//! Swap operator
void swap(wt_int_rlmn& wt) {
if (this != &wt) {
std::swap(m_size, wt.m_size);
m_bl.swap(wt.m_bl);
m_bf.swap(wt.m_bf);
m_wt.swap(wt.m_wt);
m_bl_rank.swap(wt.m_bl_rank);
m_bl_rank.set_vector(&m_bl);
wt.m_bl_rank.set_vector(&(wt.m_bl));
m_bf_rank.swap(wt.m_bf_rank);
m_bf_rank.set_vector(&m_bf);
wt.m_bf_rank.set_vector(&(wt.m_bf));
m_bl_select.swap(wt.m_bl_select);
m_bl_select.set_vector(&m_bl);
wt.m_bl_select.set_vector(&(wt.m_bl));
m_bf_select.swap(wt.m_bf_select);
m_bf_select.set_vector(&m_bf);
wt.m_bf_select.set_vector(&(wt.m_bf));
m_C.swap(wt.m_C);
m_C_bf_rank.swap(wt.m_C_bf_rank);
}
}
开发者ID:tb37,项目名称:sdsl-lite,代码行数:26,代码来源:wt_int_rlmn.hpp
示例2: load
//! Load method
void load(std::istream& in) {
m_char.load(in);
m_char_rank.load(in);
m_char_rank.set_vector(&m_char);
m_char_select.load(in);
m_char_select.set_vector(&m_char);
m_C.load(in);
read_member(m_sigma, in);
}
开发者ID:Alienfeel,项目名称:sdsl-lite,代码行数:10,代码来源:csa_alphabet_strategy.hpp
示例3: load
//! Loads the data structure from the given istream.
void load(std::istream& in) {
read_member(m_size, in);
m_bl.load(in);
m_bf.load(in);
m_wt.load(in);
m_bl_rank.load(in, &m_bl);
m_bf_rank.load(in, &m_bf);
m_bl_select.load(in, &m_bl);
m_bf_select.load(in, &m_bf);
m_C.load(in);
m_C_bf_rank.load(in);
}
开发者ID:tb37,项目名称:sdsl-lite,代码行数:13,代码来源:wt_int_rlmn.hpp
示例4: load
//! Load from a stream.
void load(std::istream& in) {
m_data.load(in);
m_overflow.load(in);
m_overflow_rank.load(in, &m_overflow);
m_level_pointer_and_rank.load(in);
read_member(m_max_level, in);
}
开发者ID:chenlonggang,项目名称:sdsl-lite,代码行数:8,代码来源:lcp_dac.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: copy
void copy(const wt_int_rlmn& wt) {
m_size = wt.m_size;
m_bl = wt.m_bl;
m_bf = wt.m_bf;
m_wt = wt.m_wt;
m_bl_rank = wt.m_bl_rank;
m_bl_rank.set_vector(&m_bl);
m_bf_rank = wt.m_bf_rank;
m_bf_rank.set_vector(&m_bf);
m_bl_select = wt.m_bl_select;
m_bl_select.set_vector(&m_bl);
m_bf_select = wt.m_bf_select;
m_bf_select.set_vector(&m_bf);
m_C = wt.m_C;
m_C_bf_rank = wt.m_C_bf_rank;
}
开发者ID:tb37,项目名称:sdsl-lite,代码行数:16,代码来源:wt_int_rlmn.hpp
示例7: copy
void copy(const lcp_dac& lcp_c) {
m_data = lcp_c.m_data;
m_overflow = lcp_c.m_overflow;
m_overflow_rank = lcp_c.m_overflow_rank;
m_overflow_rank.set_vector(&m_overflow);
m_level_pointer_and_rank = lcp_c.m_level_pointer_and_rank;
m_max_level = lcp_c.m_max_level;
}
开发者ID:chenlonggang,项目名称:sdsl-lite,代码行数:8,代码来源:lcp_dac.hpp
示例8: copy
void copy(const int_alphabet& strat) {
m_char = strat.m_char;
m_char_rank = strat.m_char_rank;
m_char_rank.set_vector(&m_char);
m_char_select = strat.m_char_select;
m_char_select.set_vector(&m_char);
m_C = strat.m_C;
m_sigma = strat.m_sigma;
}
开发者ID:Alienfeel,项目名称:sdsl-lite,代码行数:9,代码来源:csa_alphabet_strategy.hpp
示例9: copy
void copy(const succinct_byte_alphabet_strategy& strat){
m_char = strat.m_char;
m_char_rank = strat.m_char_rank;
m_char_rank.set_vector(&m_char);
m_char_select = strat.m_char_select;
m_char_select.set_vector(&m_char);
m_C = strat.m_C;
m_sigma = strat.m_sigma;
}
开发者ID:bojifengyu,项目名称:RoSA,代码行数:9,代码来源:csa_alphabet_strategy.hpp
示例10: serialize
//! Serialize method
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_char.serialize(out, child, "m_char");
written_bytes += m_char_rank.serialize(out, child, "m_char_rank");
written_bytes += m_char_select.serialize(out, child, "m_char_select");
written_bytes += m_C.serialize(out, child, "m_C");
written_bytes += write_member(m_sigma, out, child, "m_sigma");
structure_tree::add_size(child, written_bytes);
return written_bytes;
}
开发者ID:Alienfeel,项目名称:sdsl-lite,代码行数:12,代码来源:csa_alphabet_strategy.hpp
示例11:
int_alphabet& operator=(int_alphabet&& strat) {
if (this != &strat) {
m_char = std::move(strat.m_char);
m_char_rank = std::move(strat.m_char_rank);
m_char_rank.set_vector(&m_char);
m_char_select = std::move(strat.m_char_select);
m_char_select.set_vector(&m_char);
m_C = std::move(strat.m_C);
m_sigma = std::move(strat.m_sigma);
}
return *this;
}
开发者ID:Alienfeel,项目名称:sdsl-lite,代码行数:12,代码来源:csa_alphabet_strategy.hpp
注:本文中的rank_support_type类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论