}
+/** Return a borrowed reference (caller is not responsible for object destruction) */
MEDFileFields *MEDFileData::getFields() const
{
return const_cast<MEDFileFields *>(static_cast<const MEDFileFields *>(_fields));
}
+/** Return a borrowed reference (caller is not responsible for object destruction) */
MEDFileMeshes *MEDFileData::getMeshes() const
{
return const_cast<MEDFileMeshes *>(static_cast<const MEDFileMeshes *>(_meshes));
}
+/** Return a borrowed reference (caller is not responsible for object destruction) */
MEDFileParameters *MEDFileData::getParams() const
{
return const_cast<MEDFileParameters *>(static_cast<const MEDFileParameters *>(_params));
return new MEDFileMeshesIterator(this);
}
+/** Return a borrowed reference (caller is not responsible) */
MEDFileMesh *MEDFileMeshes::getMeshAtPos(int i) const
{
if(i<0 || i>=(int)_meshes.size())
return _meshes[i]->getOneTimeStep();
}
+/** Return a borrowed reference (caller is not responsible) */
MEDFileMesh *MEDFileMeshes::getMeshWithName(const std::string& mname) const
{
std::vector<std::string> ms=getMeshesNames();