+int MEDFileStructureElements::getNumberOf() const
+{
+ return (int)_elems.size();
+}
+
+std::vector<int> MEDFileStructureElements::getDynGTAvail() const
+{
+ std::vector<int> ret;
+ for(std::vector< MCAuto<MEDFileStructureElement> >::const_iterator it=_elems.begin();it!=_elems.end();it++)
+ {
+ const MEDFileStructureElement *elt(*it);
+ if(elt)
+ ret.push_back(elt->getDynGT());
+ }
+ return ret;
+}
+
+const MEDFileStructureElement *MEDFileStructureElements::getWithGT(int idGT) const
+{
+ for(std::vector< MCAuto<MEDFileStructureElement> >::const_iterator it=_elems.begin();it!=_elems.end();it++)
+ if((*it).isNotNull())
+ {
+ if((*it)->getDynGT()==idGT)
+ return *it;
+ }
+ std::ostringstream oss; oss << "MEDFileStructureElements::getWithGT : no such geo type " << idGT << " !";
+ throw INTERP_KERNEL::Exception(oss.str());
+}
+
+mcIdType MEDFileStructureElements::getNumberOfNodesPerSE(const std::string& seName) const
+{
+ if(seName=="MED_PARTICLE")
+ return 1;
+ const MEDFileStructureElement *se(getSEWithName(seName));
+ std::string meshName(se->getMeshName());
+ return _sup->getNumberOfNodesInConnOf(se->getEntity(),se->getGeoType(),meshName);
+}
+
+const MEDFileStructureElement *MEDFileStructureElements::getSEWithName(const std::string& seName) const
+{
+ for(std::vector< MCAuto<MEDFileStructureElement> >::const_iterator it=_elems.begin();it!=_elems.end();it++)
+ {
+ if((*it).isNotNull())
+ if((*it)->getName()==seName)
+ return *it;
+ }
+ std::ostringstream oss; oss << "MEDFileStructureElements::getSEWithName : no such structure element with name " << seName << " !";
+ throw INTERP_KERNEL::Exception(oss.str());
+}
+
+std::vector<std::string> MEDFileStructureElements::getVarAttsOf(const std::string& seName) const
+{
+ const MEDFileStructureElement *se(getSEWithName(seName));
+ return se->getVarAtts();
+}
+
+const MEDFileSEVarAtt *MEDFileStructureElements::getVarAttOf(const std::string &seName, const std::string& varName) const
+{
+ const MEDFileStructureElement *se(getSEWithName(seName));
+ return se->getVarAtt(varName);
+}
+
+const MEDFileUMesh *MEDFileStructureElements::getSupMeshWithName(const std::string& name) const
+{
+ return _sup->getSupMeshWithName(name);
+}