LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | List of all members
lsst::daf::persistence::BoundVar Class Reference

#include <DbStorageImpl.h>

Inheritance diagram for lsst::daf::persistence::BoundVar:
lsst::daf::base::Citizen

Public Member Functions

 BoundVar (void)
 
 BoundVar (void *location)
 
 BoundVar (BoundVar const &src)
 
- Public Member Functions inherited from lsst::daf::base::Citizen
 Citizen (const std::type_info &)
 
 Citizen (Citizen const &)
 
 ~Citizen ()
 
Citizenoperator= (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...
 

Public Attributes

enum_field_types _type
 
bool _isNull
 
bool _isUnsigned
 
unsigned long _length
 
void * _data
 

Additional Inherited Members

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

Detailed Description

Definition at line 66 of file DbStorageImpl.h.

Constructor & Destructor Documentation

lsst::daf::persistence::BoundVar::BoundVar ( void  )

Default constructor.

Definition at line 137 of file DbStorageImpl.cc.

137  :
138  lsst::daf::base::Citizen(typeid(*this)), _data(0) {
139 }
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
lsst::daf::persistence::BoundVar::BoundVar ( void *  location)
explicit

Constructor from pointer.

Definition at line 143 of file DbStorageImpl.cc.

143  :
144  lsst::daf::base::Citizen(typeid(*this)), _data(location) {
145 }
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
lsst::daf::persistence::BoundVar::BoundVar ( BoundVar const &  src)

Copy constructor.

Definition at line 149 of file DbStorageImpl.cc.

149  :
150  lsst::daf::base::Citizen(typeid(*this)),
151  _type(src._type), _isNull(src._isNull), _isUnsigned(src._isUnsigned),
152  _length(src._length), _data(src._data) {
153 }
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56

Member Data Documentation

void* lsst::daf::persistence::BoundVar::_data

Definition at line 76 of file DbStorageImpl.h.

bool lsst::daf::persistence::BoundVar::_isNull

Definition at line 73 of file DbStorageImpl.h.

bool lsst::daf::persistence::BoundVar::_isUnsigned

Definition at line 74 of file DbStorageImpl.h.

unsigned long lsst::daf::persistence::BoundVar::_length

Definition at line 75 of file DbStorageImpl.h.

enum_field_types lsst::daf::persistence::BoundVar::_type

Definition at line 72 of file DbStorageImpl.h.


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