OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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
31 #include "orte/mca/odls/odls_types.h"
32 #include "orte/runtime/orte_globals.h"
33
34 BEGIN_C_DECLS
35
36 typedef struct {
37 opal_list_item_t super;
38 int start;
39 int cnt;
40 } orte_regex_range_t;
41 ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_regex_range_t);
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;
50 } orte_regex_node_t;
51 ORTE_DECLSPEC OBJ_CLASS_DECLARATION(orte_regex_node_t);
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
odls_types.h
opal_list.h
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
opal_list_item_t
Definition: opal_list.h:98
orte_regex_node_t
Definition: regex.h:43
orte_regex_range_t
Definition: regex.h:36
opal_list_t
Definition: opal_list.h:147
orte_globals.h
Global params for OpenRTE.
OBJ_CLASS_DECLARATION
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236