The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Protected Types | Protected Attributes | List of all members
persist_manager Class Reference

#include <persist_manager.hpp>

Public Member Functions

bool start_transaction ()
 
bool end_transaction ()
 
bool cancel_transaction ()
 
 persist_manager ()
 
virtual ~persist_manager ()
 
persist_contextget_context (const std::string &ns)
 

Protected Types

typedef std::map< std::string, persist_context * > context_map
 

Protected Attributes

bool in_transaction_
 
context_map contexts_
 

Detailed Description

Definition at line 22 of file persist_manager.hpp.

Member Typedef Documentation

◆ context_map

typedef std::map<std::string,persist_context *> persist_manager::context_map
protected

Definition at line 24 of file persist_manager.hpp.

Constructor & Destructor Documentation

◆ persist_manager()

persist_manager::persist_manager ( )

Definition at line 18 of file persist_manager.cpp.

◆ ~persist_manager()

persist_manager::~persist_manager ( )
virtual

Definition at line 23 of file persist_manager.cpp.

References cancel_transaction(), contexts_, and i.

Member Function Documentation

◆ cancel_transaction()

bool persist_manager::cancel_transaction ( )

Definition at line 64 of file persist_manager.cpp.

References contexts_, and in_transaction_.

Referenced by ~persist_manager().

◆ end_transaction()

bool persist_manager::end_transaction ( )

◆ get_context()

persist_context & persist_manager::get_context ( const std::string &  ns)

◆ start_transaction()

bool persist_manager::start_transaction ( )

Member Data Documentation

◆ contexts_

context_map persist_manager::contexts_
protected

◆ in_transaction_

bool persist_manager::in_transaction_
protected

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