TIMPI
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TIMPI::SemiPermanent::Ref Struct Reference

#include <semipermanent.h>

Public Member Functions

 Ref ()
 
 ~Ref ()
 

Detailed Description

Definition at line 64 of file semipermanent.h.

Constructor & Destructor Documentation

◆ Ref()

TIMPI::SemiPermanent::Ref::Ref ( )
inline

Definition at line 65 of file semipermanent.h.

65{ _ref_count++; }

References TIMPI::SemiPermanent::_ref_count.

◆ ~Ref()

TIMPI::SemiPermanent::Ref::~Ref ( )

Definition at line 32 of file semipermanent.C.

33{
34 _ref_count--;
35
36 // Last one to leave turns out the lights
37 if (_ref_count <= 0)
38 _stuff_to_clean.clear();
39}
static std::vector< std::unique_ptr< SemiPermanent > > _stuff_to_clean

References TIMPI::SemiPermanent::_ref_count, and TIMPI::SemiPermanent::_stuff_to_clean.


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