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 {
23 typedef SmartPtr<AnonymousData> Anonymous;
25 static const int ANONYMOUS_NO = 42;
38 m_class_no = ANONYMOUS_NO;
45 static constexpr
const char* super_parent =
"root_entity";
47 static constexpr
const char* default_parent =
"anonymous";
49 static constexpr
const char* default_objtype =
"obj";
51 void setType(
const std::string &,
int);
62 friend class ::Atlas::Objects::Allocator;
67 void reset()
override;
72 static void fillDefaultObjectInstance(
AnonymousData& data, std::map<std::string, uint32_t>& attr_data);
77 #endif // ATLAS_OBJECTS_ENTITY_ANONYMOUS_H bool instanceOf(int classNo) const override
Is this instance of some class?
AnonymousData(AnonymousData *defaults=nullptr)
Construct a AnonymousData class definition.
Starting point for entity hierarchy.
Starting point for entity hierarchy.
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.
AnonymousData * copy() const override
Copy this object.
~AnonymousData() override=default
Default destructor.
void setType(const std::string &, int)
Set the type of this object.