#include <TransactionCache.h>
Definition at line 16 of file TransactionCache.h.
ora::TransactionCache::TransactionCache |
( |
| ) |
|
Definition at line 5 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
Handle< DatabaseUtilitySession > m_utility
std::pair< bool, bool > m_dbExists
ora::TransactionCache::~TransactionCache |
( |
| ) |
|
|
virtual |
void ora::TransactionCache::addContainer |
( |
int |
id, |
|
|
const std::string & |
name, |
|
|
Handle< DatabaseContainer > & |
contPtr |
|
) |
| |
Definition at line 45 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
void ora::TransactionCache::cleanUpNamedRefCache |
( |
| ) |
|
|
private |
Definition at line 96 of file TransactionCache.cc.
References Association::map.
97 std::vector<std::string> namesToDelete;
100 if( iEntry->second.expired() ) namesToDelete.push_back( iEntry->first );
102 for( std::vector<std::string>::const_iterator iName = namesToDelete.begin();
103 iName != namesToDelete.end(); iName++ ){
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
void ora::TransactionCache::clear |
( |
void |
| ) |
|
Definition at line 18 of file TransactionCache.cc.
References Association::map.
Referenced by python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
23 iCont->second.clear();
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
Handle< DatabaseUtilitySession > m_utility
std::pair< bool, bool > m_dbExists
Definition at line 76 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
bool ora::TransactionCache::dbExists |
( |
| ) |
|
bool ora::TransactionCache::dbExistsLoaded |
( |
| ) |
|
void ora::TransactionCache::eraseContainer |
( |
int |
id, |
|
|
const std::string & |
name |
|
) |
| |
Definition at line 52 of file TransactionCache.cc.
std::map< int, Handle< DatabaseContainer > > m_containersById
std::map< std::string, int > m_containersByName
Definition at line 58 of file TransactionCache.cc.
60 std::map<int, Handle<DatabaseContainer> >::iterator iCont =
m_containersById.find(
id );
62 instance = iCont->second;
std::map< int, Handle< DatabaseContainer > > m_containersById
Definition at line 67 of file TransactionCache.cc.
Handle< DatabaseContainer > getContainer(int id)
std::map< std::string, int > m_containersByName
boost::shared_ptr< void > ora::TransactionCache::getNamedReference |
( |
const std::string & |
name | ) |
|
Definition at line 113 of file TransactionCache.cc.
References runTheMatrix::ret.
115 boost::shared_ptr<void>
ret;
116 std::map<std::string,boost::weak_ptr<void> >::const_iterator iEntry =
m_namedRefCache.find(
name );
118 ret = iEntry->second.lock();
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
void cleanUpNamedRefCache()
bool ora::TransactionCache::isLoaded |
( |
| ) |
|
void ora::TransactionCache::setDbExists |
( |
bool |
exists | ) |
|
void ora::TransactionCache::setLoaded |
( |
| ) |
|
void ora::TransactionCache::setNamedReference |
( |
const std::string & |
name, |
|
|
boost::shared_ptr< void > & |
data |
|
) |
| |
Definition at line 108 of file TransactionCache.cc.
std::map< std::string, boost::weak_ptr< void > > m_namedRefCache
Definition at line 80 of file TransactionCache.cc.
Handle< DatabaseUtilitySession > utility()
Handle< DatabaseUtilitySession > m_utility
std::map<std::string, int> ora::TransactionCache::m_containersByName |
|
private |
std::pair<bool,bool> ora::TransactionCache::m_dbExists |
|
private |
bool ora::TransactionCache::m_loaded |
|
private |
std::map<std::string,boost::weak_ptr<void> > ora::TransactionCache::m_namedRefCache |
|
private |