![]() |
Rosetta Utilities
2014.35
|
A DataCache storing objects derived from basic::datacache::CacheableData. More...
#include <BasicDataCache.hh>
Public Member Functions | |
BasicDataCache () | |
default constructor More... | |
BasicDataCache (std::size_t const n_slots) | |
size constructor More... | |
BasicDataCache (BasicDataCache const &rval) | |
copy constructor More... | |
virtual | ~BasicDataCache () |
default destructor More... | |
BasicDataCache & | operator= (BasicDataCache const &rval) |
copy assignment More... | |
![]() | |
DataCache () | |
default constructor More... | |
DataCache (std::size_t const n_slots) | |
size constructor More... | |
DataCache (DataCache const &src) | |
copy constructor More... | |
virtual | ~DataCache () |
destructor More... | |
DataCache & | operator= (DataCache const &src) |
copy assignment More... | |
size_t | size () const |
the number of slots in this cache More... | |
void | resize (std::size_t const n_slots) |
resize the cache for the given number of slots More... | |
void | clear () |
clear all stored data More... | |
void | clear (std::size_t const slot) |
clear the object in a selected slot More... | |
bool | has (std::size_t const slot) const |
is there an object in the slot? More... | |
CacheableDataconst & | get (std::size_t const slot) const |
get base class reference to the object stored in the slot More... | |
D const & | get (std::size_t const slot) const |
get derived class reference to the object stored in the slot More... | |
CacheableData & | get (std::size_t const slot) |
get base class reference to object stored in the slot More... | |
D & | get (std::size_t const slot) |
get derived class reference to object stored in the slot More... | |
DataCOP | get_const_ptr (std::size_t const slot) const |
get base class owning ptr to object stored in the slot More... | |
utility::pointer::owning_ptr < D const > | get_const_ptr (std::size_t const slot) const |
get derived class owning ptr to object stored in the slot More... | |
DataOP | get_ptr (std::size_t const slot) |
get base class owning ptr to object stored in the slot More... | |
utility::pointer::owning_ptr< D > | get_ptr (std::size_t const slot) |
get derived class owning ptr to object stored in the slot More... | |
CacheableDataconst * | get_raw_const_ptr (std::size_t const slot) const |
get base class raw ptr to object stored in the slot More... | |
D const * | get_raw_const_ptr (std::size_t const slot) const |
get derived class raw ptr to object stored in the slot More... | |
CacheableData * | get_raw_ptr (std::size_t const slot) |
get base class raw ptr to object stored in the slot More... | |
D * | get_raw_ptr (std::size_t const slot) |
get derived class raw ptr to object stored in the slot More... | |
void | set (std::size_t const slot, DataOP new_data) |
store data in the given slot More... | |
![]() | |
void | ctor () |
virtual | ~ReferenceCount () |
Destructor. More... | |
Size | ref_count () const |
Reference count. More... | |
Private Types | |
typedef DataCache< CacheableData > | Super |
A DataCache storing objects derived from basic::datacache::CacheableData.
See DataCache base class for usage details.
basic::datacache::BasicDataCache::BasicDataCache | ( | ) |
default constructor
basic::datacache::BasicDataCache::BasicDataCache | ( | std::size_t const | n_slots | ) |
size constructor
[in] | n_types | The number of slots for this DataCache. |
basic::datacache::BasicDataCache::BasicDataCache | ( | BasicDataCache const & | rval | ) |
copy constructor
|
virtual |
default destructor
BasicDataCache & basic::datacache::BasicDataCache::operator= | ( | BasicDataCache const & | rval | ) |
copy assignment
References basic::datacache::DataCache< CacheableData >::operator=().