Pol  Revision:cb584c9
Pol::Module::DataFileContents Class Reference

#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::BObjectImpmethodCreateElement (int key)
 
Bscript::BObjectImpmethodCreateElement (const std::string &key)
 
Bscript::BObjectImpmethodDeleteElement (int key)
 
Bscript::BObjectImpmethodDeleteElement (const std::string &key)
 
Bscript::BObjectImpmethodFindElement (int key)
 
Bscript::BObjectImpmethodFindElement (const std::string &key)
 
Bscript::BObjectImpmethodKeys () 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
 
DataStoreFiledsf
 

Private Types

typedef std::map< int, DataFileElementRefElementsByInteger
 
typedef std::map< std::string, DataFileElementRef, Clib::ci_cmp_predElementsByString
 

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
 

Detailed Description

Definition at line 45 of file datastoreimp.h.

Member Typedef Documentation

Definition at line 71 of file datastoreimp.h.

Definition at line 70 of file datastoreimp.h.

Constructor & Destructor Documentation

Pol::Module::DataFileContents::DataFileContents ( DataStoreFile dsf)

Definition at line 61 of file datastore.cpp.

Pol::Module::DataFileContents::~DataFileContents ( )
virtual

Definition at line 63 of file datastore.cpp.

References elements_by_integer, and elements_by_string.

Member Function Documentation

size_t Pol::Module::DataFileContents::estimateSize ( ) const

Definition at line 69 of file datastore.cpp.

References elements_by_integer, and elements_by_string.

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.

Member Data Documentation

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().

ElementsByInteger Pol::Module::DataFileContents::elements_by_integer
private
ElementsByString Pol::Module::DataFileContents::elements_by_string
private

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