Class VertexCount
Metric that records vertex counts for both meshes.
#include <Metric.h>
Inherits the following classes: Metric
Public Functions
| Type | Name |
|---|---|
| VertexCount () Construct the metric with label "Vertices". |
|
| virtual void | compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) override const Compute the metric for a single (original, reconstructed) pair. |
| ~VertexCount () = default |
Public Functions inherited from Metric
See Metric
| Type | Name |
|---|---|
| Metric (const std::string & name) Construct a metric with the given short label. |
|
| virtual void | compute (const Mesh & originalMesh, const Mesh & reconstructedMesh, benchmark::State & state) const = 0 Compute the metric for a single (original, reconstructed) pair. |
| const std::string & | getName () const Return the metric's short label. |
| virtual | ~Metric () = default |
Public Functions Documentation
function VertexCount
Construct the metric with label "Vertices".
function compute
Compute the metric for a single (original, reconstructed) pair.
virtual void VertexCount::compute (
const Mesh & originalMesh,
const Mesh & reconstructedMesh,
benchmark::State & state
) override const
Implementations should record their values on state.counters.
Parameters:
originalMeshGround-truth mesh.reconstructedMeshMesh produced by the reconstruction algorithm.stateGoogle Benchmark state receiving the counters.
Implements Metric::compute
function ~VertexCount
The documentation for this class was generated from the following file benchmark/metrics/Metric.h