List of all members | Static Public Member Functions
det::IdOnlyCreator Struct Reference

The child doesn't actually receive the information from its parent upon construction. More...

#include <ComponentGroup.h>

Static Public Member Functions

template<class Parent , class Child >
static Child * CreateObject (int id, const Parent &)
 

Detailed Description

The child doesn't actually receive the information from its parent upon construction.

Type meant to be used within the detector hierarchy as a policy template argument for det::ComponentGroup. Typically, friendship will be granted to this type by the necessary type. It shouldn't be used by client code to construct objects explictitly.

  \par Template parameters:
  - \a Parent Parent's type, ignored.
  - \a Child Type from which an instance will be created.
Todo:
As stated by the comment client code shouldn't use this class, it's meant to be used only within the detector hierarchy. This fact isn't actually enforce by some language construct. Reciprocal friendship (between the class that uses ComponentGroup and the contained class) could be used and then this policy could be implemented on the first class as a private member), at first this was discarded.

Definition at line 46 of file Detector/ComponentGroup.h.

Member Function Documentation

template<class Parent , class Child >
static Child* det::IdOnlyCreator::CreateObject ( int  id,
const Parent &   
)
inlinestatic

Definition at line 48 of file Detector/ComponentGroup.h.


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

, generated on Tue Sep 26 2023.