示例#1
0
 static void visit( const Key&, test::containers& p, visitor& v )
 {
     v.apply( "pair", p.pair );
     v.apply( "vector", p.vector );
     v.apply( "set", p.set );
     v.apply( "map", p.map );
 }
示例#2
0
std::size_t visitor_hasher::hash(const visitor& v) {
    std::size_t seed(0);

    combine(seed, dynamic_cast<const dogen::yarn::element&>(v));

    combine(seed, hash_std_list_dogen_yarn_name(v.visits()));
    combine(seed, hash_boost_optional_dogen_yarn_name(v.parent()));

    return seed;
}
示例#3
0
文件: variant.cpp 项目: maqifrnswa/fc
void  variant::visit( const visitor& v )const
{
    switch( get_type() )
    {
    case null_type:
        v.handle();
        return;
    case int64_type:
        v.handle( *reinterpret_cast<const int64_t*>(this) );
        return;
    case uint64_type:
        v.handle( *reinterpret_cast<const uint64_t*>(this) );
        return;
    case double_type:
        v.handle( *reinterpret_cast<const double*>(this) );
        return;
    case bool_type:
        v.handle( *reinterpret_cast<const bool*>(this) );
        return;
    case string_type:
        v.handle( **reinterpret_cast<const const_string_ptr*>(this) );
        return;
    case array_type:
        v.handle( **reinterpret_cast<const const_variants_ptr*>(this) );
        return;
    case object_type:
        v.handle( **reinterpret_cast<const const_variant_object_ptr*>(this) );
        return;
    default:
        FC_THROW_EXCEPTION( assert_exception, "Invalid Type / Corrupted Memory" );
    }
}
示例#4
0
文件: ast.C 项目: pippijn/rasm
 void fltvar     ::invite (visitor &v) { v.visit (*this); }
示例#5
0
文件: ast.C 项目: pippijn/rasm
 void mnemonic   ::invite (visitor &v) { v.visit (*this); }
示例#6
0
文件: ast.C 项目: pippijn/rasm
 void entry      ::invite (visitor &v) { v.visit (*this); }
示例#7
0
文件: ast.C 项目: pippijn/rasm
 void compcall   ::invite (visitor &v) { v.visit (*this); }
示例#8
0
文件: ast.C 项目: pippijn/rasm
 void imm_int    ::invite (visitor &v) { v.visit (*this); }
示例#9
0
文件: ast.C 项目: pippijn/rasm
 void code       ::invite (visitor &v) { v.visit (*this); }
示例#10
0
void recall::accept(visitor& v)
{
	v.visit_recall(shared_from_this());
}
示例#11
0
文件: attack.cpp 项目: Kanac/wesnoth
void attack::accept(visitor& v)
{
	v.visit(shared_from_this());
}
示例#12
0
文件: group.cpp 项目: scholli/gpucast
/* virtual */ void
group::visit ( visitor const& v )
{
  v.accept(*this);
  std::for_each(begin(), end(), std::bind(&node::visit, std::placeholders::_1, std::ref(v)));
}
示例#13
0
void recruit::accept(visitor& v)
{
	v.visit(shared_from_this());
}
示例#14
0
void move::accept(visitor& v)
{
	v.visit(shared_from_this());
}
示例#15
0
文件: main.cpp 项目: CCJY/coliru
 virtual void visit(visitor& v) override 
 {
     v.accept(*this);
 }
示例#16
0
void
othr_decl_n::accept (visitor & v) 
{
  v.visit_othr_decl (this);
}
示例#17
0
void
var_decl_n::accept (visitor & v) 
{
  v.visit_var_decl (this);
}
示例#18
0
void
parm_decl_n::accept (visitor & v) 
{
  v.visit_parm_decl (this);
}
示例#19
0
文件: ast.C 项目: pippijn/rasm
 void instruction::invite (visitor &v) { v.visit (*this); }
示例#20
0
void
const_decl_n::accept (visitor & v) 
{
  v.visit_const_decl (this);
}
示例#21
0
文件: ast.C 项目: pippijn/rasm
 void assignment ::invite (visitor &v) { v.visit (*this); }
示例#22
0
void
result_decl_n::accept (visitor & v) 
{
  v.visit_result_decl (this);
}
示例#23
0
文件: ast.C 项目: pippijn/rasm
 void function   ::invite (visitor &v) { v.visit (*this); }
示例#24
0
void
field_decl_n::accept (visitor & v) 
{
  v.visit_field_decl (this);
}
示例#25
0
文件: ast.C 项目: pippijn/rasm
 void ptrvar     ::invite (visitor &v) { v.visit (*this); }
示例#26
0
void
type_decl_n::accept (visitor & v) 
{
  v.visit_type_decl (this);
}
示例#27
0
文件: ast.C 项目: pippijn/rasm
 void reg_fpr    ::invite (visitor &v) { v.visit (*this); }
示例#28
0
void
label_decl_n::accept (visitor & v) 
{
  v.visit_label_decl (this);
}
示例#29
0
文件: ast.C 项目: pippijn/rasm
 void reg_ret    ::invite (visitor &v) { v.visit (*this); }
示例#30
0
void
function_decl_n::accept (visitor & v) 
{
  v.visit_function_decl (this);
}