correspondence->incrRef();
}
+void MEDFileJointOneStep::clearCorrespondences()
+{
+ _correspondences.clear();
+}
+
int MEDFileJointOneStep::getNumberOfCorrespondences() const
{
return (int)_correspondences.size();
MEDLOADER_EXPORT void setIteration(int it) { _iteration=it; }
MEDLOADER_EXPORT int getIteration() const { return _iteration; }
MEDLOADER_EXPORT void pushCorrespondence(MEDFileJointCorrespondence* correspondence);
+ MEDLOADER_EXPORT void clearCorrespondences();
MEDLOADER_EXPORT int getNumberOfCorrespondences() const;
MEDLOADER_EXPORT MEDFileJointCorrespondence *getCorrespondenceAtPos(int i) const;
void setIteration(int it);
int getIteration() const;
void pushCorrespondence(MEDFileJointCorrespondence* correspondence);
+ void clearCorrespondences();
int getNumberOfCorrespondences() const;
void write(const std::string& fileName, int mode, const std::string& localMeshName, const std::string& jointName) const;
std::string simpleRepr() const;
self.assertFalse( joint1st_1.isEqual( joint1st_4 ))
self.assertFalse( joint1st_4.isEqual( joint1st_5 ))
self.assertFalse( joint1st_4.isEqual( joint1st_6 ))
+ self.assertEqual(1,joint1st_6.getNumberOfCorrespondences())
+ joint1st_6.clearCorrespondences()
+ self.assertEqual(0,joint1st_6.getNumberOfCorrespondences())
one_joint=MEDFileJoint()
one_joint.pushStep(joint1st_1)
one_joint.setLocalMeshName("maa1")