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

24{
25 auto const bounds = MeshToolsLib::MeshInformation::getValueBounds(property);
26 if (!bounds.has_value())
27 {
28 INFO("\t{:s}: Could not get value bounds for property vector.",
29 property.getPropertyName());
30 return;
31 }
32 INFO("\t{:s}: ({:d} values) [{}, {}]", property.getPropertyName(),
33 property.size(), bounds->first, bounds->second);
34}
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().