Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Concepts
RankedSymbol.h
Go to the documentation of this file.
1
6#pragma once
7
9#include <core/stringApi.hpp>
11
12namespace core {
13
14template < class SymbolType >
15struct stringApi < common::ranked_symbol < SymbolType > > {
17 static bool first ( ext::istream & input );
18 static void compose ( ext::ostream & output, const common::ranked_symbol < SymbolType > & symbol );
19};
20
21template < class SymbolType >
23 throw exception::CommonException("Parsing of ranked symbol from string not implemented.");
24}
25
26template < class SymbolType >
28 return false;
29}
30
31template < class SymbolType >
34 core::stringApi < size_t >::compose ( output, symbol.getRank ( ) );
35}
36
37} /* namespace core */
38
Definition: ranked_symbol.hpp:20
const SymbolType & getSymbol() const &
Definition: ranked_symbol.hpp:73
const size_t & getRank() const &
Definition: ranked_symbol.hpp:83
Basic exception from which all other exceptions are derived.
Definition: CommonException.h:21
Definition: istream.h:32
Definition: ostream.h:14
Definition: Permutation.hpp:18
Definition: normalize.hpp:10
Definition: stringApi.hpp:26