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 = MeshLib::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(char const *fmt, Args const &... args)
Definition: Logging.h:32
static std::optional< std::pair< T, T > > const getValueBounds(PropertyVector< T > const &property)
std::string const & getPropertyName() const
std::size_t size() const

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

Referenced by MeshLib::MeshInformation::writePropertyVectorInformation().