HRCore V1.1.0
A High Resolution Calculation Library
Loading...
Searching...
No Matches
Utils.hpp File Reference

Privide utils for HRCore. More...

#include "../HRCore.h"
Include dependency graph for Utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  HRCore::Internal::_expression_isT_OK< G >
 
struct  HRCore::Internal::_expression_isT_OK< Value::Integer >
 
struct  HRCore::Internal::_expression_isT_OK< Value::Float >
 
struct  HRCore::Internal::_expression_mod< G >
 
struct  HRCore::Internal::_expression_mod< Value::Integer >
 
class  HRCore::Utils::Expression< T, U >
 A class to get and evaluate expression. More...
 

Namespaces

namespace  HRCore
 HRCore main namespace, contains all classes.
 
namespace  HRCore::Internal
 A namespace that contains internally used functions.
 
namespace  HRCore::Value
 A namespace that contains mathematic data type.
 
namespace  HRCore::Utils
 A namespace that contains utils for HRCore.
 

Functions

bool HRCore::Internal::_prepareNextStorageItem (Storage::Interface *i, Storage::Interface::item_t &r)
 Prepare next item of Storage to be writen. More...
 
std::ostream & HRCore::Value::operator<< (std::ostream &os, Integer &rhs)
 Reload of operator<< to support std::cout and other std::ostream with Integer. More...
 
std::istream & HRCore::Value::operator>> (std::istream &is, Integer &rhs)
 Reload of operator>> to support std::cin and other std::istream with Integer. More...
 
std::istream & HRCore::Value::operator>> (std::istream &is, Float &rhs)
 Reload of operator>> to support std::cin and other std::istream with Float. More...
 
std::ostream & HRCore::Value::operator<< (std::ostream &os, Float &rhs)
 Reload of operator<< to support std::cout and other std::ostream with Integer. More...
 
Value::Integer HRCore::Utils::abs (const Value::Integer &s)
 
Value::Float HRCore::Utils::abs (const Value::Float &s)
 
int8_t HRCore::Internal::_getOp (char c)
 
constexpr bool HRCore::Internal::_isOpPrior (int8_t left, int8_t right)
 
template<typename T , typename U >
std::istream & HRCore::Utils::operator>> (std::istream &is, Expression< T, U > &rhs)
 Convert a stream into an expression. More...
 
template<typename T , typename U >
std::ostream & HRCore::Utils::operator<< (std::ostream &os, Expression< T, U > &rhs)
 Output the value of an expression. More...
 

Detailed Description

Privide utils for HRCore.

Version
0.1
Date
2022-12-10

Definition in file Utils.hpp.


Class Documentation

◆ HRCore::Internal::_expression_isT_OK

struct HRCore::Internal::_expression_isT_OK
template<typename G>
struct HRCore::Internal::_expression_isT_OK< G >

Definition at line 348 of file Utils.hpp.

◆ HRCore::Internal::_expression_isT_OK< Value::Integer >

struct HRCore::Internal::_expression_isT_OK< Value::Integer >

Definition at line 351 of file Utils.hpp.

Class Members
typedef Integer value

◆ HRCore::Internal::_expression_isT_OK< Value::Float >

struct HRCore::Internal::_expression_isT_OK< Value::Float >

Definition at line 356 of file Utils.hpp.

Class Members
typedef Float value