bool ParserFloatItem::equal(const ParserItem& other) const { // cast to a pointer to avoid bad_cast exception const ParserFloatItem* rhs = dynamic_cast<const ParserFloatItem*>(&other); if (rhs && ParserItem::equal(other) && (getDefault() == rhs->getDefault())) { return equalDimensions( other ); } else return false; }
bool ParserDoubleItem::equal(const ParserItem& other) const { return parserRawItemEqual<ParserDoubleItem>(other) && equalDimensions(other); }
bool ParserDoubleItem::equal(const ParserItem& other) const { return (ParserItemEqual<ParserDoubleItem>(this , other) && equalDimensions(other)); }