|
Pol
Revision:cb584c9
|
#include <datastoreimp.h>
Inheritance diagram for Pol::Module::DataFileContents:Public Member Functions | |
| DataFileContents (DataStoreFile *dsf) | |
| virtual | ~DataFileContents () |
| size_t | estimateSize () const |
| void | load (Clib::ConfigFile &cf) |
| Bscript::BObjectImp * | methodCreateElement (int key) |
| Bscript::BObjectImp * | methodCreateElement (const std::string &key) |
| Bscript::BObjectImp * | methodDeleteElement (int key) |
| Bscript::BObjectImp * | methodDeleteElement (const std::string &key) |
| Bscript::BObjectImp * | methodFindElement (int key) |
| Bscript::BObjectImp * | methodFindElement (const std::string &key) |
| Bscript::BObjectImp * | methodKeys () const |
| void | save (Clib::StreamWriter &sw) |
Public Member Functions inherited from ref_counted | |
| unsigned int | add_ref () |
| unsigned int | count () const |
| unsigned int | release () |
Public Attributes | |
| bool | dirty |
| DataStoreFile * | dsf |
Private Types | |
| typedef std::map< int, DataFileElementRef > | ElementsByInteger |
| typedef std::map< std::string, DataFileElementRef, Clib::ci_cmp_pred > | ElementsByString |
Private Attributes | |
| ElementsByInteger | elements_by_integer |
| ElementsByString | elements_by_string |
Additional Inherited Members | |
Protected Member Functions inherited from ref_counted | |
| ref_counted () | |
| ~ref_counted ()=default | |
Protected Attributes inherited from ref_counted | |
| std::atomic< unsigned int > | _count |
Definition at line 45 of file datastoreimp.h.
|
private |
Definition at line 71 of file datastoreimp.h.
|
private |
Definition at line 70 of file datastoreimp.h.
| Pol::Module::DataFileContents::DataFileContents | ( | DataStoreFile * | dsf | ) |
Definition at line 61 of file datastore.cpp.
|
virtual |
Definition at line 63 of file datastore.cpp.
References elements_by_integer, and elements_by_string.
| size_t Pol::Module::DataFileContents::estimateSize | ( | ) | const |
Definition at line 69 of file datastore.cpp.
References elements_by_integer, and elements_by_string.
| void Pol::Module::DataFileContents::load | ( | Clib::ConfigFile & | cf | ) |
Definition at line 85 of file datastore.cpp.
References Pol::Module::DF_KEYTYPE_INTEGER, dsf, elements_by_integer, elements_by_string, Pol::Module::DataStoreFile::flags, Pol::Clib::ConfigFile::read(), and Pol::Clib::ConfigElemBase::rest().
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodCreateElement | ( | int | key | ) |
Definition at line 125 of file datastore.cpp.
References dirty, elements_by_integer, and ref_ptr< T >::set().
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodCreateElement | ( | const std::string & | key | ) |
Definition at line 142 of file datastore.cpp.
References dirty, elements_by_string, and ref_ptr< T >::set().
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodDeleteElement | ( | int | key | ) |
Definition at line 189 of file datastore.cpp.
References dirty, and elements_by_integer.
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodDeleteElement | ( | const std::string & | key | ) |
Definition at line 200 of file datastore.cpp.
References dirty, and elements_by_string.
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodFindElement | ( | int | key | ) |
Definition at line 160 of file datastore.cpp.
References elements_by_integer.
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodFindElement | ( | const std::string & | key | ) |
Definition at line 174 of file datastore.cpp.
References elements_by_string.
| Bscript::BObjectImp * Pol::Module::DataFileContents::methodKeys | ( | ) | const |
Definition at line 211 of file datastore.cpp.
References elements_by_integer, and elements_by_string.
| void Pol::Module::DataFileContents::save | ( | Clib::StreamWriter & | sw | ) |
Definition at line 104 of file datastore.cpp.
References elements_by_integer, and elements_by_string.
| bool Pol::Module::DataFileContents::dirty |
Definition at line 67 of file datastoreimp.h.
Referenced by methodCreateElement(), and methodDeleteElement().
| DataStoreFile* Pol::Module::DataFileContents::dsf |
Definition at line 66 of file datastoreimp.h.
Referenced by load().
|
private |
Definition at line 74 of file datastoreimp.h.
Referenced by estimateSize(), load(), methodCreateElement(), methodDeleteElement(), methodFindElement(), methodKeys(), save(), and ~DataFileContents().
|
private |
Definition at line 73 of file datastoreimp.h.
Referenced by estimateSize(), load(), methodCreateElement(), methodDeleteElement(), methodFindElement(), methodKeys(), save(), and ~DataFileContents().