- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

AlpsLinux.h
Go to the documentation of this file.
1 /*===========================================================================*
2 * This file is part of the Abstract Library for Parallel Search (ALPS). *
3 * *
4 * ALPS is distributed under the Eclipse Public License as part of the *
5 * COIN-OR repository (http://www.coin-or.org). *
6 * *
7 * Authors: *
8 * *
9 * Yan Xu, Lehigh University *
10 * Ted Ralphs, Lehigh University *
11 * *
12 * Conceptual Design: *
13 * *
14 * Yan Xu, Lehigh University *
15 * Ted Ralphs, Lehigh University *
16 * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17 * Matthew Saltzman, Clemson University *
18 * *
19 * *
20 * Copyright (C) 2001-2013, Lehigh University, Yan Xu, and Ted Ralphs. *
21 *===========================================================================*/
22
23 #ifndef AlpsLinux_h
24 #define AlpsLinux_h
25
26 // AlpsLinux.h is modified from BCPLinux.hpp
27 // This file is fully docified.
28 // There's nothing to docify...
29
30 typedef int AlpsIndexType;
31
32 #if defined(__GNUC__)
33
34 # include <sys/time.h> // for gettimeofday()
35 # include <sys/resource.h> // for setpriority()
36 # ifndef __USE_BSD
37 # define __USE_BSD // to get gethostname() from unistd.h
38 # include <unistd.h>
39 # undef __USE_BSD
40 # else
41 # include <unistd.h>
42 # endif
43 # define AlpsPtrDiff int
44
45 # if (__GNUC__ >= 3)
46
47 # define NEED_TEMPLATE_CLASSES
48 # define NEED_TEMPLATE_FUNCTIONS
49 // # define NEED_STD_TEMPLATE_FUNCTIONS
50 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
51 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
52 # define ALPS_CONSTRUCT std::_Construct
53 # define ALPS_DESTROY std::_Destroy
54 # define ALPS_DESTROY_RANGE std::_Destroy
55
56 # else
57
58 # define NEED_TEMPLATE_CLASSES
59 # define NEED_TEMPLATE_FUNCTIONS
60 // # define NEED_STD_TEMPLATE_FUNCTIONS
61 // # define NEED_IMPLICIT_TEMPLATE_CLASSES
62 // # define NEED_IMPLICIT_TEMPLATE_FUNCTIONS
63 # define ALPS_CONSTRUCT std::construct
64 # define ALPS_DESTROY std::destroy
65 # define ALPS_DESTROY_RANGE std::destroy
66
67 # endif
68
69 #endif
70
71 #endif
AlpsIndexType
int AlpsIndexType
Definition: AlpsAix43.h:34