Class OpPrimCRegister
Defined in File primitive_c.h
Class Documentation
-
class OpPrimCRegister
OpPrimCRegister defines the singleton to save the end side operators.
Public Functions
-
inline ~OpPrimCRegister()
Destructor of OpPrimCRegister.
-
std::map<std::string, OpPrimCDefineFunc> GetPrimCMap()
Get PrimCMap of the OpPrimCRegister singleton.
- Returns
The PrimCMap of the OpPrimCRegister singleton.
-
void SetPrimCMap(const std::string &kname, const OpPrimCDefineFunc &fn)
Add an element into the PrimCMap of the OpPrimCRegister singleton.
param[in] kname The name of the input end side operator. param[in] fn The input end side operator.
Public Static Functions
-
static OpPrimCRegister &GetInstance()
Get the OpPrimCRegister singleton.
- Returns
The OpPrimCRegister singleton.
-
inline ~OpPrimCRegister()