return new DataArrayFloat(*this);
}
-void DataArrayFloat::reprStream(std::ostream& stream) const
-{
- stream << "Name of float array : \"" << _name << "\"\n";
- reprWithoutNameStream(stream);
-}
-
-void DataArrayFloat::reprZipStream(std::ostream& stream) const
-{
- stream << "Name of float array : \"" << _name << "\"\n";
- reprZipWithoutNameStream(stream);
-}
-
-void DataArrayFloat::reprZipWithoutNameStream(std::ostream& stream) const
-{
- DataArray::reprWithoutNameStream(stream);
- stream.precision(7);
- _mem.repr(getNumberOfComponents(),stream);
-}
-
void DataArrayFloat::reprCppStream(const std::string& varName, std::ostream& stream) const
{
int nbTuples(getNumberOfTuples()),nbComp(getNumberOfComponents());
stream << "]";
}
-std::string DataArrayFloat::reprNotTooLong() const
-{
- std::ostringstream ret;
- reprNotTooLongStream(ret);
- return ret.str();
-}
-
-void DataArrayFloat::reprNotTooLongStream(std::ostream& stream) const
-{
- stream << "Name of float array : \"" << _name << "\"\n";
- reprNotTooLongWithoutNameStream(stream);
-}
-
-void DataArrayFloat::reprNotTooLongWithoutNameStream(std::ostream& stream) const
-{
- DataArray::reprWithoutNameStream(stream);
- stream.precision(7);
- _mem.reprNotTooLong(getNumberOfComponents(),stream);
-}
-
bool DataArrayFloat::isEqualIfNotWhy(const DataArrayFloat& other, float prec, std::string& reason) const
{
if(!areInfoEqualsIfNotWhy(other,reason))
return _mem.isEqual(other._mem,prec,tmp);
}
-/*!
- * Returns either a \a deep or \a shallow copy of this array. For more info see
- * \ref MEDCouplingArrayBasicsCopyDeep and \ref MEDCouplingArrayBasicsCopyShallow.
- * \param [in] dCpy - if \a true, a deep copy is returned, else, a shallow one.
- * \return DataArrayDouble * - either a new instance of DataArrayDouble (if \a dCpy
- * == \a true) or \a this instance (if \a dCpy == \a false).
- */
-DataArrayFloat *DataArrayFloat::performCopyOrIncrRef(bool dCpy) const
-{
- return DataArrayTemplateClassic<float>::PerformCopyOrIncrRef(dCpy,*this);
-}
-
DataArrayFloatIterator *DataArrayFloat::iterator()
{
return new DataArrayFloatIterator(this);