Newer
Older
Gigg, Martyn Anthony
committed
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
#include "MantidAPI/MatrixProperty.h"
Gigg, Martyn Anthony
committed
#include "MantidKernel/IPropertyManager.h"
Gigg, Martyn Anthony
committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
namespace Mantid
{
namespace API
{
/**
* Constructor
* @param propName :: Name of the property
* @param validator :: A pointer to a validator whose ownership is
* transferred to this object
* @param direction :: The direction
*/
template<typename TYPE>
MatrixProperty<TYPE>::MatrixProperty(const std::string & propName,
Kernel::IValidator<HeldType> *validator, unsigned int direction)
: Kernel::PropertyWithValue<HeldType>(propName, HeldType(), validator, direction)
{
}
/**
* Copy constructor
* @param rhs :: Contruct this object from rhs
*/
template<typename TYPE>
MatrixProperty<TYPE>::MatrixProperty(const MatrixProperty & rhs)
: Kernel::PropertyWithValue<HeldType>(rhs)
{
}
/// Destructor
template<typename TYPE>
MatrixProperty<TYPE>::~MatrixProperty()
{
}
///@cond
// Symbol definitions
template class MANTID_API_DLL MatrixProperty<double>;
template class MANTID_API_DLL MatrixProperty<int>;
template class MANTID_API_DLL MatrixProperty<float>;
///@endcond
}
}
Gigg, Martyn Anthony
committed
/**
* IPropertyManager::getValue definitions so that algorithm.getProperty will work
*/
///@cond
Gigg, Martyn Anthony
committed
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::DblMatrix);
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::IntMatrix);
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::Matrix<float>);