GIRAFFE Pipeline Reference Manual

girange.h
1/*
2 * This file is part of the GIRAFFE Pipeline
3 * Copyright (C) 2002-2019 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program 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 General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef GIRANGE_H
21#define GIRANGE_H
22
23#include <cxtypes.h>
24
25#include <cpl_macros.h>
26
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32
33typedef struct GiRange GiRange;
34
35GiRange *giraffe_range_new(void);
36GiRange *giraffe_range_create(cxdouble min, cxdouble max);
37void giraffe_range_delete(GiRange *self);
38
39void giraffe_range_set_min(GiRange *self, cxdouble min);
40cxdouble giraffe_range_get_min(const GiRange *const self);
41void giraffe_range_set_max(GiRange *self, cxdouble max);
42cxdouble giraffe_range_get_max(const GiRange *const self);
43
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* GIRANGE_H */
GiRange * giraffe_range_new(void)
Creates a new range.
Definition: girange.c:58
void giraffe_range_set_min(GiRange *self, cxdouble min)
Set the minimum of a range.
Definition: girange.c:144
void giraffe_range_delete(GiRange *self)
Destroys a range object.
Definition: girange.c:118
cxdouble giraffe_range_get_min(const GiRange *const self)
Get the minimum of a range.
Definition: girange.c:167
cxdouble giraffe_range_get_max(const GiRange *const self)
Get the maximum of a range.
Definition: girange.c:213
GiRange * giraffe_range_create(cxdouble min, cxdouble max)
Creates a new range from the given minimum and maximum values.
Definition: girange.c:83
void giraffe_range_set_max(GiRange *self, cxdouble max)
Set the maximum of a range.
Definition: girange.c:190

This file is part of the GIRAFFE Pipeline Reference Manual 2.19.1.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jul 17 2025 09:27:30 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2004