Debian Codegraph @

inc/core/AgnLocusFilterStream.h

raw
1 /**
2
3 Copyright (c) 2010-2014, Daniel S. Standage and CONTRIBUTORS
4
5 The AEGeAn Toolkit is distributed under the ISC License. See
6 the 'LICENSE' file in the AEGeAn source code distribution or
7 online at https://github.com/standage/AEGeAn/blob/master/LICENSE.
8
9 **/
10
11 #ifndef AEGEAN_LOCUS_FILTER_STREAM
12 #define AEGEAN_LOCUS_FILTER_STREAM
13
14 #include "extended/node_stream_api.h"
15 #include "core/hashmap_api.h"
16 #include "AgnUnitTest.h"
17
18 /**
19 * @class AgnLocusFilterStream
20 *
21 * Implements the GenomeTools ``GtNodeStream`` interface. This is a node stream
22 * used to select loci based on user-specified criteria.
23 */
24 typedef struct AgnLocusFilterStream AgnLocusFilterStream;
25
26 /**
27 * @function Class constructor. The keys of the ``typestokeep`` hashmap should
28 * be the type(s) to be kept from the node stream. Any non-NULL value can be
29 * associated with those keys.
30 */
31 GtNodeStream* agn_locus_filter_stream_new(GtNodeStream *in_stream,
32 GtArray *filters);
33
34 /**
35 * @function Run unit tests for this class. Returns true if all tests passed.
36 */
37 bool agn_locus_filter_stream_unit_test(AgnUnitTest *test);
38
39 #endif