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


C++ unsigned_vector::push_back方法代码示例

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


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

示例1: extract

 void extract(unsigned_vector& indices)
 {
     for (unsigned i = 0; i < m_indices.size(); ++i) {
         if (m_indices[i]) {
             indices.push_back(i);
         }
     }
 }
开发者ID:chadbrewbaker,项目名称:z3,代码行数:8,代码来源:spacer_sym_mux.cpp

示例2: accumulate

 void accumulate(tbv const& t, unsigned_vector& acc) {
     ddnf_node* n = find(t);
     ptr_vector<ddnf_node> todo;
     todo.push_back(n);
     while (!todo.empty()) {
         n = todo.back();
         todo.pop_back();
         unsigned id = n->get_id();
         if (m_marked[id]) continue;
         acc.push_back(id);
         m_marked[id] = true;
         unsigned sz = n->num_children();
         for (unsigned i = 0; i < sz; ++i) {
             todo.push_back((*n)[i]);
         }
     }
 }
开发者ID:EinNarr,项目名称:z3,代码行数:17,代码来源:ddnf.cpp

示例3: expand_column_vector

 void udoc_relation::expand_column_vector(unsigned_vector& v, const udoc_relation* other) const {
     unsigned_vector orig;
     orig.swap(v);
     for (unsigned i = 0; i < orig.size(); ++i) {
         unsigned col, limit;
         if (orig[i] < get_num_cols()) {
             col = column_idx(orig[i]);
             limit = col + column_num_bits(orig[i]);
         } else {
             unsigned idx = orig[i] - get_num_cols();
             col = get_num_bits() + other->column_idx(idx);
             limit = col + other->column_num_bits(idx);
         }
         for (; col < limit; ++col) {
             v.push_back(col);
         }
     }
 }
开发者ID:greatmazinger,项目名称:z3,代码行数:18,代码来源:udoc_relation.cpp

示例4: push

 void push() {
     m_enum_consts_lim.push_back(m_enum_consts.size());
 }
开发者ID:NikolajBjorner,项目名称:z3,代码行数:3,代码来源:enum2bv_rewriter.cpp

示例5:

void tactic2solver::push_core() {
    m_scopes.push_back(m_assertions.size());
    m_result = 0;
}
开发者ID:perillaseed,项目名称:z3,代码行数:4,代码来源:tactic2solver.cpp


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