LIBINT  2.6.0
util_types.h
1 /*
2  * Copyright (C) 2004-2019 Edward F. Valeev
3  *
4  * This file is part of Libint.
5  *
6  * Libint is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Libint is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with Libint. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef _libint2_src_bin_libint_utiltypes_h_
22 #define _libint2_src_bin_libint_utiltypes_h_
23 
24 #include <string>
25 
26 typedef enum {
27  InBra=0, InKet=1
28 } FunctionPosition;
29 enum class BraketDirection {
30  BraToKet=0, KetToBra=1, None=2
31 };
32 typedef enum {
33  CartesianAxis_X=0, CartesianAxis_Y=1, CartesianAxis_Z=2
34 } CartesianAxis;
35 
36 inline std::string to_string(CartesianAxis axis) {
37  const char xyz_str[][2] = {"x", "y", "z"};
38  return xyz_str[axis];
39 }
40 
41 #endif /* header guard */
std::string to_string(const T &x)
Converts x to its string representation.
Definition: entity.h:74