EnTT 4.0.0
Loading...
Searching...
No Matches
entt::meta_object< Type > Struct Template Reference

Common opaque wrapper for meta objects. More...

#include <meta.hpp>

Inheritance diagram for entt::meta_object< Type >:
Collaboration diagram for entt::meta_object< Type >:

Public Types

using node_type = Type
 Underlying meta node type.
using size_type = stl::size_t
 Unsigned integer type.

Public Member Functions

 meta_object () noexcept=default
 Default constructor.
 meta_object (const meta_ctx &area, const node_type &curr) noexcept
 Context aware constructor for meta objects.
 operator bool () const noexcept
 Returns true if an object is valid, false otherwise.
bool operator== (const meta_object &other) const noexcept
 Checks if two objects refer to the same type.

Detailed Description

template<typename Type>
struct entt::meta_object< Type >

Common opaque wrapper for meta objects.

Template Parameters
TypeUnderlying meta node type.

Definition at line 794 of file meta.hpp.

Member Typedef Documentation

◆ node_type

template<typename Type>
using entt::meta_object< Type >::node_type = Type

Underlying meta node type.

Definition at line 796 of file meta.hpp.

◆ size_type

template<typename Type>
using entt::meta_object< Type >::size_type = stl::size_t

Unsigned integer type.

Definition at line 798 of file meta.hpp.

Constructor & Destructor Documentation

◆ meta_object()

template<typename Type>
entt::meta_object< Type >::meta_object ( const meta_ctx & area,
const node_type & curr )
inlinenoexcept

Context aware constructor for meta objects.

Parameters
areaThe context from which to search for meta types.
currThe underlying node with which to construct the instance.

Definition at line 808 of file meta.hpp.

Member Function Documentation

◆ operator bool()

template<typename Type>
entt::meta_object< Type >::operator bool ( ) const
inlineexplicitnodiscardnoexcept

Returns true if an object is valid, false otherwise.

Returns
True if the object is valid, false otherwise.

Definition at line 816 of file meta.hpp.

◆ operator==()

template<typename Type>
bool entt::meta_object< Type >::operator== ( const meta_object< Type > & other) const
inlinenodiscardnoexcept

Checks if two objects refer to the same type.

Parameters
otherThe object with which to compare.
Returns
True if the objects refer to the same type, false otherwise.

Definition at line 825 of file meta.hpp.


The documentation for this struct was generated from the following file: