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

RamFilefile
 
size_t size
 
size_t boundary
 
uintptr_t tail
 
UniquePointer< Cache::PreparedDiscarddiscarded
 

Detailed Description

Definition at line 178 of file RamFs.cc.

Constructor & Destructor Documentation

◆ ShrinkPlan()

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

Definition at line 180 of file RamFs.cc.

◆ ~ShrinkPlan()

RamFile::ShrinkPlan::~ShrinkPlan ( )
inlineoverride

Definition at line 182 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 186 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 205 of file RamFs.cc.

◆ discarded

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

Definition at line 207 of file RamFs.cc.

◆ file

RamFile& RamFile::ShrinkPlan::file

Definition at line 203 of file RamFs.cc.

◆ size

size_t RamFile::ShrinkPlan::size

Definition at line 204 of file RamFs.cc.

◆ tail

uintptr_t RamFile::ShrinkPlan::tail

Definition at line 206 of file RamFs.cc.


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