Refureku v2.2.0
C++17 runtime reflection library.
rfk::Property Class Reference

Base class to inherit from to define new properties. More...

#include <Property.h>

Inheritance diagram for rfk::Property:
rfk::Object

Public Member Functions

virtual rfk::EEntityKind getTargetEntityKind () const noexcept
 Getter for targetEntityKind of the concrete Property type. More...
 
virtual bool getShouldInherit () const noexcept
 Getter for shouldInherit of the concrete Property type. More...
 
virtual bool getAllowMultiple () const noexcept
 Getter for allowMultiple of the concrete Property type. More...
 
- Public Member Functions inherited from rfk::Object
 Object (Object const &)=default
 
 Object (Object &&)=default
 
virtual Struct const & getArchetype () const noexcept=0
 
Objectoperator= (Object const &)=default
 
Objectoperator= (Object &&)=default
 

Static Public Attributes

static constexpr rfk::EEntityKind targetEntityKind
 
static constexpr bool shouldInherit = true
 
static constexpr bool allowMultiple = false
 

Detailed Description

Base class to inherit from to define new properties.

Member Function Documentation

◆ getAllowMultiple()

virtual bool rfk::Property::getAllowMultiple ( ) const
virtualnoexcept

Getter for allowMultiple of the concrete Property type.

Returns
allowMultiple.

◆ getShouldInherit()

virtual bool rfk::Property::getShouldInherit ( ) const
virtualnoexcept

Getter for shouldInherit of the concrete Property type.

Returns
shouldInherit.

◆ getTargetEntityKind()

virtual rfk::EEntityKind rfk::Property::getTargetEntityKind ( ) const
virtualnoexcept

Getter for targetEntityKind of the concrete Property type.

Returns
targetEntityKind.

Member Data Documentation

◆ allowMultiple

constexpr bool rfk::Property::allowMultiple = false
staticconstexpr

Is this property allowed to be attached multiple times to the same entity?

◆ shouldInherit

constexpr bool rfk::Property::shouldInherit = true
staticconstexpr

Should this property be inherited in child struct/class? Relevant only for properties targeting structs/classes.

◆ targetEntityKind


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