Put this function first so we can reference the code in doxygen using @skip ! @brief Check whether BlobNode class invariant is true @copydetails IntegerNode::checkInvariant() */
| 40 | @copydetails IntegerNode::checkInvariant() |
| 41 | */ |
| 42 | void BlobNode::checkInvariant( bool /*doRecurse*/, bool doUpcast ) const |
| 43 | { |
| 44 | // If destImageFile not open, can't test invariant (almost every call would throw) |
| 45 | if ( !destImageFile().isOpen() ) |
| 46 | { |
| 47 | return; |
| 48 | } |
| 49 | |
| 50 | // If requested, call Node::checkInvariant |
| 51 | if ( doUpcast ) |
| 52 | { |
| 53 | static_cast<Node>( *this ).checkInvariant( false, false ); |
| 54 | } |
| 55 | |
| 56 | if ( byteCount() < 0 ) |
| 57 | { |
| 58 | throw E57_EXCEPTION1( ErrorInvarianceViolation ); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /*! |
| 63 | @class e57::BlobNode |