mCRL2
Loading...
Searching...
No Matches
data_io.h
Go to the documentation of this file.
1// Author(s): Maurice Laveaux
2// Copyright: see the accompanying file COPYING or copy at
3// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9
10#ifndef MCRL2_DATA_IO_H
11#define MCRL2_DATA_IO_H
12
13#include "mcrl2/atermpp/aterm_io.h"
14
15namespace mcrl2::data
16{
17
18// forward declarations.
20
21namespace detail
22{
23 /// \returns A term that represetns this data_specification.
25}
26
27/// \brief Transforms OpId to OpIdNoIndex
29
30/// \brief Transforms OpIdNoIndex to OpId
32
33/// \brief Reads a data specification from a stream.
35
36/// \brief Writes the data specification to a stream.
37atermpp::aterm_ostream& operator<<(atermpp::aterm_ostream& stream, const data_specification& spec);
38
39} // namespace mcrl2::data
40
41#endif // MCRL2_DATA_IO_H
The interface for a class that reads aterm from a stream. The default constructed term aterm() indica...
Definition aterm_io.h:67
The interface for a class that writes aterm to a stream. Every written term is retrieved by the corre...
Definition aterm_io.h:51
A helper class to restore the state of the aterm_{i,o}stream objects upon destruction....
Definition aterm_io.h:114
aterm_stream_state(aterm_stream &stream)
Definition aterm_io.h:116
A unordered_map class in which aterms can be stored.
\brief A function symbol
function_symbol(const core::identifier_string &name, const sort_expression &sort)
Constructor.
const core::identifier_string & name() const
const sort_expression & sort() const
atermpp::aterm remove_index(const atermpp::aterm &x)
Definition data_io.cpp:56
static atermpp::aterm remove_index_impl(const atermpp::aterm &x)
Definition data_io.cpp:19
static atermpp::aterm add_index_impl(const atermpp::aterm &x)
Definition data_io.cpp:29
atermpp::aterm add_index(const atermpp::aterm &x)
Definition data_io.cpp:50
aterm_istream & operator>>(aterm_istream &stream, aterm_transformer transformer)
Sets the given transformer to be applied to following reads.
Definition aterm_io.h:83
atermpp::aterm data_specification_to_aterm(const data_specification &s)
Definition data_io.cpp:39
atermpp::aterm remove_index(const atermpp::aterm &x)
Transforms OpIdNoIndex to OpId.
atermpp::aterm_istream & operator>>(atermpp::aterm_istream &stream, data_specification &spec)
Reads a data specification from a stream.
Definition data_io.cpp:61
atermpp::aterm add_index(const atermpp::aterm &x)
Transforms OpId to OpIdNoIndex.