STIR  6.2.0
Public Member Functions | List of all members
stir::RegisteredParsingObject< Derived, Base, Parent >::RegisterIt Struct Reference

A helper class to allow automatic registration. More...

#include "stir/RegisteredParsingObject.h"

Public Member Functions

 RegisterIt ()
 Default constructor adds the type to the registry.
 
 ~RegisterIt ()
 Destructor should remove it from the registry. More...
 

Detailed Description

template<typename Derived, typename Base, typename Parent = Base>
struct stir::RegisteredParsingObject< Derived, Base, Parent >::RegisterIt

A helper class to allow automatic registration.

Constructor & Destructor Documentation

◆ ~RegisterIt()

template<typename Derived, typename Base, typename Parent = Base>
stir::RegisteredParsingObject< Derived, Base, Parent >::RegisterIt::~RegisterIt ( )
inline

Destructor should remove it from the registry.

Todo:
At present, the object remain in the registry, as there is a potential conflict in the order of destruction of the registry and the RegisterIt objects. This can be solved with shared_ptr s.

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