CustomResultFunction.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2012, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 #include "CeeCore/RefCountedObject.h"
17 
18 #include <vector>
19 
20 namespace cee {
21 namespace ug {
22 
23 //==================================================================================================
24 //
25 //
26 //
27 //==================================================================================================
28 class CEE_UG_EXPORT CustomResultFunction : public RefCountedObject
29 {
30 public:
32  virtual ~CustomResultFunction();
33 
34  void setInputDimensions(const std::vector<size_t>& inputDimensions);
35  void setOutputDimension(size_t outputDimension);
36 
37  size_t inputCount() const;
38  size_t inputDimension(size_t argumentIndex) const;
39  size_t outputDimension() const;
40 
41  virtual bool computeItem(const std::vector<const double*>& inputValues, double* outputValues);
42 
43 private:
44  CEE_PRIVATE_IMPL(CustomResultFunction);
45 };
46 
47 
48 
49 } // namespace ug
50 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
A CustomResultFunction produces the output values of a custom result on a given item.
Definition: CustomResultFunction.h:28