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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
|
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <bradbell@seanet.com>
# SPDX-FileContributor: 2003-24 Bradley M. Bell
# ----------------------------------------------------------------------------
{xrst_begin preprocessor}
{xrst_spell
nullptr
}
CppAD API Preprocessor Symbols
##############################
Rule
****
The CppAD include files defines preprocessor symbols all of which begin
with ``CPPAD_`` .
Note that there are some old, deprecated preprocessor symbols that
begin with ``CppAD`` .
In this section we list all of the CppAD preprocessor symbols that
are part of the CppAD Application Interface (API).
NOMINMAX, windows.h
*******************
There is one exception to the rule above,
when using the Microsoft Visual Studio compiler
and including ``windows.h`` ,
it is done as follows:
::
# ifndef NOMINMAX
# define NOMINMAX
# endif
# include <windows.h>
Documented Here
***************
CPPAD_NULL
**********
Deprecated 2020-12-03:
This preprocessor symbol was used for a null pointer before c++11.
Replace it by ``nullptr`` .
{xrst_comment
# undef CPPAD_NULL
}
CPPAD_PACKAGE_STRING
====================
Is a ``const char*`` representation of this version of CppAD.
{xrst_comment
# undef CPPAD_PACKAGE_STRING
}
CPPAD_USE_CPLUSPLUS_2011
************************
Deprecated 2020-12-03:
Is it OK for CppAD to use C++11 features. This is always 1 (for true).
{xrst_comment
# undef CPPAD_USE_CPLUSPLUS_2011
}
CPPAD_USE_CPLUSPLUS_2017
************************
Is it OK for CppAD to use C++17 features.
{xrst_comment
# undef CPPAD_USE_CPLUSPLUS_2017
}
Documented Elsewhere
********************
.. list-table::
:widths: auto
* - :ref:`CPPAD_BOOL_BINARY<bool_fun@Create Binary>`
* - :ref:`CPPAD_BOOL_UNARY<bool_fun@Create Unary>`
* - :ref:`CPPAD_DISCRETE_FUNCTION<Discrete-name>`
* - :ref:`multi_thread@CPPAD_MAX_NUM_THREADS`
* - :ref:`base_limits@CPPAD_NUMERIC_LIMITS`
* - :ref:`base_std_math@CPPAD_STANDARD_MATH_UNARY`
* - :ref:`cmake@cppad_tape_addr_type`
* - :ref:`cmake@cppad_tape_id_type`
* - :ref:`CPPAD_TESTVECTOR<testvector-name>`
* - :ref:`base_to_string@CPPAD_TO_STRING`
{xrst_comment
# undef CPPAD_BOOL_BINARY
# undef CPPAD_BOOL_UNARY
# undef CPPAD_DISCRETE_FUNCTION
# undef CPPAD_MAX_NUM_THREADS
# undef CPPAD_NUMERIC_LIMITS
# undef CPPAD_STANDARD_MATH_UNARY
# undef CPPAD_TAPE_ADDR_TYPE
# undef CPPAD_TAPE_ID_TYPE
# undef CPPAD_TESTVECTOR
# undef CPPAD_TO_STRING
}
Deprecated
==========
.. list-table::
:widths: auto
* - :ref:`CppADCreateDiscrete<Discrete@CppADCreateDiscrete Deprecated 2007-07-28>`
* - :ref:`CPPAD_TRACK_NEW_VEC<track_new_del@TrackNewVec@Macro>`
* - :ref:`CPPAD_TRACK_DEL_VEC<track_new_del@TrackDelVec@Macro>`
* - :ref:`CPPAD_TRACK_EXTEND<track_new_del@TrackExtend@Macro>`
* - :ref:`CPPAD_TRACK_COUNT<track_new_del@TrackCount@Macro>`
* - :ref:`CppADTrackNewVec<track_new_del@TrackNewVec@Previously Deprecated>`
* - :ref:`CppADTrackDelVec<track_new_del@TrackDelVec@Previously Deprecated>`
* - :ref:`CppADTrackExtend<track_new_del@TrackExtend@Previously Deprecated>`
* - :ref:`CppADTrackCount<track_new_del@TrackCount@Previously Deprecated>`
* - :ref:`CppADCreateBinaryBool<bool_fun@Deprecated 2007-07-31>`
* - :ref:`CppADCreateUnaryBool<bool_fun@Deprecated 2007-07-31>`
* - :ref:`CPPAD_USER_ATOMIC<atomic_one@Deprecated 2013-05-27>`
* - :ref:`CPPAD_CPPADVECTOR<testvector@CppAD::vector@CPPAD_CPPADVECTOR, Deprecated 2022-06-22>`
* - :ref:`CPPAD_STDVECTOR<testvector@std::vector@CPPAD_STDVECTOR, Deprecated 2022-06-22>`
* - :ref:`CPPAD_EIGENVECTOR<testvector@CppAD::eigen_vector@CPPAD_EIGENVECTOR, Deprecated 2022-06-22>`
* - :ref:`CPPAD_BOOSTVECTOR<testvector@boost::numeric::ublas::vector@CPPAD_BOOSTVECTOR, Deprecated 2022-06-22>`
{xrst_comment
# undef CppADCreateDiscrete
# undef CPPAD_TRACK_NEW_VEC
# undef CPPAD_TRACK_DEL_VEC
# undef CPPAD_TRACK_EXTEND
# undef CPPAD_TRACK_COUNT
# undef CPPAD_USER_ATOMIC
# undef CppADTrackNewVec
# undef CppADTrackDelVec
# undef CppADTrackExtend
# undef CppADTrackCount
# undef CppADCreateBinaryBool
# undef CppADCreateUnaryBool
# undef CPPAD_USER_ATOMIC
# undef CPPAD_CPPADVECTOR
# undef CPPAD_STDVECTOR
# undef CPPAD_EIGENVECTOR
# undef CPPAD_BOOSTVECTOR
}
{xrst_end preprocessor}
|