  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
   13 #ifndef CXXUTILS_SIMPLEUPDATER_H 
   14 #define CXXUTILS_SIMPLEUPDATER_H 
  129 #endif // not CXXUTILS_SIMPLEUPDATER_H 
  
SimpleUpdater(SimpleUpdater &&other)
Move constructor.
 
Simple (non-deleting) Updater implementation.
 
void swap(SimpleUpdater &other)
Swap this object with another.
 
std::vector< std::unique_ptr< T > > m_objs
List of all allocated objects.
 
const T & get() const
Return a reference to the current object.
 
void clean()
Delete all objects we're managing except for the current one.
 
void update(std::unique_ptr< T > p, const Context_t &)
Install a new object.
 
SimpleUpdater()=default
We need a default constructor.
 
void discard(std::unique_ptr< T > p)
Queue an object for later deletion.
 
std::atomic< const T * > m_obj
Pointer to the current object.
 
void quiescent(const Context_t &)
Mark that an event slot is not referencing this object.
 
static const Context_t defaultContext()
Return the current event context.