return std::string("UnstructuredGrid");
}
-std::size_t MEDCoupling1GTUMesh::getHeapMemorySize() const
+std::size_t MEDCoupling1GTUMesh::getHeapMemorySizeWithoutChildren() const
{
- return MEDCouplingPointSet::getHeapMemorySize();
+ return MEDCouplingPointSet::getHeapMemorySizeWithoutChildren();
}
bool MEDCoupling1GTUMesh::isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const throw(INTERP_KERNEL::Exception)
updateTimeWith(*c);
}
-std::size_t MEDCoupling1SGTUMesh::getHeapMemorySize() const
+std::size_t MEDCoupling1SGTUMesh::getHeapMemorySizeWithoutChildren() const
{
- std::size_t ret=0;
+ return MEDCoupling1GTUMesh::getHeapMemorySizeWithoutChildren();
+}
+
+std::vector<RefCountObject *> MEDCoupling1SGTUMesh::getDirectChildren() const
+{
+ std::vector<RefCountObject *> ret(MEDCoupling1GTUMesh::getDirectChildren());
const DataArrayInt *c(_conn);
if(c)
- ret+=c->getHeapMemorySize();
- return MEDCoupling1GTUMesh::getHeapMemorySize()+ret;
+ ret.push_back(const_cast<DataArrayInt *>(c));
+ return ret;
}
MEDCouplingMesh *MEDCoupling1SGTUMesh::deepCpy() const
updateTimeWith(*c);
}
-std::size_t MEDCoupling1DGTUMesh::getHeapMemorySize() const
+std::size_t MEDCoupling1DGTUMesh::getHeapMemorySizeWithoutChildren() const
{
- std::size_t ret=0;
+ return MEDCoupling1GTUMesh::getHeapMemorySizeWithoutChildren();
+}
+
+std::vector<RefCountObject *> MEDCoupling1DGTUMesh::getDirectChildren() const
+{
+ std::vector<RefCountObject *> ret(MEDCoupling1GTUMesh::getDirectChildren());
const DataArrayInt *c(_conn);
if(c)
- ret+=c->getHeapMemorySize();
+ ret.push_back(const_cast<DataArrayInt *>(c));
c=_conn_indx;
if(c)
- ret+=c->getHeapMemorySize();
- return MEDCoupling1GTUMesh::getHeapMemorySize()+ret;
+ ret.push_back(const_cast<DataArrayInt *>(c));
+ return ret;
}
MEDCouplingMesh *MEDCoupling1DGTUMesh::deepCpy() const