#include <regex>
#include "types.h"
#include "dict.h"
#include "rational.h"
Go to the source code of this file.
|
typedef at::indexing::TensorIndex | Index |
|
typedef at::IntArrayRef | Dimension |
|
◆ INCLUDED_OBJECT_H_
#define INCLUDED_OBJECT_H_ |
◆ TEST_CONST_
#define TEST_CONST_ |
( |
| ) |
if (m_is_const) {LOG_RUNTIME("Can`t edit const value '%s'!", toString().c_str());} |
◆ TEST_INIT_
#define TEST_INIT_ |
( |
| ) |
if (!m_var_is_init) {LOG_RUNTIME("Object not initialized '%s'!", toString().c_str());} |
◆ PLACE_RANGE_CHECK_VALUE
#define PLACE_RANGE_CHECK_VALUE |
( |
| itype, |
|
|
| utype ) |
Value: explicit inline operator itype() const { \
int64_t
result = GetValueAsInteger(); \
if (
result > std::numeric_limits<itype>::max() ||
result < std::numeric_limits<itype>::lowest()) { \
LOG_RUNTIME("Value '%s' is out of range of the casting type %s!", GetValueAsString().c_str(), #itype); \
} \
} \
explicit inline operator utype() const { \
int64_t
result = GetValueAsInteger(); \
if (
result > std::numeric_limits<utype>::max() ||
result < 0) { \
LOG_RUNTIME("Value '%s' is out of range of the casting type %s!", GetValueAsString().c_str(), #utype); \
} \
}
Definition at line 858 of file object.h.
◆ Index
typedef at::indexing::TensorIndex Index |
◆ Dimension
◆ operator<<() [1/2]
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
newlang::Obj & | var ) |
◆ operator<<() [2/2]