55 template<
typename T,
typename Func>
void forEach(
Func&& func)
const;
76 using ReturnType =
decltype(func(std::declval<const MetaItem&>()));
83 if constexpr(std::is_same_v<ReturnType, void>) {
97 if(
item->getCategory() != T::kCategory) {
101 co_yield static_cast<const T&
>(*item);
#define CE_ASSERT(...)
Definition Macros.hpp:323
Represents a reflected property from metadata defined by the class.
Definition Class.hpp:176
Represents a reflected enum from C++.
Definition Enum.hpp:26
Represents an enum value.
Definition Enum.hpp:75
A generator represents a coroutine type that produces a sequence of values of type T,...
Definition Generator.hpp:50
Definition Application.hpp:19
std::unique_ptr< T, Deleter > UPtr
UPtr is a smart pointer that owns and manages another object through a pointer and disposes of that o...
Definition SmartPtr.hpp:28
constexpr auto MoveConstructorSignature
Definition MetaContainer.hpp:24
MetaCategory
The category of a MetaItem.
Definition MetaItem.hpp:23
std::vector< T, ScopedAllocatorAdaptor< StdAllocator< T, RawAllocator > > > Vector
Vector is a sequence container that encapsulates dynamic size arrays.
Definition Vector.hpp:17
constexpr auto DefaultConstructorSignature
Definition MetaContainer.hpp:22
constexpr auto CopyConstructorSignature
Definition MetaContainer.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
constexpr auto ConstructorSignature
Definition MetaContainer.hpp:21