Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

LeafNode Class Reference

Encapsulates a web document on another machine. More...

#include <leafnode.h>

Inheritance diagram for LeafNode:

Inheritance graph
[legend]
Collaboration diagram for LeafNode:

Collaboration graph
[legend]
List of all members.

Public Methods

 LeafNode (uint32 idno)
uint32 ID ()
uint16 Date ()
void SetDate (uint16 adate)
void ClearOccupationCount ()
uint32 OccupationCount ()
void IncrementOccupationCount ()

Detailed Description

Encapsulates a web document on another machine.

When several machines process (disjoint subsets of) the repository, it is necessary to link the WebNode objects between the machines, so as to allow a WebSampler simulation to span multiple machines. A LeafNode is an alias for a WebNode stored on another machine, and linked to by a WebNode on the current machine. The data stored in a LeafNode is only sufficient to allow the corresponding WebNode to be found. The class inherits memory management from MemoryPooled<T>.

Definition at line 61 of file leafnode.h.


Constructor & Destructor Documentation

LeafNode::LeafNode uint32    idno
 

Definition at line 31 of file leafnode.cc.

References MemoryPooled< LeafNodeStruct >::data, LeafNodeStruct::date, LeafNodeStruct::id, LeafNodeStruct::occupation_count, and uint32.


Member Function Documentation

void LeafNode::ClearOccupationCount   [inline]
 

Definition at line 74 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, and LeafNodeStruct::occupation_count.

uint16 LeafNode::Date   [inline]
 

Definition at line 68 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, LeafNodeStruct::date, and uint16.

Referenced by GraphBuilder::AddLeaf(), and DateBiasedPageRankSampler::QEvolveFrom().

uint32 LeafNode::ID   [inline]
 

Definition at line 66 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, LeafNodeStruct::id, and uint32.

void LeafNode::IncrementOccupationCount   [inline]
 

Definition at line 80 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, and LeafNodeStruct::occupation_count.

Referenced by WebSampler::SimulateAllocForward().

uint32 LeafNode::OccupationCount   [inline]
 

Definition at line 78 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, LeafNodeStruct::occupation_count, and uint32.

void LeafNode::SetDate uint16    adate [inline]
 

Definition at line 71 of file leafnode.h.

References MemoryPooled< LeafNodeStruct >::data, LeafNodeStruct::date, and uint16.

Referenced by Talker::LoadLeaves().


Generated on Wed May 29 11:37:25 2002 for MarkovPR by doxygen1.2.15