Reactions  0.1.2
Handling reaction trees and decays
Classes | Namespaces | Typedefs | Functions
tokens.hpp File Reference

Tokens allowed in a reaction or decay. More...

#include <cstdlib>
#include <string>
#include <utility>
Include dependency graph for tokens.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  reactions::tokens::token< C >
 Template to define new tokens. More...
 

Namespaces

 reactions::tokens
 Syntax tokens.
 

Typedefs

using reactions::tokens::space = token<' '>
 Defines the separation of two elements. More...
 
using reactions::tokens::arrow = token<'-', '>'>
 Defines a reaction. More...
 
using reactions::tokens::left_bra = token<'{'>
 Defines the begining of a reaction. More...
 
using reactions::tokens::right_bra = token<'}'>
 Defines the end of a reaction. More...
 

Functions

template<char... C, std::size_t... I>
bool reactions::tokens::match_token_impl (token< C... >, std::index_sequence< I... >, std::string::const_iterator const &it)
 Check if the iterator at the current position matches the token. More...
 
template<class Token >
bool reactions::tokens::match_token (std::string::const_iterator const &it)
 Check if the iterator at the current position matches the token. More...
 
template<char... C>
constexpr bool reactions::tokens::match_any (char c)
 Check if the given character matches any of the template arguments. More...
 
template<char C0, char C1>
constexpr bool reactions::tokens::match_range (char c)
 

Detailed Description

Tokens allowed in a reaction or decay.