Ariles
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
reader.cpp File Reference

Detailed Description

Author
Alexander Sherikov

Definition in file reader.cpp.

Go to the source code of this file.

#include <boost/math/special_functions.hpp>
#include <ariles2/visitors/nlohmann_json.h>
#include "common.h"

Classes

class  ariles2::ns_nlohmann_json::impl::Reader
 

Namespaces

namespace  ariles2
 
namespace  ariles2::ns_nlohmann_json
 
namespace  ariles2::ns_nlohmann_json::impl
 

Macros

#define ARILES2_BASIC_TYPE(type)
 
#define ARILES2_BASIC_TYPE(type)
 

Macro Definition Documentation

◆ ARILES2_BASIC_TYPE [1/2]

#define ARILES2_BASIC_TYPE (   type)
Value:
void Reader::readElement(type &element) \
{ \
const int64_t tmp_value = impl_->getRawNode().get<int64_t>(); \
CPPUT_ASSERT( \
tmp_value <= std::numeric_limits<type>::max() && tmp_value >= std::numeric_limits<type>::min(), \
"Value is out of range."); \
element = static_cast<type>(tmp_value); \
}

Definition at line 239 of file reader.cpp.

◆ ARILES2_BASIC_TYPE [2/2]

#define ARILES2_BASIC_TYPE (   type)
Value:
void Reader::readElement(type &element) \
{ \
const uint64_t tmp_value = impl_->getRawNode().get<uint64_t>(); \
CPPUT_ASSERT(tmp_value <= std::numeric_limits<type>::max(), "Value is too large."); \
element = static_cast<type>(tmp_value); \
}

Definition at line 239 of file reader.cpp.