Newer
Older
Gigg, Martyn Anthony
committed
//-----------------------------------------------------------------------------
// Includes
//-----------------------------------------------------------------------------
Gigg, Martyn Anthony
committed
#include "MantidKernel/MatrixProperty.h"
Gigg, Martyn Anthony
committed
#include "MantidKernel/IPropertyManager.h"
Gigg, Martyn Anthony
committed
namespace Mantid
{
Gigg, Martyn Anthony
committed
namespace Kernel
Gigg, Martyn Anthony
committed
{
/**
* 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,
IValidator_sptr validator, unsigned int direction)
Gigg, Martyn Anthony
committed
: PropertyWithValue<HeldType>(propName, HeldType(), validator, direction)
Gigg, Martyn Anthony
committed
{
}
/**
* Copy constructor
* @param rhs :: Contruct this object from rhs
*/
template<typename TYPE>
MatrixProperty<TYPE>::MatrixProperty(const MatrixProperty & rhs)
Gigg, Martyn Anthony
committed
: PropertyWithValue<HeldType>(rhs)
Gigg, Martyn Anthony
committed
{
}
/// Destructor
template<typename TYPE>
MatrixProperty<TYPE>::~MatrixProperty()
{
}
///@cond
// Symbol definitions
Gigg, Martyn Anthony
committed
template class MANTID_KERNEL_DLL MatrixProperty<double>;
template class MANTID_KERNEL_DLL MatrixProperty<int>;
template class MANTID_KERNEL_DLL MatrixProperty<float>;
Gigg, Martyn Anthony
committed
///@endcond
}
}
Gigg, Martyn Anthony
committed
Gigg, Martyn Anthony
committed
///@cond
Gigg, Martyn Anthony
committed
/**
Gigg, Martyn Anthony
committed
* IPropertyManager::getValue definitions
Gigg, Martyn Anthony
committed
*/
Gigg, Martyn Anthony
committed
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::DblMatrix);
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::IntMatrix);
DEFINE_IPROPERTYMANAGER_GETVALUE(Mantid::Kernel::Matrix<float>);