openModeller  Version 1.5.0
Normalizer.hh
Go to the documentation of this file.
1 
27 #ifndef _NORMALIZER_HH
28 #define _NORMALIZER_HH
29 
31 #include <openmodeller/Sample.hh>
32 // Note: avoid including Sampler.hh because of cross reference between the two classes.
33 // However it needs to be included in the .cpp of all implementations of this interface.
34 
35 class SamplerImpl; // forward declaration
36 
37 class Normalizer : public Configurable {
38 
39 public:
40 
41  // Note: not using ConstSamplerPtr to avoid compilation problems. It was
42  // replaced here by the associated definition. See the ConstSamplerPtr
43  // typedef in Sampler.hh.
44  virtual void computeNormalization( const ReferenceCountedPointer<const SamplerImpl>& samplerPtr ) = 0;
45 
46  virtual void normalize( Sample * samplePtr ) = 0;
47 
48  // Should return a pointer to copy of the object
49  virtual Normalizer * getCopy() = 0;
50 };
51 
52 #endif
virtual void normalize(Sample *samplePtr)=0
virtual void computeNormalization(const ReferenceCountedPointer< const SamplerImpl > &samplerPtr)=0
virtual Normalizer * getCopy()=0
Definition: Sample.hh:25