Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ServerPage Class Reference

#include <pagepool.h>

Inheritance diagram for ServerPage:

Inheritance graph
[legend]
Collaboration diagram for ServerPage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ServerPage (int size, int id)
virtual ~ServerPage ()
virtual WebPageType type () const
int & size ()
int & mtime (int n)
int & num_mtime ()
void set_mtime (int *mt, int n)
int size () const
int & id ()

Protected Attributes

int * mtime_
int num_mtime_
int size_
int id_

Constructor & Destructor Documentation

ServerPage::ServerPage int  size,
int  id
[inline]
 

Definition at line 48 of file pagepool.h.

References Page::id(), Page::id_, mtime_, and num_mtime_.

00048                                      : Page(size) {
00049                 id_ = id, mtime_ = NULL, num_mtime_ = 0;
00050         }

Here is the call graph for this function:

virtual ServerPage::~ServerPage  )  [inline, virtual]
 

Definition at line 51 of file pagepool.h.

References mtime_.

00051                               {
00052                 if (mtime_ != NULL) 
00053                         delete []mtime_;
00054         }


Member Function Documentation

int& Page::id  )  [inline, inherited]
 

Definition at line 38 of file pagepool.h.

References Page::id_.

Referenced by TracePagePool::add_page(), ClientPage::name(), and ServerPage().

00038 { return id_; }

int& ServerPage::mtime int  n  )  [inline]
 

Definition at line 59 of file pagepool.h.

References mtime_.

Referenced by TracePagePool::change_time(), and TracePagePool::command().

00059 { return mtime_[n]; }

int& ServerPage::num_mtime  )  [inline]
 

Definition at line 60 of file pagepool.h.

References num_mtime_.

Referenced by TracePagePool::change_time(), TracePagePool::command(), and TracePagePool::load_page().

00060 { return num_mtime_; }

void ServerPage::set_mtime int *  mt,
int  n
 

Definition at line 45 of file pagepool.cc.

References mtime_.

Referenced by TracePagePool::load_page().

00046 {
00047         if (mtime_ != NULL) 
00048                 delete []mtime_;
00049         mtime_ = new int[n];
00050         memcpy(mtime_, mt, sizeof(int)*n);
00051 }

int Page::size  )  const [inline, inherited]
 

Definition at line 37 of file pagepool.h.

References Page::size_.

Referenced by HttpUpdateData::add(), HttpUpdateData::PageRec::copy(), MClientPagePool::fill_page(), MClientPagePool::force_remove(), ClientPagePool::get_size(), Page::Page(), ClientPage::print_info(), and MClientPagePool::remove_page().

00037 { return size_; }

int& ServerPage::size  )  [inline]
 

Definition at line 58 of file pagepool.h.

References Page::size_.

Referenced by TracePagePool::command().

00058 { return size_; }

virtual WebPageType ServerPage::type  )  const [inline, virtual]
 

Implements Page.

Definition at line 56 of file pagepool.h.

References HTML, and WebPageType.

00056 { return HTML; }


Member Data Documentation

int Page::id_ [protected, inherited]
 

Definition at line 43 of file pagepool.h.

Referenced by ClientPage::ClientPage(), Page::id(), and ServerPage().

int* ServerPage::mtime_ [protected]
 

Definition at line 64 of file pagepool.h.

Referenced by mtime(), ServerPage(), set_mtime(), and ~ServerPage().

int ServerPage::num_mtime_ [protected]
 

Definition at line 65 of file pagepool.h.

Referenced by num_mtime(), and ServerPage().

int Page::size_ [protected, inherited]
 

Definition at line 42 of file pagepool.h.

Referenced by MediaPage::create(), MediaPage::hit_layer(), Page::Page(), size(), and Page::size().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 13:22:11 2004 for NS2.26SourcesOriginal by doxygen 1.3.3