GIRAFFE Pipeline Reference Manual

girange.h
1 /* $Id$
2  *
3  * This file is part of the GIRAFFE Pipeline
4  * Copyright (C) 2002-2006 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author$
23  * $Date$
24  * $Revision$
25  * $Name$
26  */
27 
28 #ifndef GIRANGE_H
29 #define GIRANGE_H
30 
31 #include <cxtypes.h>
32 
33 #include <cpl_macros.h>
34 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 
41 typedef struct GiRange GiRange;
42 
43 GiRange *giraffe_range_new(void);
44 GiRange *giraffe_range_create(cxdouble min, cxdouble max);
45 void giraffe_range_delete(GiRange *self);
46 
47 void giraffe_range_set_min(GiRange *self, cxdouble min);
48 cxdouble giraffe_range_get_min(const GiRange *const self);
49 void giraffe_range_set_max(GiRange *self, cxdouble max);
50 cxdouble giraffe_range_get_max(const GiRange *const self);
51 
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* GIRANGE_H */
cxdouble giraffe_range_get_min(const GiRange *const self)
Get the minimum of a range.
Definition: girange.c:175
void giraffe_range_set_min(GiRange *self, cxdouble min)
Set the minimum of a range.
Definition: girange.c:152
GiRange * giraffe_range_create(cxdouble min, cxdouble max)
Creates a new range from the given minimum and maximum values.
Definition: girange.c:91
GiRange * giraffe_range_new(void)
Creates a new range.
Definition: girange.c:66
void giraffe_range_set_max(GiRange *self, cxdouble max)
Set the maximum of a range.
Definition: girange.c:198
void giraffe_range_delete(GiRange *self)
Destroys a range object.
Definition: girange.c:126
cxdouble giraffe_range_get_max(const GiRange *const self)
Get the maximum of a range.
Definition: girange.c:221

This file is part of the GIRAFFE Pipeline Reference Manual 2.14.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Wed Mar 11 2015 13:19:42 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2004