ARTS  2.3.1285(git:92a29ea9-dirty)
linemixingrecord.h
Go to the documentation of this file.
1 /* Copyright 2013, The ARTS Developers.
2  *
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by the
5  * Free Software Foundation; either version 2, or (at your option) any
6  * later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software Foundation,
15  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16  */
17 
24 #ifndef linemixingrecord_h
25 #define linemixingrecord_h
26 
27 #include <iostream>
28 #include "matpackI.h"
29 #include "quantum.h"
30 #include "abs_species_tags.h"
31 
32 
34 {
35 public:
37  LineMixingRecord(Index species, Index iso) : mspecies(species), misotopologue(iso) {};
38 
39  Index Species() const { return mspecies; }
40  Index Isotopologue() const { return misotopologue; }
41 
42  QuantumNumberRecord& Quantum() { return mquantum; }
43  const QuantumNumberRecord& Quantum() const { return mquantum; }
44 
45  Vector& Data() { return mdata; }
46  const Vector& Data() const { return mdata; }
47 
48 private:
54  QuantumNumberRecord mquantum;
57 };
58 
59 std::ostream& operator<<(std::ostream& os, const LineMixingRecord& lmr);
60 
63 
64 #endif /* linemixingrecord_h */
void iso(Array< IsotopologueRecord >::iterator &ii, String name, const ArrayOfNumeric &coeff, const ArrayOfNumeric &temp_range, const Index &coefftype)
Initialize isotopologue and move iterator to next one.
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
const QuantumNumberRecord & Quantum() const
LineMixingRecord(Index species, Index iso)
Index mspecies
Species index.
QuantumNumberRecord & Quantum()
The Vector class.
Definition: matpackI.h:860
Index Isotopologue() const
Array< ArrayOfLineMixingRecord > ArrayOfArrayOfLineMixingRecord
Index Species() const
Array< LineMixingRecord > ArrayOfLineMixingRecord
const Vector & Data() const
Index misotopologue
Isotopologue index.
Implementation of Matrix, Vector, and such stuff.
This can be used to make arrays out of anything.
Definition: array.h:40
Vector mdata
Line mixing data.
Header file for stuff related to absorption species tags.
QuantumNumberRecord mquantum
Quantum Numbers.
std::ostream & operator<<(std::ostream &os, const LineMixingRecord &lmr)