NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkGeneralSegmentorPipelineCache.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkGeneralSegmentorPipelineCache_h
16 #define niftkGeneralSegmentorPipelineCache_h
17 
18 #include "niftkMIDASExports.h"
19 
21 
22 namespace niftk
23 {
24 
25 class GeneralSegmentorPipelineInterface;
26 
28 class NIFTKMIDAS_EXPORT GeneralSegmentorPipelineCache
29 {
30 public:
31 
32  static GeneralSegmentorPipelineCache* Instance();
33 
34  template<typename TPixel, unsigned int VImageDimension>
36 
37  template<typename TPixel, unsigned int VImageDimension>
38  void DestroyPipeline();
39 
40 protected:
43 
44 private:
45 
48  typedef std::pair<std::string, GeneralSegmentorPipelineInterface*> StringAndPipelineInterfacePair;
49  std::map<std::string, GeneralSegmentorPipelineInterface*> m_TypeToPipelineMap;
50 
51 };
52 
53 }
54 
55 #include "niftkGeneralSegmentorPipelineCache.txx"
56 
57 #endif
A specific implementation of GeneralSegmentorPipelineInterface, based on ITK, called from MITK...
Definition: niftkGeneralSegmentorPipeline.h:236
Definition: niftkGeneralSegmentorPipelineCache.h:28
Definition: niftkExceptionObject.h:21