コード例 #1
0
ファイル: transaction_object.cpp プロジェクト: clar/graphene
void transaction_index::remove(object_id_type id)
{
   auto& index = _index.get<instance>();
   auto itr = index.find(id.instance());
   if( itr == index.end() )
      return;

   assert(id.space() == transaction_object::space_id);
   assert(id.type() == transaction_object::type_id);

   index.erase(itr);
}
コード例 #2
0
ファイル: types.hpp プロジェクト: 8001800/graphene
 inline bool is_relative( object_id_type o ){ return o.space() == 0; }
コード例 #3
0
 void                    set_annotation( object_id_type id )
 {
    annotations[id.space()] = id;
 }