neic-glass3  1.4.6
Link.h
Go to the documentation of this file.
1 /*****************************************
2  * This file is documented for Doxygen.
3  * If you modify this file please update
4  * the comments so that Doxygen will still
5  * be able to work.
6  ****************************************/
7 #ifndef LINK_H
8 #define LINK_H
9 
10 #include <tuple>
11 #include <memory>
12 
13 namespace glasscore {
14 
15 // forward declarations
16 class CNode;
17 class CSite;
18 
19 // defines indexes for links
20 #define LINK_PTR 0 // Node or site pointer
21 #define LINK_TT1 1 // First travel time in seconds
22 #define LINK_PHS1 2 // First travel time phase code
23 #define LINK_TT2 3 // Second travel time in seconds
24 #define LINK_PHS2 4 // Second travel time phase code
25 #define LINK_DIST 5 // Distance in degrees between Node and Site
26 
34 typedef std::tuple<std::weak_ptr<CNode>, double, std::string, double, std::string, double> NodeLink; // NOLINT
35 
42 typedef std::tuple<std::shared_ptr<CSite>, double, std::string, double, std::string, double> SiteLink; // NOLINT
43 } // namespace glasscore
44 #endif // LINK_H
std::tuple< std::weak_ptr< CNode >, double, std::string, double, std::string, double > NodeLink
Typedef to simplify use of a site-node link. Contains a CNode pointer to the Node that it&#39;s linked to...
Definition: Link.h:34
std::tuple< std::shared_ptr< CSite >, double, std::string, double, std::string, double > SiteLink
Typedef to simplify use of a node-site link. Contains a CSite pointer to the Site that it&#39;s linked to...
Definition: Link.h:42
The namespace containing the core algorithm.
Definition: Correlation.h:17