forked from MethodicalAcceleratorDesign/MAD-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mad_select.h
40 lines (33 loc) · 1.53 KB
/
mad_select.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef MAD_SELECT_H
#define MAD_SELECT_H
// types
struct node;
struct node_list;
struct table;
struct sequence;
struct command;
struct command_list;
struct select_iter;
struct sequence;
struct sequence_list;
struct element;
// interface
void store_select(struct in_cmd*);
void store_deselect(struct in_cmd*);
int pass_select(const char* name, struct command*); // deprecated
int pass_select_str(const char* name, const char* class_, struct command*); // not for elements!
int pass_select_el(struct element* el, struct command*);
int pass_select_list_str(const char* name, const char* class_, struct command_list*); // not for elements!
int pass_select_list_el(struct element* el, struct command_list*);
void get_select_t_ranges(struct command_list* select, struct command_list* deselect, struct table*);
int get_select_ranges(struct sequence* sequ, struct command_list* select, struct node_list* s_ranges);
int get_ex_range(const char* range, struct sequence*, struct node**);
int get_sub_range(const char* range, struct sequence*, struct node**);
int get_range(const char* range, struct sequence*, struct node**);
void set_selected_errors(void);
void set_selected_columns(struct table*, struct command_list*);
void set_range(char* range, struct sequence*);
void set_sector(void);
struct select_iter* start_iter_select(struct command*, struct sequence_list*, struct sequence*);
int fetch_node_select(struct select_iter*, struct node**, struct sequence**);
#endif // MAD_SELECT_H