GenGeo  1.1
nfunction.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2007-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 // function of nvector
14 #ifndef __NFUNCTION_H
15 #define __NFUNCTION_H
16 
17 #include "nvector.h"
18 
19 template<class T,int n>
20 class nfunction
21 {
22  public:
23  virtual T operator()(const nvector<T,n>&) const=0;
24  virtual ~nfunction(){};
25 };
26 
27 #endif //__NFUNCTION_H