/usr/include/openturns/OTprivate.hxx is in libopenturns-dev 1.9-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | // -*- C++ -*-
/**
* @brief The internal header file of OpenTURNS
*
* Copyright 2005-2017 Airbus-EDF-IMACS-Phimeca
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* @mainpage OpenTURNS API documentation
*
* This documentation is intented to be used by experienced programmers.
* It shows the API of almost all the objects defined by the C++ core library
* of OpenTURNS.
*
* There may be undocumented features or objects. This is a mistake. You can help
* us improve the software by noticing us of these caveats or by documenting them yourself
* as a friendly user.
*
* As visible either in the directory structure or in the namespace naming,
* the library is divided in two main pieces:
* - the Base part
* - the Uncertainty part
*
* \section Base
* The Base part of the library provides containers and algorithms of common usage, such
* as multidimensional points (\link OT::Point Point\endlink),
* aka vectors, samples
* (\link OT::Sample Sample\endlink)
* or functions (\link OT::Function Function\endlink).
* Every concept in OpenTURNS is multidimensional unless clearly expressed or documented.
*
* \section Uncertainty
* The Uncertainty part of the library provides objects and algorithms designed to achieve
* probabilistic analyses. Here you will find things like distributions (\link OT::Distribution
* Distribution\endlink or \link OT::Normal Normal\endlink),
* random vectors (\link OT::RandomVector RandomVector\endlink), algorithms
* (\link OT::FORM FORM\endlink or \link OT::MonteCarlo
* MonteCarlo\endlink) or statistical tests (\link OT::FittingTest FittingTest\endlink).
*
* As you will probably see, a particular attention was paid to precisely name classes and objects
* according to their usage. We hope this will help you enter the library.
*
* The OpenTURNS core team.
*/
#ifndef OPENTURNS_OTPRIVATE_HXX
#define OPENTURNS_OTPRIVATE_HXX
/*
* This include defines the debug level in all source code.
*/
#include "openturns/OTdebug.h"
/*
* The OTtypes.hxx header file contains all type declarations used by
* the OpenTURNS platform.
*/
#include "openturns/OTtypes.hxx"
/*
* The OTmemory.hxx header file declares some debugging memory functions
*/
#include "openturns/OTmemory.hxx"
/*
* Assertions are needed to ensure invariant respect
*/
#include <cassert>
/*
* Some templates to ease C memory allocation
*/
#include "openturns/OTconfig.hxx"
#ifdef OPENTURNS_HAVE_STDLIB_H
#include <stdlib.h>
#endif
template <class T>
T * newC(size_t count = 1)
{
T * ptr = static_cast<T *>( calloc( count, sizeof(T) ) );
return ptr;
}
template <class T>
void deleteC(const T * ptr)
{
free( const_cast<T *>( ptr ) );
}
#endif /* OPENTURNS_OTPRIVATE_HXX */
|