Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::index_impl< BaseIndex > Class Template Reference

#include <chainbase.hpp>

Inheritance diagram for chainbase::index_impl< BaseIndex >:
Collaboration diagram for chainbase::index_impl< BaseIndex >:

Public Member Functions

 index_impl (BaseIndex &base)
 
virtual unique_ptr< abstract_sessionstart_undo_session (bool enabled) override
 
virtual void set_revision (uint64_t revision) override
 
virtual int64_t revision () const override
 
virtual void undo () const override
 
virtual void squash () const override
 
virtual void commit (int64_t revision) const override
 
virtual void undo_all () const override
 
virtual uint32_t type_id () const override
 
virtual uint64_t row_count () const override
 
virtual const std::string & type_name () const override
 
virtual std::pair< int64_t, int64_tundo_stack_revision_range () const override
 
virtual void remove_object (int64_t id) override
 
- Public Member Functions inherited from chainbase::abstract_index
 abstract_index (void *i)
 
virtual ~abstract_index ()
 
void * get () const
 

Detailed Description

template<typename BaseIndex>
class chainbase::index_impl< BaseIndex >

Definition at line 185 of file chainbase.hpp.

Constructor & Destructor Documentation

◆ index_impl()

template<typename BaseIndex >
chainbase::index_impl< BaseIndex >::index_impl ( BaseIndex & base)
inline

Definition at line 187 of file chainbase.hpp.

187:abstract_index( &base ),_base(base){}

Member Function Documentation

◆ commit()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::commit ( int64_t revision) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 197 of file chainbase.hpp.

197{ _base.commit(revision); }
virtual int64_t revision() const override
Here is the call graph for this function:

◆ remove_object()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::remove_object ( int64_t id)
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 204 of file chainbase.hpp.

204{ return _base.remove_object( id ); }

◆ revision()

template<typename BaseIndex >
virtual int64_t chainbase::index_impl< BaseIndex >::revision ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 194 of file chainbase.hpp.

194{ return _base.revision(); }
Here is the caller graph for this function:

◆ row_count()

template<typename BaseIndex >
virtual uint64_t chainbase::index_impl< BaseIndex >::row_count ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 200 of file chainbase.hpp.

200{ return _base.indices().size(); }

◆ set_revision()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::set_revision ( uint64_t revision)
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 193 of file chainbase.hpp.

193{ _base.set_revision( revision ); }
Here is the call graph for this function:

◆ squash()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::squash ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 196 of file chainbase.hpp.

196{ _base.squash(); }

◆ start_undo_session()

template<typename BaseIndex >
virtual unique_ptr< abstract_session > chainbase::index_impl< BaseIndex >::start_undo_session ( bool enabled)
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 189 of file chainbase.hpp.

189 {
190 return unique_ptr<abstract_session>(new session_impl<typename BaseIndex::session>( _base.start_undo_session( enabled ) ) );
191 }

◆ type_id()

template<typename BaseIndex >
virtual uint32_t chainbase::index_impl< BaseIndex >::type_id ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 199 of file chainbase.hpp.

199{ return BaseIndex::value_type::type_id; }

◆ type_name()

template<typename BaseIndex >
virtual const std::string & chainbase::index_impl< BaseIndex >::type_name ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 201 of file chainbase.hpp.

201{ return BaseIndex_name; }

◆ undo()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::undo ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 195 of file chainbase.hpp.

195{ _base.undo(); }

◆ undo_all()

template<typename BaseIndex >
virtual void chainbase::index_impl< BaseIndex >::undo_all ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 198 of file chainbase.hpp.

198{_base.undo_all(); }

◆ undo_stack_revision_range()

template<typename BaseIndex >
virtual std::pair< int64_t, int64_t > chainbase::index_impl< BaseIndex >::undo_stack_revision_range ( ) const
inlineoverridevirtual

Implements chainbase::abstract_index.

Definition at line 202 of file chainbase.hpp.

202{ return _base.undo_stack_revision_range(); }

The documentation for this class was generated from the following file: