LAL  7.5.0.1-bede9b2
DestroyZPGFilter.c
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2007 Jolien Creighton, Teviet Creighton
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with with program; see the file COPYING. If not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 * MA 02110-1301 USA
18 */
19 
20 #include <lal/LALStdlib.h>
21 #include <lal/AVFactories.h>
22 #include <lal/ZPGFilter.h>
23 
24 
25 /**
26  * \addtogroup DestroyZPGFilter_c
27  * \author Creighton, T. D.
28  *
29  * \brief Destroys ZPG filter objects.
30  *
31  * ### Description ###
32  *
33  * These functions destroy an object <tt>**output</tt> of type
34  * \c COMPLEX8ZPGFilter or \c COMPLEX16ZPGFilter, and set
35  * <tt>*output</tt> to \c NULL.
36  *
37  */
38 /** @{ */
39 
40 /** \see See \ref DestroyZPGFilter_c for documentation */
42 {
43  if ( filter )
44  {
47  LALFree( filter );
48  }
49  return;
50 }
51 
52 /** \see See \ref DestroyZPGFilter_c for documentation */
54 {
55  if ( filter )
56  {
59  LALFree( filter );
60  }
61  return;
62 }
63 
64 /** \see See \ref DestroyZPGFilter_c for documentation */
65 void
67  COMPLEX8ZPGFilter **input )
68 {
69  INITSTATUS(stat);
70 
71  /* Make sure handle is non-null, and points to a non-null
72  pointer. */
75 
77  *input = NULL;
78 
79  /* Normal exit */
80  RETURN(stat);
81 }
82 
83 /** \see See \ref DestroyZPGFilter_c for documentation */
84 void
86  COMPLEX16ZPGFilter **input )
87 {
88  INITSTATUS(stat);
89 
90  /* Make sure handle is non-null, and points to a non-null
91  pointer. */
94 
96  *input = NULL;
97 
98  /* Normal exit */
99  RETURN(stat);
100 }
101 /** @} */
#define LALFree(p)
Definition: LALMalloc.h:96
#define ASSERT(assertion, statusptr, code, mesg)
#define INITSTATUS(statusptr)
#define RETURN(statusptr)
#define ZPGFILTERH_MSGENUL
Definition: ZPGFilter.h:110
void LALDestroyCOMPLEX16ZPGFilter(LALStatus *stat, COMPLEX16ZPGFilter **input)
void LALDestroyCOMPLEX8ZPGFilter(LALStatus *stat, COMPLEX8ZPGFilter **input)
void XLALDestroyCOMPLEX8ZPGFilter(COMPLEX8ZPGFilter *filter)
void XLALDestroyCOMPLEX16ZPGFilter(COMPLEX16ZPGFilter *filter)
void XLALDestroyCOMPLEX16Vector(COMPLEX16Vector *vector)
void XLALDestroyCOMPLEX8Vector(COMPLEX8Vector *vector)
#define ZPGFILTERH_ENUL
Unexpected null pointer in arguments.
Definition: ZPGFilter.h:103
See DATATYPE-ZPGFilter types for details.
Definition: LALDatatypes.h:930
COMPLEX16Vector * poles
Definition: LALDatatypes.h:934
COMPLEX16Vector * zeros
Definition: LALDatatypes.h:933
See DATATYPE-ZPGFilter types for details.
Definition: LALDatatypes.h:921
COMPLEX8Vector * poles
Definition: LALDatatypes.h:925
COMPLEX8Vector * zeros
Definition: LALDatatypes.h:924
LAL status structure, see The LALStatus structure for more details.
Definition: LALDatatypes.h:947