示例#1
0
 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);
 }
示例#3
0
 bool ParserDoubleItem::equal(const ParserItem& other) const
 {
     return (ParserItemEqual<ParserDoubleItem>(this , other) && equalDimensions(other));    }