MI - Fimex
Felt_Types.h
Go to the documentation of this file.
1 /*
2  * Fimex, Felt_Types.h
3  *
4  * (C) Copyright 2009, met.no
5  *
6  * Project Info: https://wiki.met.no/fimex/start
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  * USA.
22  *
23  * Created on: Jul 29, 2009
24  * Author: Heiko Klein
25  */
26 
27 #ifndef FELT_TYPES_H_
28 #define FELT_TYPES_H_
29 
30 namespace MetNoFelt {
39 struct LevelPairLess : public std::binary_function<const LevelPair, const LevelPair, bool>
40 {
41  bool operator()(const LevelPair& p1, const LevelPair& p2) const {
42  if (p1.first == p2.first) return p1.second < p2.second;
43  return p1.first < p2.first;
44  }
45 };
46 
47 
48 } // end namespace MetNoFelt
49 
50 #endif /* FELT_TYPES_H_ */
std::pair< short, short > LevelPair
Definition: Felt_Types.h:34
bool operator()(const LevelPair &p1, const LevelPair &p2) const
Definition: Felt_Types.h:41
Definition: Felt_Types.h:39
Definition: Felt_Types.h:30