예제 #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);
}