Psyllid  v1.12.4
Project 8 Data Acquisisition Software
Classes | Public Member Functions | Private Types | Private Attributes | List of all members
persistent_store Class Reference

#include <persistent_store.hh>

Classes

class  _storable
 
class  label_in_use
 
class  label_not_found
 
class  storable
 
class  wrong_type
 

Public Member Functions

 persistent_store ()
 
virtual ~persistent_store ()
 
template<typename x_type >
void store (const std::string &a_label, std::shared_ptr< x_type > an_item)
 
template<typename x_type >
std::shared_ptr< x_type > retrieve (const std::string &a_label)
 
void dump (const std::string &a_label)
 
bool has (const std::string &a_label) const
 

Private Types

typedef std::map< std::string, std::unique_ptr< storable > > storage_t
 
typedef storage_t::const_iterator storage_cit_t
 
typedef storage_t::iterator storage_it_t
 

Private Attributes

storage_t f_storage
 
std::mutex f_storage_mutex
 

Detailed Description

Definition at line 21 of file persistent_store.hh.

Member Typedef Documentation

◆ storage_cit_t

typedef storage_t::const_iterator storage_cit_t
private

Definition at line 106 of file persistent_store.hh.

◆ storage_it_t

typedef storage_t::iterator storage_it_t
private

Definition at line 107 of file persistent_store.hh.

◆ storage_t

typedef std::map< std::string, std::unique_ptr< storable > > storage_t
private

Definition at line 105 of file persistent_store.hh.

Constructor & Destructor Documentation

◆ persistent_store()

Definition at line 13 of file persistent_store.cc.

◆ ~persistent_store()

~persistent_store ( )
virtual

Definition at line 19 of file persistent_store.cc.

Member Function Documentation

◆ dump()

void dump ( const std::string &  a_label)

Definition at line 23 of file persistent_store.cc.

◆ has()

bool has ( const std::string &  a_label) const
inline

Definition at line 151 of file persistent_store.hh.

◆ retrieve()

std::shared_ptr< x_type > retrieve ( const std::string &  a_label)

Definition at line 129 of file persistent_store.hh.

◆ store()

void store ( const std::string &  a_label,
std::shared_ptr< x_type >  an_item 
)

Definition at line 114 of file persistent_store.hh.

Member Data Documentation

◆ f_storage

storage_t f_storage
private

Definition at line 109 of file persistent_store.hh.

◆ f_storage_mutex

std::mutex f_storage_mutex
mutableprivate

Definition at line 110 of file persistent_store.hh.


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