SST/macro
clonable.h
Go to the documentation of this file.
1 #ifndef CLONABLE_H
2 #define CLONABLE_H
3 
4 
5 namespace sstmac {
6 namespace hw {
7 
8 template <class CloneType, class CloneArg1>
9 class clone_factory {
10  public:
11 
12  /**
13  @param arg1 A parameter for creating the clone
14  @return The cloned object
15  @throws sprockit::value_error If invalid parameter passed in
16  */
17  virtual CloneType
18  clone(const CloneArg1& arg1) const = 0;
19 
20  virtual ~clone_factory() {}
21 };
22 
23 }
24 }
25 
26 #endif // CLONABLE_H
27 
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
virtual ~clone_factory()
Definition: clonable.h:20
virtual CloneType clone(const CloneArg1 &arg1) const =0