Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
BraggScattererFactory.h File Reference
#include "MantidGeometry/DllConfig.h"
#include "MantidKernel/DynamicFactory.h"
#include "MantidKernel/SingletonHolder.h"
#include "MantidGeometry/Crystal/BraggScatterer.h"
#include "MantidGeometry/Crystal/CompositeBraggScatterer.h"

Go to the source code of this file.

Classes

class  Mantid::Geometry::BraggScattererFactoryImpl
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::Geometry
 
namespace  Mantid::Kernel
 

Macros

#define DECLARE_BRAGGSCATTERER(classname)
 

Typedefs

using Mantid::Geometry::BraggScattererFactory = Mantid::Kernel::SingletonHolder< BraggScattererFactoryImpl >
 

Macro Definition Documentation

◆ DECLARE_BRAGGSCATTERER

#define DECLARE_BRAGGSCATTERER (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_scatterer_##classname( \
((Mantid::Geometry::BraggScattererFactory::Instance().subscribeScatterer<classname>()), 0)); \
}
This class is simply used in the subscription of classes into the various factories in Mantid.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

Definition at line 83 of file BraggScattererFactory.h.