8 #ifndef ATLAS_OBJECTS_OPERATION_GENERIC_H
9 #define ATLAS_OBJECTS_OPERATION_GENERIC_H
11 #include <Atlas/Objects/RootOperation.h>
12 #include <Atlas/Objects/SmartPtr.h>
14 namespace Atlas {
namespace Objects {
namespace Operation {
27 typedef SmartPtr<GenericData> Generic;
29 static const int GENERIC_NO = 43;
46 m_class_no = GENERIC_NO;
53 static constexpr
const char* super_parent =
"root_operation";
55 static constexpr
const char* default_parent =
"generic";
57 static constexpr
const char* default_objtype =
"op";
59 void setType(
const std::string &,
int);
70 friend class ::Atlas::Objects::Allocator;
75 void reset()
override;
80 static void fillDefaultObjectInstance(
GenericData& data, std::map<std::string, uint32_t>& attr_data);
Base operation for all operators.
bool instanceOf(int classNo) const override
Is this instance of some class?
void setType(const std::string &, int)
Set the type of this object.
GenericData(GenericData *defaults=nullptr)
Construct a GenericData class definition.
void free() override
Free an instance of this class, returning it to the memory pool.
GenericData * copy() const override
Copy this object.
~GenericData() override=default
Default destructor.
void reset() override
Resets the object as it's returned to the pool.
Base operation for all operators.