/******************************************************************************
*       SOFA, Simulation Open-Framework Architecture, development version     *
*                (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH                    *
*                                                                             *
* This program is free software; you can redistribute it and/or modify it     *
* under the terms of the GNU Lesser General Public License as published by    *
* the Free Software Foundation; either version 2.1 of the License, or (at     *
* your option) any later version.                                             *
*                                                                             *
* This program 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 Lesser General Public License *
* for more details.                                                           *
*                                                                             *
* You should have received a copy of the GNU Lesser General Public License    *
* along with this program. If not, see <http://www.gnu.org/licenses/>.        *
*******************************************************************************
* Authors: The SOFA Team and external contributors (see Authors.txt)          *
*                                                                             *
* Contact information: contact@sofa-framework.org                             *
******************************************************************************/
#define SOFA_COMPONENT_ENGINE_VALUESFROMINDICES_CPP
#include <SofaGeneralEngine/ValuesFromIndices.inl>
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/Vec3Types.h>
#include <sofa/defaulttype/RigidTypes.h>

namespace sofa
{

namespace component
{

namespace engine
{

SOFA_DECL_CLASS(ValuesFromIndices)

int ValuesFromIndicesClass = core::RegisterObject("Find the values given a list of indices")
        .add< ValuesFromIndices<std::string> >()
        .add< ValuesFromIndices<int> >()
        .add< ValuesFromIndices<unsigned int> >()
        .add< ValuesFromIndices< helper::fixed_array<unsigned int, 2> > >()
        .add< ValuesFromIndices< helper::fixed_array<unsigned int, 3> > >()
        .add< ValuesFromIndices< helper::fixed_array<unsigned int, 4> > >()
        .add< ValuesFromIndices< helper::fixed_array<unsigned int, 8> > >()
#ifndef SOFA_FLOAT
        .add< ValuesFromIndices<double> >()
        .add< ValuesFromIndices<defaulttype::Vec2d> >()
        .add< ValuesFromIndices<defaulttype::Vec3d> >()
		.add< ValuesFromIndices<defaulttype::Vec4d> >()
		.add< ValuesFromIndices<defaulttype::Vec6d> >()
        .add< ValuesFromIndices<defaulttype::Rigid2dTypes::Coord> >()
        .add< ValuesFromIndices<defaulttype::Rigid2dTypes::Deriv> >()
        .add< ValuesFromIndices<defaulttype::Rigid3dTypes::Coord> >()
        .add< ValuesFromIndices<defaulttype::Rigid3dTypes::Deriv> >()
#endif //SOFA_FLOAT
#ifndef SOFA_DOUBLE
        .add< ValuesFromIndices<float> >()
        .add< ValuesFromIndices<defaulttype::Vec2f> >()
        .add< ValuesFromIndices<defaulttype::Vec3f> >()
		.add< ValuesFromIndices<defaulttype::Vec4f> >()
		.add< ValuesFromIndices<defaulttype::Vec6f> >()
        .add< ValuesFromIndices<defaulttype::Rigid2fTypes::Coord> >()
        .add< ValuesFromIndices<defaulttype::Rigid2fTypes::Deriv> >()
        .add< ValuesFromIndices<defaulttype::Rigid3fTypes::Coord> >()
        .add< ValuesFromIndices<defaulttype::Rigid3fTypes::Deriv> >()
#endif //SOFA_DOUBLE
        ;

template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<std::string>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<int>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<unsigned int>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices< helper::fixed_array<unsigned int, 2> >;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices< helper::fixed_array<unsigned int, 3> >;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices< helper::fixed_array<unsigned int, 4> >;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices< helper::fixed_array<unsigned int, 8> >;
#ifndef SOFA_FLOAT
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<double>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec2d>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec3d>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec4d>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec6d>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid2dTypes::Coord>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid2dTypes::Deriv>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid3dTypes::Coord>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid3dTypes::Deriv>;
#endif //SOFA_FLOAT
#ifndef SOFA_DOUBLE
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<float>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec2f>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec3f>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec4f>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Vec6f>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid2fTypes::Coord>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid2fTypes::Deriv>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid3fTypes::Coord>;
template class SOFA_GENERAL_ENGINE_API ValuesFromIndices<defaulttype::Rigid3fTypes::Deriv>;
#endif //SOFA_DOUBLE

} // namespace constraint

} // namespace component

} // namespace sofa

