3 * \file mathparser_flags.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Enrico Forestieri
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATHPARSER_FLAGS_H
13 #define MATHPARSER_FLAGS_H
22 /// Start parsing in text mode.
26 /// Quiet operation (no warnigs or errors).
28 /// Wrap unicode symbols in \text{}.
33 inline flags operator|(flags const f, flags const g)
35 return static_cast<flags>(int(f) | int(g));
39 inline flags & operator|=(flags & f, flags g)
41 return f = static_cast<flags>(int(f) | int(g));
45 inline flags operator&(flags const f, flags const g)
47 return static_cast<flags>(int(f) & int(g));