}
MEDCouplingFieldDouble *MEDCouplingFieldDouble::keepSelectedComponents(const std::vector<mcIdType>& compoIds) const
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove (compoIds, ids);
return keepSelectedComponents(ids);
}
}
void MEDCouplingFieldDouble::setSelectedComponents(const MEDCouplingFieldDouble *f, const std::vector<mcIdType>& compoIds)
{
+ // The method has to be removed as duplicate after SWIG update
timeDiscr()->setSelectedComponents(f->timeDiscr(),compoIds);
}
void DataArray::copyPartOfStringInfoFrom(const DataArray& other, const std::vector<mcIdType>& compoIds)
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove(compoIds, ids);
copyPartOfStringInfoFrom(other, ids);
}
void DataArray::copyPartOfStringInfoFrom2(const std::vector<mcIdType>& compoIds, const DataArray& other)
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove (compoIds, ids);
copyPartOfStringInfoFrom2(ids, other);
}
}
void DataArrayDouble::setSelectedComponents(const DataArrayDouble *a, const std::vector<mcIdType>& compoIds)
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove(compoIds, ids);
setSelectedComponents (a, ids);
}
/*!
template<class T>
typename Traits<T>::ArrayType *DataArrayTemplate<T>::myKeepSelectedComponents(const std::vector<mcIdType>& compoIds) const
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove(compoIds, ids);
return myKeepSelectedComponents (ids);
}
/*!
template <class T>
void DataArrayDiscrete<T>::setSelectedComponents(const DataArrayType *a, const std::vector<mcIdType>& compoIds)
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove(compoIds, ids);
setSelectedComponents (a, ids);
}
}
MEDCouplingTimeDiscretization *MEDCouplingTimeDiscretization::keepSelectedComponents(const std::vector<mcIdType>& compoIds) const
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove(compoIds, ids);
return keepSelectedComponents(ids);
}
}
void MEDCouplingTimeDiscretization::setSelectedComponents(const MEDCouplingTimeDiscretization *other, const std::vector<mcIdType>& compoIds)
{
+ // The method has to be removed as duplicate after SWIG update
std::vector<std::size_t> ids (compoIds.size());
- std::copy(compoIds.begin(), compoIds.end(), ids.begin());
+ cast_to_remove (compoIds, ids);
setSelectedComponents (other, ids);
}
#include "MEDCoupling.hxx"
#include "MCType.hxx"
+#include <vector>
namespace MEDCoupling
{
+ inline void cast_to_remove (const std::vector<mcIdType>& in, std::vector<std::size_t>& out)
+ {
+ out.resize (in.size());
+ std::copy (in.begin(), in.end(), out.begin());
+ }
+
template<class T>
struct MEDCOUPLING_EXPORT Traits
{