Metric builder interface.
More...
#include <builder.hpp>
Metric builder interface.
Definition at line 16 of file builder.hpp.
◆ metric_builder()
Construct a metric builder.
Definition at line 18 of file builder.hpp.
◆ ~metric_builder()
| flecs::metric_builder::~metric_builder |
( |
| ) |
|
|
inline |
Destructor.
Finalizes the metric.
Definition at line 27 of file impl.hpp.
◆ brief()
Set a brief description for the metric.
Definition at line 102 of file builder.hpp.
◆ dotmember() [1/2]
| metric_builder & flecs::metric_builder::dotmember |
( |
const char * | name | ) |
|
|
inline |
Set the member to use for the metric using dot notation.
Definition at line 59 of file impl.hpp.
◆ dotmember() [2/2]
template<typename T >
| metric_builder & flecs::metric_builder::dotmember |
( |
const char * | name | ) |
|
|
inline |
Set the member to use for the metric by type using dot notation.
Definition at line 65 of file impl.hpp.
◆ id() [1/5]
Set the ID for the metric by type.
Definition at line 61 of file builder.hpp.
◆ id() [2/5]
template<typename First , typename Second >
Set the ID for the metric as a pair with types First and Second.
Definition at line 79 of file builder.hpp.
◆ id() [3/5]
Set the ID for the metric as a pair.
Definition at line 54 of file builder.hpp.
◆ id() [4/5]
template<typename First >
Set the ID for the metric as a pair with type First.
Definition at line 67 of file builder.hpp.
◆ id() [5/5]
Set the ID for the metric.
Definition at line 48 of file builder.hpp.
◆ id_second()
template<typename Second >
Set the ID for the metric as a pair with type Second.
Definition at line 73 of file builder.hpp.
◆ kind() [1/2]
Set the metric kind by type.
Definition at line 97 of file builder.hpp.
◆ kind() [2/2]
Set the metric kind (e.g., Counter, Gauge).
Definition at line 90 of file builder.hpp.
◆ member() [1/3]
Set the member to use for the metric by name.
Definition at line 33 of file impl.hpp.
◆ member() [2/3]
Set the member to use for the metric by type and name.
Definition at line 48 of file impl.hpp.
◆ member() [3/3]
Set the member to use for the metric by entity ID.
Definition at line 28 of file builder.hpp.
◆ operator flecs::entity()
Finalize the metric and return the entity.
Definition at line 71 of file impl.hpp.
◆ targets()
Set whether to create metrics for targets.
Definition at line 84 of file builder.hpp.
◆ created_
| bool flecs::metric_builder::created_ = false |
|
protected |
◆ desc_
◆ world_
The documentation for this struct was generated from the following files:
- include/flecs/addons/cpp/mixins/metrics/builder.hpp
- include/flecs/addons/cpp/mixins/metrics/impl.hpp