LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst::daf::base::PersistentCitizenScope Class Reference

A PersistentCitizenScope object causes all Citizen objects created during its lifetime to be marked as persistent. More...

#include <Citizen.h>

Public Member Functions

 PersistentCitizenScope ()
 
 ~PersistentCitizenScope ()
 
 PersistentCitizenScope (const PersistentCitizenScope &)=delete
 
PersistentCitizenScopeoperator= (const PersistentCitizenScope &)=delete
 
 PersistentCitizenScope (PersistentCitizenScope &&)=delete
 
PersistentCitizenScopeoperator= (PersistentCitizenScope &&)=delete
 

Detailed Description

A PersistentCitizenScope object causes all Citizen objects created during its lifetime to be marked as persistent.

This is useful when constructing static objects that contain a heirarchy of other Citizens which would otherwise need to be marked persistent on an individual basis.

See also
Citizen::markPersistent()

Definition at line 131 of file Citizen.h.

Constructor & Destructor Documentation

◆ PersistentCitizenScope() [1/3]

lsst::daf::base::PersistentCitizenScope::PersistentCitizenScope ( )

Definition at line 448 of file Citizen.cc.

448 { Citizen::_shouldPersistCitizens() = true; }

◆ ~PersistentCitizenScope()

lsst::daf::base::PersistentCitizenScope::~PersistentCitizenScope ( )

Definition at line 450 of file Citizen.cc.

450 { Citizen::_shouldPersistCitizens() = false; }

◆ PersistentCitizenScope() [2/3]

lsst::daf::base::PersistentCitizenScope::PersistentCitizenScope ( const PersistentCitizenScope )
delete

◆ PersistentCitizenScope() [3/3]

lsst::daf::base::PersistentCitizenScope::PersistentCitizenScope ( PersistentCitizenScope &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

PersistentCitizenScope& lsst::daf::base::PersistentCitizenScope::operator= ( const PersistentCitizenScope )
delete

◆ operator=() [2/2]

PersistentCitizenScope& lsst::daf::base::PersistentCitizenScope::operator= ( PersistentCitizenScope &&  )
delete

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