mimmoTypeDef.hpp
1 /*---------------------------------------------------------------------------*\
2  *
3  * mimmo
4  *
5  * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6  *
7  * -------------------------------------------------------------------------
8  * License
9  * This file is part of mimmo.
10  *
11  * mimmo is free software: you can redistribute it and/or modify it
12  * under the terms of the GNU Lesser General Public License v3 (LGPL)
13  * as published by the Free Software Foundation.
14  *
15  * mimmo is distributed in the hope that it will be useful, but WITHOUT
16  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with mimmo. If not, see <http://www.gnu.org/licenses/>.
22  *
23  \ *---------------------------------------------------------------------------*/
24 
25 #ifndef MIMMOTYPEDEF_HH
26 #define MIMMOTYPEDEF_HH
27 
28 #include <vector>
29 #include <array>
30 #include <string>
31 #include <stdint.h>
32 #include <unordered_map>
33 
39 typedef std::vector<double> dvector1D;
40 typedef std::vector<float> fvector1D;
41 typedef std::vector<int> ivector1D;
42 typedef std::vector<long> livector1D;
43 typedef std::vector<uint32_t> u32vector1D;
44 typedef std::vector<short int> shivector1D;
45 typedef std::vector<bool> bvector1D;
46 typedef std::vector<char> cvector1D;
47 typedef std::vector<std::string> svector1D;
49 typedef std::array<double,2> darray2E;
50 typedef std::array<double,3> darray3E;
51 typedef std::array<double,4> darray4E;
52 typedef std::array<float,3> farray3E;
53 typedef std::array<int,3> iarray3E;
54 typedef std::array<int,2> iarray2E;
55 typedef std::array<uint32_t,3> uarray3E;
57 typedef std::vector<darray2E> dvecarr2E;
58 typedef std::vector<darray3E> dvecarr3E;
59 typedef std::vector<darray4E> dvecarr4E;
60 typedef std::vector<farray3E> fvecarr3E;
61 typedef std::vector<iarray3E> ivecarr3E;
62 typedef std::vector<iarray2E> ivecarr2E;
64 typedef std::vector<dvector1D> dvector2D;
65 typedef std::vector<fvector1D> fvector2D;
68 typedef std::vector<ivector1D> ivector2D;
69 typedef std::vector<livector1D> livector2D;
70 typedef std::vector<shivector1D> shivector2D;
71 typedef std::vector<bvector1D> bvector2D;
72 typedef std::vector<cvector1D> cvector2D;
73 typedef std::vector<svector1D> svector2D;
75 typedef std::vector< bvector2D > bvector3D;
76 typedef std::vector< bvector3D > bvector4D;
77 typedef std::vector< cvector2D > cvector3D;
78 typedef std::vector< cvector3D > cvector4D;
79 typedef std::vector< ivector2D > ivector3D;
80 typedef std::vector< ivector3D > ivector4D;
81 typedef std::vector< dvector2D > dvector3D;
82 typedef std::vector< dvector3D > dvector4D;
83 typedef std::vector< svector2D > svector3D;
84 typedef std::vector< svector3D > svector4D;
86 typedef std::array<darray2E,3> dmatrix32E;
87 typedef std::array<darray3E,3> dmatrix33E;
88 typedef std::array<darray4E,4> dmatrix44E;
89 typedef std::array<uarray3E,3> umatrix33E;
91 typedef std::array<dvector1D,3> darr3Evec;
92 typedef std::array<darr3Evec,3> dmat33Evec;
94 typedef std::unordered_map<long int, long int> lilimap;
99 #endif //MIMMOTYPEDEF_HH
std::array< double, 4 > darray4E
std::vector< livector1D > livector2D
std::array< int, 3 > iarray3E
std::vector< dvector2D > dvector3D
std::array< float, 3 > farray3E
std::vector< cvector1D > cvector2D
std::array< darr3Evec, 3 > dmat33Evec
std::vector< cvector3D > cvector4D
std::vector< std::string > svector1D
std::array< darray2E, 3 > dmatrix32E
std::vector< bool > bvector1D
std::vector< darray3E > dvecarr3E
std::vector< svector1D > svector2D
std::vector< long > livector1D
std::vector< farray3E > fvecarr3E
std::vector< ivector3D > ivector4D
std::vector< fvector1D > fvector2D
std::vector< dvector3D > dvector4D
std::vector< short int > shivector1D
std::array< uint32_t, 3 > uarray3E
std::vector< iarray3E > ivecarr3E
std::array< dvector1D, 3 > darr3Evec
std::vector< bvector3D > bvector4D
std::vector< int > ivector1D
std::array< darray3E, 3 > dmatrix33E
std::vector< double > dvector1D
std::vector< float > fvector1D
std::unordered_map< long int, long int > lilimap
std::vector< darray4E > dvecarr4E
std::array< uarray3E, 3 > umatrix33E
std::vector< uint32_t > u32vector1D
std::array< double, 2 > darray2E
std::vector< shivector1D > shivector2D
std::vector< ivector1D > ivector2D
std::vector< iarray2E > ivecarr2E
std::vector< dvector1D > dvector2D
std::vector< cvector2D > cvector3D
std::vector< darray2E > dvecarr2E
std::vector< char > cvector1D
std::array< darray4E, 4 > dmatrix44E
std::array< double, 3 > darray3E
std::vector< bvector2D > bvector3D
std::vector< svector2D > svector3D
std::vector< svector3D > svector4D
std::vector< bvector1D > bvector2D
std::vector< ivector2D > ivector3D
std::array< int, 2 > iarray2E