TECA
The Toolkit for Extreme Climate Analysis
teca_algorithm_output_port.h
Go to the documentation of this file.
1 #ifndef teca_algorithm_output_port_h
2 #define teca_algorithm_output_port_h
3 
4 /// @file
5 
6 /// An output port packages an algorithm and a port number
7 using teca_algorithm_output_port
8  = std::pair<p_teca_algorithm, unsigned int>;
9 
10 /// get the algorithm from the output port
11 inline
12 p_teca_algorithm &get_algorithm(teca_algorithm_output_port &op)
13 { return op.first; }
14 
15 /// get port number from the output port
16 inline
17 unsigned int &get_port(teca_algorithm_output_port &op)
18 { return op.second; }
19 
20 #endif
p_teca_algorithm & get_algorithm(teca_algorithm_output_port &op)
get the algorithm from the output port
Definition: teca_algorithm_output_port.h:12
unsigned int & get_port(teca_algorithm_output_port &op)
get port number from the output port
Definition: teca_algorithm_output_port.h:17