Dodgy.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2009-2018 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014-2017 by Centre for Geoscience Computing (GeoComp)
* Development from 2019 by School of Earth and Environmental Sciences
**
*****************************************************************************/
#ifndef ES_DODGY_H
#define ES_DODGY_H
// This file contains functions which do bad things like violate the C standard
// Functions in here should not go into general use and should only be used on
// systems where the users are willing to accept responsibility for things working.
// Do not add functions here without explaining why they are problematic
namespace escript
{
// first param is output, next two are input data1 and2 the 3 ints are the size [in doubles]
// of the first three params in order
typedef int (*binOpFnPtr)(double*, const double*, const double*, int, int, int);
binOpFnPtr binOpFnPtrFromVoidPtr(void* v);
void* voidPtrFromBinOpFnPtr(binOpFnPtr f);
}
#endif
escript::binOpFnPtr
int(* binOpFnPtr)(double *, const double *, const double *, int, int, int)
Definition: Dodgy.h:45
escript::binOpFnPtrFromVoidPtr
binOpFnPtr binOpFnPtrFromVoidPtr(void *v)
Definition: Dodgy.cpp:37
Dodgy.h
escript
Definition: AbstractContinuousDomain.cpp:23
escript::voidPtrFromBinOpFnPtr
void * voidPtrFromBinOpFnPtr(binOpFnPtr f)
Definition: Dodgy.cpp:46