コード例 #1
0
ファイル: db_with.hpp プロジェクト: elmato/graphene
void with_skip_flags(
   database& db,
   uint32_t skip_flags,
   Lambda callback )
{
   node_property_object& npo = db.node_properties();
   skip_flags_restorer restorer( npo, npo.skip_flags );
   npo.skip_flags = skip_flags;
   callback();
   return;
}
コード例 #2
0
ファイル: db_init.cpp プロジェクト: clar/graphene
 auth_inhibitor(database& db) : db(db), old_flags(db.node_properties().skip_flags)
 { db.node_properties().skip_flags |= skip_authority_check; }