8 #ifndef ATLAS_OBJECTS_ENTITY_ANONYMOUS_H 9 #define ATLAS_OBJECTS_ENTITY_ANONYMOUS_H 11 #include <Atlas/Objects/RootEntity.h> 12 #include <Atlas/Objects/SmartPtr.h> 14 namespace Atlas {
namespace Objects {
namespace Entity {
25 static const int ANONYMOUS_NO = 40;
38 m_class_no = ANONYMOUS_NO;
45 void setType(
const std::string &,
int);
54 void iterate(
int& current_class, std::string& attr)
const override 59 friend class ::Atlas::Objects::Allocator;
64 void reset()
override;
69 static void fillDefaultObjectInstance(
AnonymousData& data, std::map<std::string, int32_t>& attr_data);
74 #endif // ATLAS_OBJECTS_ENTITY_ANONYMOUS_H void iterate(int ¤t_class, std::string &attr) const override
Iterate over the attributes of this instance.
Starting point for entity hierarchy.
Definition: Anonymous.h:31
AnonymousData * copy() const override
Copy this object.
~AnonymousData() override=default
Default destructor.
void free() override
Free an instance of this class, returning it to the memory pool.
void reset() override
Resets the object as it's returned to the pool.
The Atlas namespace.
Definition: Bridge.h:20
AnonymousData(AnonymousData *defaults=nullptr)
Construct a AnonymousData class definition.
Definition: Anonymous.h:35
bool instanceOf(int classNo) const override
Is this instance of some class?
void iterate(int ¤t_class, std::string &attr) const override
Iterate over the attributes of this instance.
Definition: Anonymous.h:54
Starting point for entity hierarchy.
Definition: RootEntity.h:31
Trait which handles allocation of instances of BaseObject.
Definition: BaseObject.h:63
void setType(const std::string &, int)
Set the type of this object.