OpenMPI  0.1.1
regex.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
3  * University Research and Technology
4  * Corporation. All rights reserved.
5  * Copyright (c) 2004-2006 The University of Tennessee and The University
6  * of Tennessee Research Foundation. All rights
7  * reserved.
8  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9  * University of Stuttgart. All rights reserved.
10  * Copyright (c) 2004-2005 The Regents of the University of California.
11  * All rights reserved.
12  * $COPYRIGHT$
13  *
14  * Additional copyrights may follow
15  *
16  * $HEADER$
17  */
18 
19 /** @file:
20  *
21  */
22 
23 #ifndef _ORTE_REGEX_H_
24 #define _ORTE_REGEX_H_
25 
26 #include "orte_config.h"
27 
28 #include "opal/class/opal_value_array.h"
29 #include "opal/class/opal_list.h"
30 
33 
34 BEGIN_C_DECLS
35 
36 typedef struct {
37  opal_list_item_t super;
38  int start;
39  int cnt;
42 
43 typedef struct {
44  /* list object */
45  opal_list_item_t super;
46  char *prefix;
47  char *suffix;
48  int num_digits;
49  opal_list_t ranges;
52 
53 /* NOTE: this is a destructive call for the nodes param - the
54  * function will search and replace all commas with '\0'
55  */
56 ORTE_DECLSPEC int orte_regex_create(char *nodes, char **regexp);
57 
58 ORTE_DECLSPEC int orte_regex_extract_node_names(char *regexp, char ***names);
59 
60 ORTE_DECLSPEC int orte_regex_extract_ppn(int num_nodes, char *regexp, int **ppn);
61 
62 END_C_DECLS
63 #endif
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
Definition: opal_list.h:98
Definition: regex.h:43
Definition: regex.h:36
Definition: opal_list.h:147
Global params for OpenRTE.
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236