mCRL2
|
Reads terms from a stream in the steamable binary aterm format. More...
#include <aterm_io_binary.h>
Public Member Functions | |
binary_aterm_istream (std::istream &is) | |
Provide the input stream from which terms are read. | |
binary_aterm_istream (std::shared_ptr< mcrl2::utilities::ibitstream > stream) | |
void | get (aterm &t) override |
Reads an aterm from this stream. | |
Public Member Functions inherited from atermpp::aterm_istream | |
virtual | ~aterm_istream () |
virtual void | get (aterm &t)=0 |
Reads an aterm from this stream. | |
Public Member Functions inherited from atermpp::aterm_stream | |
virtual | ~aterm_stream () |
void | set_transformer (aterm_transformer transformer) |
Sets the given transformer to be applied to following writes. | |
aterm_transformer * | get_transformer () const |
Private Member Functions | |
unsigned int | term_index_width () |
unsigned int | function_symbol_index_width () |
Private Attributes | |
std::shared_ptr< mcrl2::utilities::ibitstream > | m_stream |
unsigned int | m_term_index_width |
caches the result of term_index_width(). | |
unsigned int | m_function_symbol_index_width |
caches the result of function_symbol_index_width(). | |
atermpp::deque< aterm > | m_terms |
An index of read terms. | |
std::deque< function_symbol > | m_function_symbols |
An index of read function symbols. | |
Additional Inherited Members | |
Protected Attributes inherited from atermpp::aterm_stream | |
aterm_transformer * | m_transformer = identity |
Reads terms from a stream in the steamable binary aterm format.
Definition at line 67 of file aterm_io_binary.h.
atermpp::binary_aterm_istream::binary_aterm_istream | ( | std::istream & | is | ) |
Provide the input stream from which terms are read.
Definition at line 214 of file aterm_io_binary.cpp.
atermpp::binary_aterm_istream::binary_aterm_istream | ( | std::shared_ptr< mcrl2::utilities::ibitstream > | stream | ) |
Definition at line 193 of file aterm_io_binary.cpp.
|
private |
Definition at line 316 of file aterm_io_binary.cpp.
|
overridevirtual |
Reads an aterm from this stream.
Implements atermpp::aterm_istream.
Definition at line 240 of file aterm_io_binary.cpp.
|
private |
Definition at line 310 of file aterm_io_binary.cpp.
|
private |
caches the result of function_symbol_index_width().
Definition at line 86 of file aterm_io_binary.h.
|
private |
An index of read function symbols.
Definition at line 89 of file aterm_io_binary.h.
|
private |
Definition at line 83 of file aterm_io_binary.h.
|
private |
caches the result of term_index_width().
Definition at line 85 of file aterm_io_binary.h.
|
private |
An index of read terms.
Definition at line 88 of file aterm_io_binary.h.