retdec
cfg_writer_factory.h
Go to the documentation of this file.
1 
9 #ifndef RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_WRITER_FACTORY_H
10 #define RETDEC_LLVMIR2HLL_GRAPHS_CFG_CFG_WRITER_FACTORY_H
11 
12 #include <ostream>
13 #include <string>
14 
18 
19 namespace retdec {
20 namespace llvmir2hll {
21 
22 class CFG;
23 class CFGWriter;
24 
29  Factory<
30  // Type of the base class.
31  CFGWriter,
32  // Type of the object's identifier.
33  std::string,
34  // Type of a function used to create instances.
35  ShPtr<CFGWriter> (*)(ShPtr<CFG>, std::ostream &)
36  >
37 >;
38 
39 } // namespace llvmir2hll
40 } // namespace retdec
41 
42 #endif
A base class of all control-flow graph (CFG) writers.
Definition: cfg_writer.h:28
Implementation of a generic object factory.
Definition: factory.h:124
Implementation of the Singleton design pattern.
Definition: singleton.h:34
Implementation of the Object Factory design pattern.
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
Implementation of the Singleton design pattern.
Declarations, aliases, macros, etc. for the use of smart pointers.