opatIO-cpp 0.3.0a
Open Parametrized Array Table
Loading...
Searching...
No Matches
opat::Bounds Struct Reference

Structure to hold the minimum and maximum values for a dimension. More...

#include <opatIO.h>

Public Attributes

double min = std::numeric_limits<double>::max()
 The minimum value.
 
double max = std::numeric_limits<double>::min()
 The maximum value.
 

Friends

std::ostream & operator<< (std::ostream &os, const Bounds &bounds)
 Stream insertion operator for printing the Bounds.
 

Detailed Description

Structure to hold the minimum and maximum values for a dimension.

This is typically used to represent the bounds of index vectors in an OPAT file.

Example:

opat::Bounds dim_bounds;
dim_bounds.min = 0.0;
dim_bounds.max = 10.0;
std::cout << "Dimension bounds: " << dim_bounds << std::endl; // Output: Bounds(0, 10)
Structure to hold the minimum and maximum values for a dimension.
Definition opatIO.h:485
double max
The maximum value.
Definition opatIO.h:487
double min
The minimum value.
Definition opatIO.h:486

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Bounds & bounds )
friend

Stream insertion operator for printing the Bounds.

Parameters
osOutput stream.
boundsBounds to print.
Returns
Reference to the output stream.

Member Data Documentation

◆ max

double opat::Bounds::max = std::numeric_limits<double>::min()

The maximum value.

◆ min

double opat::Bounds::min = std::numeric_limits<double>::max()

The minimum value.


The documentation for this struct was generated from the following file: