ARTS  2.2.66
linerecord.cc File Reference

LineRecord implementation. More...

#include <cfloat>
#include "linerecord.h"
#include "absorption.h"
#include "global_data.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const LineRecord &lr)
 Output operator for LineRecord. More...
 
bool find_matching_lines (ArrayOfIndex &matches, const ArrayOfLineRecord &abs_lines, const Index species, const Index isotopologue, const QuantumNumberRecord qr, const LineMatchingCriteria match_criteria)
 Find lines matching the given criteria. More...
 

Detailed Description

LineRecord implementation.

Author
Stefan Buehler and Axel von Engeln

Definition in file linerecord.cc.

Function Documentation

◆ find_matching_lines()

bool find_matching_lines ( ArrayOfIndex matches,
const ArrayOfLineRecord abs_lines,
const Index  species,
const Index  isotopologue,
const QuantumNumberRecord  qr,
const LineMatchingCriteria  match_criteria = LINE_MATCH_ALL 
)

Find lines matching the given criteria.

Parameters
[out]matchesMatching indexes in abs_lines
[in]speciesSpecies index (-1 matches all)
[in]isotopologueIsotopologue index (-1 matches all)
[in]qrQuantumNumberRecord
[in]match_criteriaOne of LINE_MATCH_FIRST, LINE_MATCH_UNIQUE, LINE_MATCH_ALL
Returns
true if the match_criteria was satisfied

Definition at line 2631 of file linerecord.cc.

References LineRecord::Isotopologue(), LINE_MATCH_FIRST, LINE_MATCH_UNIQUE, QuantumNumberRecord::Lower(), Array< base >::nelem(), LineRecord::QuantumNumbers(), LineRecord::Species(), and QuantumNumberRecord::Upper().

Referenced by line_mixing_dataMatch(), and main().

◆ operator<<()