10#include "Refureku/TypeInfo/Entity/Entity.h"
21 std::size_t
id = 0u)
noexcept;
73 void* userData) const;
82 class NamespaceFragmentImpl;
84 RFK_GEN_GET_PIMPL(NamespaceFragmentImpl,
Entity::getPimpl())
Definition: NamespaceFragment.h:18
REFUREKU_API void setNestedEntitiesCapacity(std::size_t capacity) noexcept
Set the number of nested entities for this entity. Useful to avoid reallocations when adding a lot of...
REFUREKU_API bool addProperty(Property const &property) noexcept
Add a property to this namespace fragment. The property is immediately added to the merged namespace.
REFUREKU_API Namespace const & getMergedNamespace() const noexcept
Get the namespace this fragment is merged to.
REFUREKU_INTERNAL bool foreachNestedEntity(Visitor< Entity > visitor, void *userData) const
Execute the given visitor on all nested entities.
REFUREKU_INTERNAL void unmergeFragment() const noexcept
Unmerge the fragment from the merged namespace.
REFUREKU_API void addNestedEntity(Entity const &nestedEntity) noexcept
Add a nested entity to the namespace.
Definition: Namespace.h:26
Base class to inherit from to define new properties.
Definition: Property.h:23
Definition: Allocator.h:16
bool(*)(T const &value, void *userData) Visitor
Visitor function.
Definition: Visitor.h:21