1 2 3 4 5 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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* *
* This library 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 library 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 library; if not, write to the Free Software Foundation, *
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
*******************************************************************************
* SOFA :: Modules *
* *
* Authors: The SOFA Team and external contributors (see Authors.txt) *
* *
* Contact information: contact@sofa-framework.org *
******************************************************************************/
#include <sofa/core/ObjectFactory.h>
#include <sofa/defaulttype/LaparoscopicRigidTypes.h>
#include <sofa/defaulttype/RigidTypes.h>
#include <sofa/defaulttype/VecTypes.h>
#include <sofa/component/container/MappedObject.inl>
namespace sofa
{
namespace component
{
using namespace core::componentmodel::behavior;
using namespace defaulttype;
SOFA_DECL_CLASS(MappedObject)
int MappedObjectClass = core::RegisterObject("Mapped state vectors")
#ifndef SOFA_FLOAT
.add< MappedObject<Vec2dTypes> >()
.add< MappedObject<Vec1dTypes> >()
.add< MappedObject<Vec6dTypes> >()
.add< MappedObject<Rigid3dTypes> >()
.add< MappedObject<Rigid2dTypes> >()
#endif
#ifndef SOFA_DOUBLE
.add< MappedObject<Vec2fTypes> >()
.add< MappedObject<Vec1fTypes> >()
.add< MappedObject<Vec6fTypes> >()
.add< MappedObject<Rigid3fTypes> >()
.add< MappedObject<Rigid2fTypes> >()
#endif
#ifdef SOFA_FLOAT
.add< MappedObject<Vec3fTypes> >(true) // default template
#else
#ifndef SOFA_DOUBLE
.add< MappedObject<Vec3fTypes> >() // default template
#endif
.add< MappedObject<Vec3dTypes> >(true) // default template
#endif
.add< MappedObject<LaparoscopicRigid3Types> >()
;
// template specialization must be in the same namespace as original namespace for GCC 4.1
// g++ 4.1 requires template instantiations to be declared on a parent namespace from the template class.
#ifndef SOFA_FLOAT
template class MappedObject<Vec3dTypes>;
template class MappedObject<Vec2dTypes>;
template class MappedObject<Vec1dTypes>;
template class MappedObject<Vec6dTypes>;
template class MappedObject<Rigid3dTypes>;
template class MappedObject<Rigid2dTypes>;
#endif
#ifndef SOFA_DOUBLE
template class MappedObject<Vec3fTypes>;
template class MappedObject<Vec2fTypes>;
template class MappedObject<Vec1fTypes>;
template class MappedObject<Vec6fTypes>;
template class MappedObject<Rigid3fTypes>;
template class MappedObject<Rigid2fTypes>;
#endif
template class MappedObject<LaparoscopicRigid3Types>;
} // namespace component
} // namespace sofa
|