jigdo API
JigdoDesc::MatchedFile Class Reference
Info about data that *was* matched by an input file. More...
#include <mkimage.hh>

Public Member Functions | |
MatchedFile (uint64 o, uint64 s, const RsyncSum64 &r, const MD5 &m) | |
MatchedFile (uint64 o, uint64 s, const RsyncSum64 &r, const MD5Sum &m) | |
bool | operator== (const JigdoDesc &x) const |
Type | type () const |
Entry type of JigdoDesc child class. | |
uint64 | offset () const |
uint64 | size () const |
Size of image area or whole image. | |
const MD5 & | md5 () const |
const RsyncSum64 & | rsync () const |
virtual ostream & | put (ostream &s) const |
Output human-readable summary. | |
template<class Iterator> | |
Iterator | serialize (Iterator i) const |
size_t | serialSizeOf () const |
There are no virtual templates, so this wouldn't work: template<class Iterator> virtual Iterator serialize(Iterator i) const; . |
Detailed Description
Info about data that *was* matched by an input file.Constructor & Destructor Documentation
JigdoDesc::MatchedFile::MatchedFile | ( | uint64 | o, | |
uint64 | s, | |||
const RsyncSum64 & | r, | |||
const MD5 & | m | |||
) | [inline] |
JigdoDesc::MatchedFile::MatchedFile | ( | uint64 | o, | |
uint64 | s, | |||
const RsyncSum64 & | r, | |||
const MD5Sum & | m | |||
) | [inline] |
Member Function Documentation
bool JigdoDesc::MatchedFile::operator== | ( | const JigdoDesc & | x | ) | const [inline, virtual] |
Type JigdoDesc::MatchedFile::type | ( | ) | const [inline, virtual] |
Entry type of JigdoDesc child class.
Implements JigdoDesc.
Reimplemented in JigdoDesc::WrittenFile.
References JigdoDesc::MATCHED_FILE.
Referenced by JigdoDesc::listMissing().
uint64 JigdoDesc::MatchedFile::offset | ( | ) | const [inline] |
Referenced by JigdoDesc::WrittenFile::operator==(), operator==(), JigdoDesc::WrittenFile::put(), and put().
uint64 JigdoDesc::MatchedFile::size | ( | ) | const [inline, virtual] |
Size of image area or whole image.
Implements JigdoDesc.
Referenced by JigdoDesc::makeImage(), JigdoDesc::WrittenFile::operator==(), operator==(), JigdoDesc::WrittenFile::put(), put(), JigdoDesc::WrittenFile::serialize(), and serialize().
const MD5& JigdoDesc::MatchedFile::md5 | ( | ) | const [inline] |
const RsyncSum64& JigdoDesc::MatchedFile::rsync | ( | ) | const [inline] |
Referenced by fileToImage(), JigdoDesc::WrittenFile::put(), put(), JigdoDesc::WrittenFile::serialize(), and serialize().
ostream & JigdoDesc::MatchedFile::put | ( | ostream & | s | ) | const [virtual] |
Output human-readable summary.
Implements JigdoDesc.
Reimplemented in JigdoDesc::WrittenFile.
References md5(), offset(), rsync(), size(), and SIZE_WIDTH.
Iterator JigdoDesc::MatchedFile::serialize | ( | Iterator | i | ) | const [inline] |
Reimplemented in JigdoDesc::WrittenFile.
References JigdoDesc::MATCHED_FILE, md5(), rsync(), serialize1(), serialize6(), and size().
Referenced by JigdoDescVec::put().
size_t JigdoDesc::MatchedFile::serialSizeOf | ( | ) | const [inline, virtual] |
There are no virtual templates, so this wouldn't work: template<class Iterator> virtual Iterator serialize(Iterator i) const;
.
Implements JigdoDesc.
Reimplemented in JigdoDesc::WrittenFile.
The documentation for this class was generated from the following files:
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
