escript  Revision_
Dodgy.h
Go to the documentation of this file.
1 
2 /*****************************************************************************
3 *
4 * Copyright (c) 2009-2016 by The University of Queensland
5 * http://www.uq.edu.au
6 *
7 * Primary Business: Queensland, Australia
8 * Licensed under the Apache License, version 2.0
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 * Development 2012-2013 by School of Earth Sciences
13 * Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 *
15 *****************************************************************************/
16 
17 #ifndef ES_DODGY_H
18 #define ES_DODGY_H
19 
20 // This file contains functions which do bad things like violate the C standard
21 // Functions in here should not go into general use and should only be used on
22 // systems where the users are willing to accept responsibility for things working.
23 
24 // Do not add functions here without explaining why they are problematic
25 
26 namespace escript
27 {
28 // first param is output, next two are input data1 and2 the 3 ints are the size [in doubles]
29 // of the first three params in order
30 typedef int (*binOpFnPtr)(double*, const double*, const double*, int, int, int);
31 
41 
46 
47 }
48 
49 #endif
Definition: AbstractContinuousDomain.cpp:22
int(* binOpFnPtr)(double *, const double *, const double *, int, int, int)
Definition: Dodgy.h:30
binOpFnPtr binOpFnPtrFromVoidPtr(void *v)
Definition: Dodgy.cpp:22
void * voidPtrFromBinOpFnPtr(binOpFnPtr f)
Definition: Dodgy.cpp:31