CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ChunkDetector Class Referenceabstract

#include <chunk_detector.h>

Inheritance diagram for ChunkDetector:

Public Member Functions

 ChunkDetector ()
 
virtual ~ChunkDetector ()
 
uint64_t FindNextCutMark (BlockItem *block)
 
virtual bool MightFindChunks (uint64_t size) const =0
 

Protected Member Functions

virtual uint64_t DoFindNextCutMark (BlockItem *block)=0
 
virtual uint64_t DoCut (uint64_t offset)
 
virtual uint64_t NoCut (uint64_t)
 
uint64_t last_cut () const
 
uint64_t offset () const
 

Private Attributes

uint64_t last_cut_
 
uint64_t offset_
 

Detailed Description

Abstract base class for a cutmark detector. This decides on which file positions a File should be chunked.

Definition at line 21 of file chunk_detector.h.

Constructor & Destructor Documentation

ChunkDetector::ChunkDetector ( )
inline

Definition at line 23 of file chunk_detector.h.

virtual ChunkDetector::~ChunkDetector ( )
inlinevirtual

Definition at line 24 of file chunk_detector.h.

Member Function Documentation

virtual uint64_t ChunkDetector::DoCut ( uint64_t  offset)
inlineprotectedvirtual

When returning from an implemented FindNextCutMark call you must call this function when a cut mark has been found. Like: return DoCut(found_offset)

Reimplemented in Xor32Detector.

Definition at line 37 of file chunk_detector.h.

Referenced by Xor32Detector::DoCut(), and StaticOffsetDetector::DoFindNextCutMark().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual uint64_t ChunkDetector::DoFindNextCutMark ( BlockItem block)
protectedpure virtual

Implemented in Xor32Detector, and StaticOffsetDetector.

Referenced by FindNextCutMark().

Here is the caller graph for this function:

uint64_t ChunkDetector::FindNextCutMark ( BlockItem block)

This file is part of the CernVM File System.

Definition at line 15 of file chunk_detector.cc.

Referenced by TaskChunk::Process().

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t ChunkDetector::last_cut ( ) const
inlineprotected

Definition at line 48 of file chunk_detector.h.

Referenced by StaticOffsetDetector::DoFindNextCutMark(), and Xor32Detector::DoFindNextCutMark().

Here is the caller graph for this function:

virtual bool ChunkDetector::MightFindChunks ( uint64_t  size) const
pure virtual

Implemented in Xor32Detector, and StaticOffsetDetector.

virtual uint64_t ChunkDetector::NoCut ( uint64_t  )
inlineprotectedvirtual

Same as DoCut() but if no cut mark has been found in the given buffer in FindNextCutMark()

Reimplemented in Xor32Detector.

Definition at line 46 of file chunk_detector.h.

Referenced by StaticOffsetDetector::DoFindNextCutMark(), and Xor32Detector::NoCut().

Here is the caller graph for this function:

uint64_t ChunkDetector::offset ( ) const
inlineprotected

Definition at line 49 of file chunk_detector.h.

Referenced by DoCut(), Xor32Detector::DoCut(), StaticOffsetDetector::DoFindNextCutMark(), Xor32Detector::DoFindNextCutMark(), and Xor32Detector::NoCut().

Here is the caller graph for this function:

Member Data Documentation

uint64_t ChunkDetector::last_cut_
private

Definition at line 52 of file chunk_detector.h.

Referenced by DoCut(), and last_cut().

uint64_t ChunkDetector::offset_
private

Definition at line 53 of file chunk_detector.h.

Referenced by FindNextCutMark(), and offset().


The documentation for this class was generated from the following files: