Loading [MathJax]/jax/output/HTML-CSS/config.js
OGS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
anonymous_namespace{MeshInformation.cpp} Namespace Reference

Functions

template<typename T >
void printBounds (MeshLib::PropertyVector< T > const &property)
 

Function Documentation

◆ printBounds()

template<typename T >
void anonymous_namespace{MeshInformation.cpp}::printBounds ( MeshLib::PropertyVector< T > const & property)

Definition at line 28 of file MeshInformation.cpp.

29{
30 auto const bounds = MeshToolsLib::MeshInformation::getValueBounds(property);
31 if (!bounds.has_value())
32 {
33 INFO("\t{:s}: Could not get value bounds for property vector.",
34 property.getPropertyName());
35 return;
36 }
37 INFO("\t{:s}: ({:d} values) [{}, {}]", property.getPropertyName(),
38 property.size(), bounds->first, bounds->second);
39}
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:35
std::string const & getPropertyName() const
std::size_t size() const
static std::optional< std::pair< T, T > > const getValueBounds(MeshLib::PropertyVector< T > const &property)

References MeshLib::PropertyVectorBase::getPropertyName(), MeshToolsLib::MeshInformation::getValueBounds(), INFO(), and MeshLib::PropertyVector< PROP_VAL_TYPE >::size().