The Sparta Modeling Framework
Loading...
Searching...
No Matches
BoundedValue.hpp File Reference

Implementation of the Bounded Value class that is templated based on a certain integral or floating-point data-type and functions within one or more non-overlapping operating range. More...

#include <iostream>
#include <limits>
#include <algorithm>
#include <type_traits>
#include "sparta/utils/SpartaAssert.hpp"
#include "sparta/utils/MetaStructs.hpp"

Go to the source code of this file.

Classes

class  sparta::utils::BoundedValue< T >
 This class allows a developer to bound a value within an upper and lower value. More...
 

Namespaces

namespace  sparta
 Macros for handling exponential backoff.
 

Functions

template<typename T >
std::ostream & sparta::utils::operator<< (std::ostream &os, const sparta::utils::BoundedValue< T > &data)
 Overloading of ostream operator.
 

Detailed Description

Implementation of the Bounded Value class that is templated based on a certain integral or floating-point data-type and functions within one or more non-overlapping operating range.

Definition in file BoundedValue.hpp.

Function Documentation

◆ operator<<()

template<typename T >
std::ostream & sparta::utils::operator<< ( std::ostream &  os,
const sparta::utils::BoundedValue< T > &  data 
)
inline

Overloading of ostream operator.

Parameters
osA reference to the ostream instance.
dataThe BoundedValue to stringize.
Returns
Ostream instance containing the stringified BoundedValue.

Definition at line 776 of file BoundedValue.hpp.

Here is the call graph for this function: