Ptex: PtexLruList Class Reference

Ptex

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | List of all members
PtexLruList Class Reference

A list of items kept in least-recently-used (LRU) order. More...

`#include <PtexCache.h>`

## Public Member Functions
| PtexLruList ()
| ~PtexLruList ()
void | extract (PtexLruItem *node)
void | push (PtexLruItem *node)
bool | pop ()

## Private Attributes
PtexLruItem | _end

## Detailed Description

A list of items kept in least-recently-used (LRU) order.

Only items not in use are kept in the list.

Definition at line 152 of file PtexCache.h.

## Constructor & Destructor Documentation

PtexLruList::PtexLruList | ( |  | ) |
| inline

Definition at line 154 of file PtexCache.h.

PtexLruList::~PtexLruList | ( |  | ) |
| inline

Definition at line 155 of file PtexCache.h.

## Member Function Documentation

void PtexLruList::extract | ( | PtexLruItem * | node | ) |
| inline

Definition at line 157 of file PtexCache.h.

References PtexLruItem::_next, and PtexLruItem::_prev.

Referenced by PtexCacheImpl::setDataInUse(), and PtexCacheImpl::setFileInUse().

bool PtexLruList::pop | ( |  | ) |
| inline

Definition at line 178 of file PtexCache.h.

Referenced by PtexCacheImpl::~PtexCacheImpl().

void PtexLruList::push | ( | PtexLruItem * | node | ) |
| inline

Definition at line 165 of file PtexCache.h.

References PtexLruItem::_next, PtexLruItem::_parent, and PtexLruItem::_prev.

Referenced by PtexCacheImpl::setDataUnused(), and PtexCacheImpl::setFileUnused().

## Member Data Documentation

PtexLruItem PtexLruList::_end
| private

Definition at line 186 of file PtexCache.h.

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

- PtexCache.h