retdec
validator_factory.h
Go to the documentation of this file.
1 
9 #ifndef RETDEC_LLVMIR2HLL_VALIDATOR_VALIDATOR_FACTORY_H
10 #define RETDEC_LLVMIR2HLL_VALIDATOR_VALIDATOR_FACTORY_H
11 
12 #include <string>
13 
17 
18 namespace retdec {
19 namespace llvmir2hll {
20 
21 class Validator;
22 
27  Factory<
28  // Type of the base class.
29  Validator,
30  // Type of the object's identifier.
31  std::string,
32  // Type of a function used to create instances.
33  ShPtr<Validator> (*)()
34  >
35 >;
36 
37 } // namespace llvmir2hll
38 } // namespace retdec
39 
40 #endif
Implementation of a generic object factory.
Definition: factory.h:124
Implementation of the Singleton design pattern.
Definition: singleton.h:34
A base class for all validators.
Definition: validator.h:35
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.