The Pedigree Project 0.1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
MemoryExtendedAttributes::Quota Class Reference
+ Collaboration diagram for MemoryExtendedAttributes::Quota:

Public Member Functions

 Quota (size_t limit=MaximumTotalBytes)
 
size_t used () const
 

Private Member Functions

 NOT_COPYABLE_OR_ASSIGNABLE (Quota)
 
bool increase (size_t amount)
 
void decrease (size_t amount)
 

Private Attributes

const size_t m_Limit
 
size_t m_Used = 0
 

Friends

class MemoryExtendedAttributes
 

Detailed Description

Definition at line 17 of file MemoryExtendedAttributes.h.

Constructor & Destructor Documentation

◆ Quota()

MemoryExtendedAttributes::Quota::Quota ( size_t  limit = MaximumTotalBytes)
inlineexplicit

Definition at line 19 of file MemoryExtendedAttributes.h.

Member Function Documentation

◆ decrease()

void MemoryExtendedAttributes::Quota::decrease ( size_t  amount)
private

Definition at line 76 of file MemoryExtendedAttributes.cc.

◆ increase()

bool MemoryExtendedAttributes::Quota::increase ( size_t  amount)
private

Definition at line 66 of file MemoryExtendedAttributes.cc.

◆ used()

size_t MemoryExtendedAttributes::Quota::used ( ) const

Definition at line 62 of file MemoryExtendedAttributes.cc.

Friends And Related Symbol Documentation

◆ MemoryExtendedAttributes

friend class MemoryExtendedAttributes
friend

Definition at line 23 of file MemoryExtendedAttributes.h.

Member Data Documentation

◆ m_Limit

const size_t MemoryExtendedAttributes::Quota::m_Limit
private

Definition at line 27 of file MemoryExtendedAttributes.h.

◆ m_Used

size_t MemoryExtendedAttributes::Quota::m_Used = 0
private

Definition at line 28 of file MemoryExtendedAttributes.h.


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