ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::core::traits::PropertyTraits< T > Struct Template Reference

Trait interface for property metadata. More...

#include <materialepas_traits.hpp>

Static Public Member Functions

static constexpr const PropertyDescriptorproperties () noexcept
 Get array of property descriptors.
static constexpr size_t property_count () noexcept
 Get number of properties in the struct.
static constexpr const char * struct_name () noexcept
 Get human-readable struct name.

Detailed Description

template<typename T>
struct reusex::core::traits::PropertyTraits< T >

Trait interface for property metadata.

Specialize this template for each serializable struct to provide:

Template Parameters
TThe struct type to provide traits for

Definition at line 54 of file materialepas_traits.hpp.

Member Function Documentation

◆ properties()

template<typename T>
constexpr const PropertyDescriptor * reusex::core::traits::PropertyTraits< T >::properties ( )
staticconstexprnoexcept

Get array of property descriptors.

Returns
Pointer to static array of PropertyDescriptor instances

Referenced by reusex::core::traits::detail::make_nested_property().

◆ property_count()

template<typename T>
constexpr size_t reusex::core::traits::PropertyTraits< T >::property_count ( )
staticconstexprnoexcept

Get number of properties in the struct.

Returns
Property count

References property_count().

Referenced by reusex::core::traits::detail::make_nested_property(), and property_count().

◆ struct_name()

template<typename T>
constexpr const char * reusex::core::traits::PropertyTraits< T >::struct_name ( )
staticconstexprnoexcept

Get human-readable struct name.

Returns
Struct name string (for debugging/logging)

References struct_name().

Referenced by struct_name().


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