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
StringReverse.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <string/LinearString.h>
9
10namespace string {
11
12namespace transform {
13
19public:
29 template < class SymbolType >
31
32};
33
34template < class SymbolType >
37 content.insert ( content.end ( ), arg.getContent ( ).rbegin ( ), arg.getContent ( ).rend ( ) );
38
39 return string::LinearString < SymbolType > ( arg.getAlphabet ( ), content );
40}
41
42} /* namespace transform */
43
44} /* namespace string */
45
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
reverse_iterator insert(const_reverse_iterator pos, const T &value)
Inserts the value on position given by iterator pos.
Definition: vector.hpp:229
auto end() &
Inherited behavior of end for non-const instance.
Definition: vector.hpp:155
Linear string.
Definition: LinearString.h:57
const ext::set< SymbolType > & getAlphabet() const &
Definition: LinearString.h:103
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
Definition: StringReverse.h:18
static string::LinearString< SymbolType > reverse(const string::LinearString< SymbolType > &arg)
Definition: StringReverse.h:35
ContainerType< ResType > transform(const ContainerType< InType, Ts ... > &in, Callback transform)
In container tranformation of all elements according to the tranform.
Definition: algorithm.hpp:150
Definition: RandomStringFactory.cpp:12