LNavFilterData.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk 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 Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 //==============================================================================
26 //
27 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
39 #ifndef LNAVFILTERDATA_HPP
40 #define LNAVFILTERDATA_HPP
41 
42 #include <stdint.h>
43 #include "NavFilterKey.hpp"
44 
45 namespace gnsstk
46 {
48 
49 
53  {
54  public:
68  uint32_t *sf;
69 
70  virtual void dump(std::ostream& s) const;
71  };
72 
73 
75  struct LNavMsgSort
76  : std::binary_function<LNavFilterData*,LNavFilterData*,bool>
77  {
78  inline bool operator()(const LNavFilterData*const& l,
79  const LNavFilterData*const& r)
80  const;
81  };
82 
84 
85 
86  bool LNavMsgSort ::
87  operator()(const LNavFilterData*const& l, const LNavFilterData*const& r)
88  const
89  {
90  for (unsigned sfword = 0; sfword < 10; sfword++)
91  {
92  if (l->sf[sfword] < r->sf[sfword])
93  return true;
94  if (l->sf[sfword] > r->sf[sfword])
95  return false;
96  }
97  return false;
98  }
99 
100 
101  // Write to output stream
102  std::ostream& operator<<(std::ostream& s, const LNavFilterData& nfd);
103 
104 }
105 
106 #endif // LNAVFILTERDATA_HPP
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::LNavMsgSort::operator()
bool operator()(const LNavFilterData *const &l, const LNavFilterData *const &r) const
Definition: LNavFilterData.hpp:87
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::LNavFilterData
Definition: LNavFilterData.hpp:52
NavFilterKey.hpp
gnsstk::LNavFilterData::LNavFilterData
LNavFilterData()
Set data fields to reasonable defaults, i.e. sf to NULL.
Definition: LNavFilterData.cpp:44
gnsstk::LNavMsgSort
Sort LNavFilterData pointers by navigation message bits.
Definition: LNavFilterData.hpp:75
gnsstk::LNavFilterData::dump
virtual void dump(std::ostream &s) const
Definition: LNavFilterData.cpp:50
gnsstk::NavFilterKey
Definition: NavFilterKey.hpp:66
gnsstk::LNavFilterData::sf
uint32_t * sf
Definition: LNavFilterData.hpp:68


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:39