Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #10774. Added interface for POLDI 1d functions.
- Loading branch information
Michael Wedel
committed
Jan 7, 2015
1 parent
dde2451
commit 68994e0
Showing
6 changed files
with
97 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Code/Mantid/Framework/SINQ/inc/MantidSINQ/PoldiUtilities/IPoldiFunction1D.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef MANTID_SINQ_IPOLDIFUNCTION1D_H_ | ||
#define MANTID_SINQ_IPOLDIFUNCTION1D_H_ | ||
|
||
#include "MantidSINQ/DllConfig.h" | ||
#include "MantidAPI/FunctionDomain1D.h" | ||
#include "MantidAPI/FunctionValues.h" | ||
|
||
namespace Mantid { | ||
namespace Poldi { | ||
|
||
/** IPoldiFunction1D : | ||
This is an auxilliary interface that has to be implemented by | ||
functions that are supposed to be used for POLDI fits. | ||
@author Michael Wedel, Paul Scherrer Institut - SINQ | ||
@date 14/03/2014 | ||
Copyright © 2014 PSI-MSS | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid 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 General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class MANTID_SINQ_DLL IPoldiFunction1D { | ||
public: | ||
IPoldiFunction1D(); | ||
virtual ~IPoldiFunction1D() {} | ||
|
||
virtual void poldiFunction1D(const std::vector<int> &indices, | ||
const API::FunctionDomain1D &domain, | ||
API::FunctionValues &values) const = 0; | ||
}; | ||
|
||
} // namespace Poldi | ||
} // namespace Mantid | ||
|
||
#endif /* MANTID_SINQ_IPOLDIFUNCTION1D_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Code/Mantid/Framework/SINQ/src/PoldiUtilities/IPoldiFunction1D.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "MantidSINQ/PoldiUtilities/IPoldiFunction1D.h" | ||
|
||
namespace Mantid { | ||
namespace Poldi { | ||
|
||
//---------------------------------------------------------------------------------------------- | ||
/** Constructor | ||
*/ | ||
IPoldiFunction1D::IPoldiFunction1D() {} | ||
|
||
} // namespace SINQ | ||
} // namespace Mantid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters