OGS
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 18 of file MeshInformation.cpp.

19{
20 auto const bounds = MeshToolsLib::MeshInformation::getValueBounds(property);
21 if (!bounds.has_value())
22 {
23 INFO("\t{:s}: Could not get value bounds for property vector.",
24 property.getPropertyName());
25 return;
26 }
27 INFO("\t{:s}: ({:d} values) [{}, {}]", property.getPropertyName(),
28 property.size(), bounds->first, bounds->second);
29}
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:28
std::string const & getPropertyName() const
constexpr 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().