Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::database::session Struct Reference

#include <chainbase.hpp>

Public Member Functions

 session (session &&s)
 
 session (vector< std::unique_ptr< abstract_session > > &&s)
 
 ~session ()
 
void push ()
 
void squash ()
 
void undo ()
 

Friends

class database
 

Detailed Description

Definition at line 287 of file chainbase.hpp.

Constructor & Destructor Documentation

◆ session() [1/2]

chainbase::database::session::session ( session && s)
inline

Definition at line 289 of file chainbase.hpp.

289:_index_sessions( std::move(s._index_sessions) ){}
char * s

◆ session() [2/2]

chainbase::database::session::session ( vector< std::unique_ptr< abstract_session > > && s)
inline

Definition at line 290 of file chainbase.hpp.

290 :_index_sessions( std::move(s) )
291 {
292 }

◆ ~session()

chainbase::database::session::~session ( )
inline

Definition at line 294 of file chainbase.hpp.

294 {
295 undo();
296 }
Here is the call graph for this function:

Member Function Documentation

◆ push()

void chainbase::database::session::push ( )
inline

Definition at line 298 of file chainbase.hpp.

299 {
300 for( auto& i : _index_sessions ) i->push();
301 _index_sessions.clear();
302 }

◆ squash()

void chainbase::database::session::squash ( )
inline

Definition at line 304 of file chainbase.hpp.

305 {
306 for( auto& i : _index_sessions ) i->squash();
307 _index_sessions.clear();
308 }

◆ undo()

void chainbase::database::session::undo ( )
inline

Definition at line 310 of file chainbase.hpp.

311 {
312 for( auto& i : _index_sessions ) i->undo();
313 _index_sessions.clear();
314 }
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ database

friend class database
friend

Definition at line 317 of file chainbase.hpp.


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