SimpleLru

Inheritance:

Methods of SimpleLru:

Methods of Namable:

beginEpoch
void SimpleLru::begin_epoch(void);

Description: Marks the end of the previous epoch and the beginning of the next one. This will evict any objects that are pending eviction, and also update any internal bookkeeping.

considerEvict
void SimpleLru::consider_evict(void);

Description: Evicts a sequence of objects if the queue is full.

countActiveSize
unsigned int SimpleLru::count_active_size(void) const;

Description: Returns the total size of the pages that were enqueued since the last call to begin_epoch().

getMaxSize
unsigned int SimpleLru::get_max_size(void) const;

Description: Returns the max size of all objects that are allowed to be active on the LRU.

getTotalSize
unsigned int SimpleLru::get_total_size(void) const;

Filename: simpleLru.I Created by: drose (11May07)
PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ .
To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net .
Description: Returns the total size of all objects currently active on the LRU.

setMaxSize
void SimpleLru::set_max_size(unsigned int max_size);

Description: Changes the max size of all objects that are allowed to be active on the LRU.
If the size is (size_t)-1, there is no limit.

clearName
void Namable::clear_name(void);

Description: Resets the Namable's name to empty.

getClassType
static TypeHandle Namable::get_class_type(void);

Undocumented function.

getName
string const &Namable::get_name(void) const;

Description:

hasName
bool Namable::has_name(void) const;

Description: Returns true if the Namable has a nonempty name set, false if the name is empty.

operator =
Namable &Namable::operator =(Namable const &other);

Description:

output
void Namable::output(ostream &out) const;

In the absence of any definition to the contrary, outputting a Namable will write out its name.
Description: Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

setName
void Namable::set_name(string const &name);

Description: