Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

bool DataPool::simple_compare ( DataPool pool  )  const [inline]

Useful in comparing data pools. Returns true if dirived from same URL or bytestream.

Definition at line 607 of file DataPool.h.

References data, furl, GURL::is_empty(), and GURL::is_valid().

  // return true if these pools are identical.  False means they may or may
  // not be identical.
  return (this == &pool)
    ||(furl.is_valid()&&!furl.is_empty()&&pool.furl.is_valid()&&(furl == pool.furl))
    ||(data && (data == pool.data));

Generated by  Doxygen 1.6.0   Back to index