- Author
- Jan Michalczyk
-
Alexander Sherikov
- Copyright
- 2014-2017 INRIA. Licensed under the Apache License, Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
-
2017-2020 Alexander Sherikov, Licensed under the Apache License, Version 2.0. (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
Definition in file writer.cpp.
Go to the source code of this file.
◆ ARILES_BASIC_TYPE [1/2]
#define ARILES_BASIC_TYPE |
( |
|
type | ) |
|
Value:void Writer::writeElement(const type &element) \
{ \
*impl_->emitter_ << element; \
}
Definition at line 189 of file writer.cpp.
◆ ARILES_BASIC_TYPE [2/2]
#define ARILES_BASIC_TYPE |
( |
|
type | ) |
|
Value:void Writer::writeElement(const type &element) \
{ \
if (true == ariles::isNaN(element)) \
{ \
*impl_->emitter_ << ".nan"; \
} \
else \
{ \
if (true == ariles::isInfinity(element)) \
{ \
if (element < 0.0) \
{ \
*impl_->emitter_ << "-.inf"; \
} \
else \
{ \
*impl_->emitter_ << ".inf"; \
} \
} \
else \
{ \
*impl_->emitter_ << element; \
} \
} \
}
Definition at line 189 of file writer.cpp.