STIR 6.5.0
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.

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

Default constructor adds the type to the registry.

References stir::RegisteredParsingObject< Derived, Base, Parent >::read_from_stream().

◆ ~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: