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
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
lsst::ap::PersistableIdPairVector Class Reference

A persistable wrapper for an IdPairVector. More...

#include <Results.h>

Inheritance diagram for lsst::ap::PersistableIdPairVector:
lsst::daf::base::Persistable lsst::daf::base::Citizen

Public Types

typedef boost::shared_ptr
< PersistableIdPairVector
Ptr
 
- Public Types inherited from lsst::daf::base::Persistable
typedef boost::shared_ptr
< Persistable
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

 PersistableIdPairVector ()
 
 PersistableIdPairVector (IdPairVector const &)
 
 ~PersistableIdPairVector ()
 
IdPairVectorgetIdPairs ()
 
IdPairVector const & getIdPairs () const
 
void setIdPairs (IdPairVector const &idPairs)
 
bool operator== (IdPairVector const &other) const
 
bool operator== (PersistableIdPairVector const &other) const
 
- Public Member Functions inherited from lsst::daf::base::Persistable
 Persistable (void)
 
virtual ~Persistable (void)
 
template<class Archive >
void serialize (Archive &, unsigned int const)
 
- 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...
 

Private Member Functions

 LSST_PERSIST_FORMATTER (lsst::ap::io::IdPairVectorFormatter)
 

Private Attributes

IdPairVector _idPairs
 

Additional Inherited Members

- 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

A persistable wrapper for an IdPairVector.

Definition at line 164 of file Results.h.

Member Typedef Documentation

Definition at line 169 of file Results.h.

Constructor & Destructor Documentation

lsst::ap::PersistableIdPairVector::PersistableIdPairVector ( )

Definition at line 62 of file Results.cc.

62  :
63  lsst::daf::base::Citizen(typeid(*this)),
64  _idPairs()
65 {}
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
lsst::ap::PersistableIdPairVector::PersistableIdPairVector ( IdPairVector const &  idPairs)
explicit

Definition at line 68 of file Results.cc.

68  :
69  lsst::daf::base::Citizen(typeid(*this)),
70  _idPairs(idPairs)
71 {}
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
Definition: Citizen.h:56
lsst::ap::PersistableIdPairVector::~PersistableIdPairVector ( )

Definition at line 74 of file Results.cc.

74 {}

Member Function Documentation

IdPairVector& lsst::ap::PersistableIdPairVector::getIdPairs ( )
inline

Definition at line 175 of file Results.h.

175  {
176  return _idPairs;
177  }
IdPairVector const& lsst::ap::PersistableIdPairVector::getIdPairs ( ) const
inline

Definition at line 178 of file Results.h.

178  {
179  return _idPairs;
180  }
lsst::ap::PersistableIdPairVector::LSST_PERSIST_FORMATTER ( lsst::ap::io::IdPairVectorFormatter  )
private
bool lsst::ap::PersistableIdPairVector::operator== ( IdPairVector const &  other) const

Definition at line 76 of file Results.cc.

76  {
77  if (_idPairs.size() != other.size()) {
78  return false;
79  }
80  return std::equal(_idPairs.begin(), _idPairs.end(), other.begin());
81 }
< unspecified-expression-type > equal(ExpressionBase< Operand > const &operand, Scalar const &scalar)
Definition: operators.h:796
bool lsst::ap::PersistableIdPairVector::operator== ( PersistableIdPairVector const &  other) const
inline

Definition at line 186 of file Results.h.

186  {
187  return other == _idPairs;
188  }
void lsst::ap::PersistableIdPairVector::setIdPairs ( IdPairVector const &  idPairs)
inline

Definition at line 181 of file Results.h.

181  {
182  _idPairs = idPairs;
183  }

Member Data Documentation

IdPairVector lsst::ap::PersistableIdPairVector::_idPairs
private

Definition at line 192 of file Results.h.


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