LSSTApplications
11.0-24-g0a022a1,14.0+64,15.0,15.0+1,15.0-1-g14e9bfd,15.0-1-g1eca518,15.0-1-g499c38d,15.0-1-g60afb23,15.0-1-g6668b0b,15.0-1-g788a293,15.0-1-g82223af,15.0-1-ga91101e,15.0-1-gae1598d,15.0-1-gc45031d,15.0-1-gd076f1f,15.0-1-gf4f1c34,15.0-1-gfe1617d,15.0-16-g953e39cab,15.0-2-g2010ef9,15.0-2-g33d94b3,15.0-2-g5218728,15.0-2-g947dc0d,15.0-3-g9103c06,15.0-3-ga03b4ca,15.0-3-ga659d1f3,15.0-3-ga695220+2,15.0-3-gaec6799,15.0-3-gb7a597c,15.0-3-gd5b9ff95,15.0-4-g0478fed+2,15.0-4-g45f767a,15.0-4-gff20472+2,15.0-6-ge2d9597
LSSTDataManagementBasePackage
|
Concrete implementation of Functor subclass for testing. More...
#include <Functor.h>
Public Types | |
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 | |
LinearFunctor (double slope, double intercept) | |
LinearFunctor (LinearFunctor const &) | |
LinearFunctor (LinearFunctor &&) | |
LinearFunctor & | operator= (LinearFunctor const &) |
LinearFunctor & | operator= (LinearFunctor &&) |
~LinearFunctor ()=default | |
virtual std::shared_ptr< Functor > | clone () const |
virtual double | operator() (double x) const |
virtual double | derivative (double x) const |
virtual double | inverse (double y, double tol=1e-10, unsigned int maxiter=1000) 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 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... | |
Census | |
Provide a list of current Citizens | |
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... | |
callbackIDs | |
Set callback Ids. The old Id is returned | |
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... | |
callbacks | |
Set the New/Delete callback functions; in each case the previously installed callback is returned. These callback functions return a value which is Added to the previously registered id. The default callback functions are called default{New,Delete}Callback; you may want to set a break point in these callbacks from your favourite debugger | |
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... | |
Concrete implementation of Functor subclass for testing.
Implements a line: y = slope*x + intercept.
|
inherited |
lsst::afw::geom::LinearFunctor::LinearFunctor | ( | double | slope, |
double | intercept | ||
) |
Definition at line 32 of file LinearFunctor.cc.
|
default |
|
default |
|
default |
|
staticinherited |
How many active Citizens are there?
startingMemId | Don't print Citizens with lower IDs |
Definition at line 261 of file Citizen.cc.
|
staticinherited |
Print a list of all active Citizens to stream, sorted by ID.
stream | stream to print to |
startingMemId | Don't print Citizens with lower IDs |
Definition at line 284 of file Citizen.cc.
|
staticinherited |
Return a (newly allocated) std::vector of active Citizens sorted by ID.
You are responsible for deleting it; or you can say std::unique_ptr<std::vector<Citizen const*> const> leaks(Citizen::census()); and not bother (that becomes std::unique_ptr in C++11)
Definition at line 316 of file Citizen.cc.
|
virtual |
Implements lsst::afw::geom::Functor.
Definition at line 40 of file LinearFunctor.cc.
|
virtual |
Implements lsst::afw::geom::Functor.
Definition at line 46 of file LinearFunctor.cc.
|
inherited |
Return the Citizen's ID.
Definition at line 218 of file Citizen.cc.
|
staticinherited |
Return the memId of the next object to be allocated.
Definition at line 223 of file Citizen.cc.
|
staticinherited |
Check all allocated blocks for corruption.
Definition at line 347 of file Citizen.cc.
|
staticinherited |
Called once when the memory system is being initialised.
Definition at line 208 of file Citizen.cc.
|
virtualinherited |
y | desired value of functor |
tol | Convergence tolerance for the Newton-Raphson search such that abs(x_{iter} - x_{iter-1}) < tol. |
maxiter | Maximum number of iterations in the N-R search. |
lsst::pex::exceptions::OutOfRangeError | if (tol <= 0) or (tol > 1) or (maxiter < 1). |
lsst::pex::exceptions::RuntimeError | if the number of N-R iterations > maxiter. |
Definition at line 42 of file Functor.cc.
|
inherited |
Mark a Citizen as persistent and not destroyed until process end.
Definition at line 248 of file Citizen.cc.
|
virtual |
Implements lsst::afw::geom::Functor.
Definition at line 44 of file LinearFunctor.cc.
|
default |
|
default |
|
inherited |
Return a string representation of a Citizen.
Definition at line 239 of file Citizen.cc.
|
staticinherited |
Set the CorruptionCallback function.
func | function be called when block is found to be corrupted |
Definition at line 426 of file Citizen.cc.
|
staticinherited |
Set the DeleteCallback function.
func | function be called when desired block is deleted |
Definition at line 416 of file Citizen.cc.
|
staticinherited |
Call the current DeleteCallback when block is deleted.
id | Desired ID |
Definition at line 381 of file Citizen.cc.
|
staticinherited |
Set the NewCallback function.
func | The new function to be called when a designated block is allocated |
Definition at line 406 of file Citizen.cc.
|
staticinherited |
Call the NewCallback when block is allocated.
id | Desired ID |
Definition at line 370 of file Citizen.cc.