ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

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

BitMap Class Reference

#include <rbitmap.h>

List of all members.

Public Member Functions

 BitMap ()
 BitMap (u_long Size, u_long BitsPerEntry=1)
 ~BitMap ()
void Set (u_long Which, u_long Value=1)
void Clear (u_long Which)
u_long Get (u_long Which)
size_t Size (void)
void Log (ostream &os)
void DBPrint ()

Static Public Member Functions

u_long FindBPE (u_long)
size_t EstimateSize (u_long Size, u_long BitsPerEntry)

Private Member Functions

u_long * GetWordAddress (u_long Which)
u_long GetBitMask (u_long Which)
short GetShiftCount (u_long Which)
void Validate (u_long Which)

Private Attributes

u_long m_Size
u_long m_BPE
u_long m_Words
short m_EPW
u_long * m_pM

Constructor & Destructor Documentation


BitMap::BitMap u_long    Size,
u_long    BitsPerEntry = 1

BitMap::~BitMap   [inline]

Member Function Documentation

void BitMap::Clear u_long    Which

void BitMap::DBPrint  

size_t BitMap::EstimateSize u_long    Size,
u_long    BitsPerEntry

u_long BitMap::FindBPE u_long    [static]

u_long BitMap::Get u_long    Which

u_long BitMap::GetBitMask u_long    Which [private]

short BitMap::GetShiftCount u_long    Which [private]

u_long* BitMap::GetWordAddress u_long    Which [private]

void BitMap::Log ostream &    os

void BitMap::Set u_long    Which,
u_long    Value = 1

size_t BitMap::Size void   

void BitMap::Validate u_long    Which [private]

Member Data Documentation

u_long BitMap::m_BPE [private]

short BitMap::m_EPW [private]

u_long* BitMap::m_pM [private]

u_long BitMap::m_Size [private]

u_long BitMap::m_Words [private]

The documentation for this class was generated from the following file:
This document is generated by doxygen.