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 = 41;
46 m_class_no = GENERIC_NO;
53 void setType(
const std::string &,
int);
62 void iterate(
int& current_class, std::string& attr)
const override 67 friend class ::Atlas::Objects::Allocator;
72 void reset()
override;
77 static void fillDefaultObjectInstance(
GenericData& data, std::map<std::string, int32_t>& attr_data);
82 #endif // ATLAS_OBJECTS_OPERATION_GENERIC_H bool instanceOf(int classNo) const override
Is this instance of some class?
Base operation for all operators.
Definition: RootOperation.h:41
void setType(const std::string &, int)
Set the type of this object.
Base operation for all operators.
Definition: Generic.h:39
void reset() override
Resets the object as it's returned to the pool.
void free() override
Free an instance of this class, returning it to the memory pool.
The Atlas namespace.
Definition: Bridge.h:20
void iterate(int ¤t_class, std::string &attr) const override
Iterate over the attributes of this instance.
GenericData(GenericData *defaults=nullptr)
Construct a GenericData class definition.
Definition: Generic.h:43
void iterate(int ¤t_class, std::string &attr) const override
Iterate over the attributes of this instance.
Definition: Generic.h:62
Trait which handles allocation of instances of BaseObject.
Definition: BaseObject.h:63
GenericData * copy() const override
Copy this object.
~GenericData() override=default
Default destructor.