|
LSSTApplications
8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
|
Class for logical location of a persisted Persistable instance. More...
#include <LogicalLocation.h>
Public Types | |
| typedef boost::shared_ptr < LogicalLocation > | Ptr |
Public Types inherited from lsst::daf::base::Citizen | |
| enum | { magicSentinel = 0xdeadbeef } |
| typedef unsigned long | memId |
| Type of the block's ID. More... | |
| typedef memId(* | memNewCallback )(const memId cid) |
| A function used to register a callback. More... | |
| typedef memId(* | memCallback )(const Citizen *ptr) |
Public Member Functions | |
| LogicalLocation (std::string const &locString, boost::shared_ptr< dafBase::PropertySet const > additionalData=boost::shared_ptr< dafBase::PropertySet const >()) | |
| std::string const & | locString (void) const |
Public Member Functions inherited from lsst::daf::base::Citizen | |
| Citizen (const std::type_info &) | |
| Citizen (Citizen const &) | |
| ~Citizen () | |
| Citizen & | operator= (Citizen const &) |
| std::string | repr () const |
| Return a string representation of a Citizen. More... | |
| void | markPersistent (void) |
| Mark a Citizen as persistent and not destroyed until process end. More... | |
| memId | getId () const |
| Return the Citizen's ID. More... | |
Static Public Member Functions | |
| static void | setLocationMap (boost::shared_ptr< dafBase::PropertySet > map) |
Static Public Member Functions inherited from lsst::daf::base::Citizen | |
| static bool | hasBeenCorrupted () |
| Check all allocated blocks for corruption. More... | |
| static memId | getNextMemId () |
| Return the memId of the next object to be allocated. More... | |
| static int | init () |
| Called once when the memory system is being initialised. More... | |
| static int | census (int, memId startingMemId=0) |
| How many active Citizens are there? More... | |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| Print a list of all active Citizens to stream, sorted by ID. More... | |
| static const std::vector < const Citizen * > * | census () |
| Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
| static memId | setNewCallbackId (memId id) |
| Call the NewCallback when block is allocated. More... | |
| static memId | setDeleteCallbackId (memId id) |
| Call the current DeleteCallback when block is deleted. More... | |
| static memNewCallback | setNewCallback (memNewCallback func) |
| Set the NewCallback function. More... | |
| static memCallback | setDeleteCallback (memCallback func) |
| Set the DeleteCallback function. More... | |
| static memCallback | setCorruptionCallback (memCallback func) |
| Set the CorruptionCallback function. More... | |
Private Attributes | |
| std::string | _locString |
| The location string. More... | |
Static Private Attributes | |
| static boost::shared_ptr < dafBase::PropertySet > | _map |
| The logical-to-less-logical map. More... | |
Class for logical location of a persisted Persistable instance.
Implemented as a minimal string representing a pathname or a database connection string. Interpreted by Storage subclasses.
Definition at line 60 of file LogicalLocation.h.
| typedef boost::shared_ptr<LogicalLocation> lsst::daf::persistence::LogicalLocation::Ptr |
Definition at line 62 of file LogicalLocation.h.
| lsst::daf::persistence::LogicalLocation::LogicalLocation | ( | std::string const & | locString, |
| boost::shared_ptr< dafBase::PropertySet const > | additionalData = boost::shared_ptr< dafBase::PropertySet const>() |
||
| ) |
Constructor from string and additional data.
Definition at line 58 of file LogicalLocation.cc.
| std::string const & lsst::daf::persistence::LogicalLocation::locString | ( | void | ) | const |
Accessor.
Definition at line 132 of file LogicalLocation.cc.
|
static |
Set the logical-to-less-logical map.
Definition at line 138 of file LogicalLocation.cc.
|
private |
The location string.
Definition at line 71 of file LogicalLocation.h.
|
staticprivate |
The logical-to-less-logical map.
Definition at line 72 of file LogicalLocation.h.
1.8.5