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 ); }
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; }
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" ); } }
void fltvar ::invite (visitor &v) { v.visit (*this); }
void mnemonic ::invite (visitor &v) { v.visit (*this); }
void entry ::invite (visitor &v) { v.visit (*this); }
void compcall ::invite (visitor &v) { v.visit (*this); }
void imm_int ::invite (visitor &v) { v.visit (*this); }
void code ::invite (visitor &v) { v.visit (*this); }
void recall::accept(visitor& v) { v.visit_recall(shared_from_this()); }
void attack::accept(visitor& v) { v.visit(shared_from_this()); }
/* 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))); }
void recruit::accept(visitor& v) { v.visit(shared_from_this()); }
void move::accept(visitor& v) { v.visit(shared_from_this()); }
virtual void visit(visitor& v) override { v.accept(*this); }
void othr_decl_n::accept (visitor & v) { v.visit_othr_decl (this); }
void var_decl_n::accept (visitor & v) { v.visit_var_decl (this); }
void parm_decl_n::accept (visitor & v) { v.visit_parm_decl (this); }
void instruction::invite (visitor &v) { v.visit (*this); }
void const_decl_n::accept (visitor & v) { v.visit_const_decl (this); }
void assignment ::invite (visitor &v) { v.visit (*this); }
void result_decl_n::accept (visitor & v) { v.visit_result_decl (this); }
void function ::invite (visitor &v) { v.visit (*this); }
void field_decl_n::accept (visitor & v) { v.visit_field_decl (this); }
void ptrvar ::invite (visitor &v) { v.visit (*this); }
void type_decl_n::accept (visitor & v) { v.visit_type_decl (this); }
void reg_fpr ::invite (visitor &v) { v.visit (*this); }
void label_decl_n::accept (visitor & v) { v.visit_label_decl (this); }
void reg_ret ::invite (visitor &v) { v.visit (*this); }
void function_decl_n::accept (visitor & v) { v.visit_function_decl (this); }