- Author
- Alexander Sherikov
- Copyright
- 2018-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.
#include <ariles2/visitors/octave.h>
#include <limits>
#include <iomanip>
#include <vector>
#include <boost/lexical_cast.hpp>
◆ ARILES2_BASIC_TYPE
#define ARILES2_BASIC_TYPE |
( |
|
type | ) |
|
Value: void Writer::writeElement(
const type &element,
const Parameters &) \
{ \
if (impl_->back().isMatrix()) \
{ \
*impl_->output_stream_ << element; \
} \
else \
{ \
*impl_->output_stream_ << impl_->back().node_; \
if (impl_->back().isArray()) \
{ \
*impl_->output_stream_ << "{" << impl_->back().index_ + 1 << "}"; \
} \
*impl_->output_stream_ << " = " << element << ";\n"; \
} \
}
visitor::Parameters Parameters
Definition at line 226 of file writer.cpp.