Add missing overrides
This commit is contained in:
parent
f9bd2455be
commit
bc76bd05fc
5 changed files with 12 additions and 12 deletions
|
|
@ -186,7 +186,7 @@ namespace graphene { namespace chain {
|
|||
class evaluator : public generic_evaluator
|
||||
{
|
||||
public:
|
||||
virtual int get_type()const { return operation::tag<typename DerivedEvaluator::operation_type>::value; }
|
||||
virtual int get_type()const override { return operation::tag<typename DerivedEvaluator::operation_type>::value; }
|
||||
|
||||
virtual operation_result evaluate( const operation& o ) final override
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace graphene { namespace db {
|
|||
modify_callback( _objects[obj.id.instance()] );
|
||||
}
|
||||
|
||||
virtual const object& insert( object&& obj )
|
||||
virtual const object& insert( object&& obj )override
|
||||
{
|
||||
auto instance = obj.id.instance();
|
||||
assert( nullptr != dynamic_cast<T*>(&obj) );
|
||||
|
|
@ -77,7 +77,7 @@ namespace graphene { namespace db {
|
|||
return &_objects[instance];
|
||||
}
|
||||
|
||||
void inspect_all_objects(std::function<void (const object&)> inspector)const
|
||||
virtual void inspect_all_objects(std::function<void (const object&)> inspector)const override
|
||||
{
|
||||
try {
|
||||
for( const auto& ptr : _objects )
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace graphene { namespace chain {
|
|||
typedef MultiIndexType index_type;
|
||||
typedef ObjectType object_type;
|
||||
|
||||
virtual const object& insert( object&& obj )
|
||||
virtual const object& insert( object&& obj )override
|
||||
{
|
||||
assert( nullptr != dynamic_cast<ObjectType*>(&obj) );
|
||||
auto insert_result = _indices.insert( std::move( static_cast<ObjectType&>(obj) ) );
|
||||
|
|
@ -49,7 +49,7 @@ namespace graphene { namespace chain {
|
|||
return *insert_result.first;
|
||||
}
|
||||
|
||||
virtual const object& create(const std::function<void(object&)>& constructor )
|
||||
virtual const object& create(const std::function<void(object&)>& constructor )override
|
||||
{
|
||||
ObjectType item;
|
||||
item.id = get_next_id();
|
||||
|
|
|
|||
|
|
@ -166,16 +166,16 @@ namespace graphene { namespace db {
|
|||
virtual uint8_t object_type_id()const override
|
||||
{ return object_type::type_id; }
|
||||
|
||||
virtual object_id_type get_next_id()const { return _next_id; }
|
||||
virtual void use_next_id() { ++_next_id.number; }
|
||||
virtual void set_next_id( object_id_type id ) { _next_id = id; }
|
||||
virtual object_id_type get_next_id()const override { return _next_id; }
|
||||
virtual void use_next_id()override { ++_next_id.number; }
|
||||
virtual void set_next_id( object_id_type id )override { _next_id = id; }
|
||||
|
||||
virtual const object& load( const std::vector<char>& data )
|
||||
virtual const object& load( const std::vector<char>& data )override
|
||||
{
|
||||
return DerivedIndex::insert( fc::raw::unpack<object_type>( data ) );
|
||||
}
|
||||
|
||||
virtual void open( const shared_ptr<graphene::db::level_map<object_id_type, vector<char> >>& db )
|
||||
virtual void open( const shared_ptr<graphene::db::level_map<object_id_type, vector<char> >>& db )override
|
||||
{
|
||||
auto first = object_id_type( DerivedIndex::object_type::space_id, DerivedIndex::object_type::type_id, 0 );
|
||||
auto last = object_id_type( DerivedIndex::object_type::space_id, DerivedIndex::object_type::type_id+1, 0 );
|
||||
|
|
@ -186,7 +186,7 @@ namespace graphene { namespace db {
|
|||
++itr;
|
||||
}
|
||||
}
|
||||
virtual const object& create(const std::function<void(object&)>& constructor )
|
||||
virtual const object& create(const std::function<void(object&)>& constructor )override
|
||||
{
|
||||
const auto& result = DerivedIndex::create( constructor );
|
||||
on_add( result );
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ namespace graphene { namespace db {
|
|||
modify_callback( *_objects[obj.id.instance()] );
|
||||
}
|
||||
|
||||
virtual const object& insert( object&& obj )
|
||||
virtual const object& insert( object&& obj )override
|
||||
{
|
||||
auto instance = obj.id.instance();
|
||||
assert( nullptr != dynamic_cast<T*>(&obj) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue