The Pedigree Project 0.1
Public Member Functions | Public Attributes | List of all members
RamFile::ShrinkPlan Class Reference
+ Inheritance diagram for RamFile::ShrinkPlan:
+ Collaboration diagram for RamFile::ShrinkPlan:

Public Member Functions

 ShrinkPlan (RamFile &file, size_t size)
 
void commit () override
 

Public Attributes

RamFile & file
 
size_t size
 
size_t boundary
 
uintptr_t tail
 
UniquePointer< Cache::PreparedDiscard > discarded
 

Detailed Description

Definition at line 203 of file RamFs.cc.

Constructor & Destructor Documentation

◆ ShrinkPlan()

RamFile::ShrinkPlan::ShrinkPlan ( RamFile &  file,
size_t  size 
)
inline

Definition at line 205 of file RamFs.cc.

◆ ~ShrinkPlan()

RamFile::ShrinkPlan::~ShrinkPlan ( )
inlineoverride

Definition at line 207 of file RamFs.cc.

Member Function Documentation

◆ commit()

void RamFile::ShrinkPlan::commit ( )
inlineoverridevirtual

Preparation owns every recoverable failure; commit only publishes it.

Implements File::PreparedShrink.

Definition at line 211 of file RamFs.cc.

References Vector< T >::count(), File::getBlockSize(), and Vector< T >::popBack().

Member Data Documentation

◆ boundary

size_t RamFile::ShrinkPlan::boundary

Definition at line 230 of file RamFs.cc.

◆ discarded

UniquePointer<Cache::PreparedDiscard> RamFile::ShrinkPlan::discarded

Definition at line 232 of file RamFs.cc.

◆ file

RamFile& RamFile::ShrinkPlan::file

Definition at line 228 of file RamFs.cc.

◆ size

size_t RamFile::ShrinkPlan::size

Definition at line 229 of file RamFs.cc.

◆ tail

uintptr_t RamFile::ShrinkPlan::tail

Definition at line 231 of file RamFs.cc.


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