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