HPCToolkit
WordSet Class Reference

#include <WordSet.hpp>

Inheritance diagram for WordSet:
Collaboration diagram for WordSet:

Public Member Functions

 WordSet ()
 
 WordSet (const WordSet &rhs)
 
virtual ~WordSet ()
 
void Add (unsigned long entry)
 
void Delete (unsigned long entry)
 
int IsMember (unsigned long entry) const
 
bool Intersects (const WordSet &rhs) const
 
void Clear ()
 
unsigned long GetEntryByIndex (unsigned int indx) const
 
int operator== (const WordSet &rhs) const
 
WordSetoperator|= (const WordSet &rhs)
 
WordSetoperator &= (const WordSet &rhs)
 
WordSetoperator-= (const WordSet &rhs)
 
WordSetoperator= (const WordSet &rhs)
 
void Dump (std::ostream &file=std::cerr, const char *name="", const char *indent="")
 

Private Member Functions

uint HashFunct (const void *entry, const uint size)
 
int EntryCompare (const void *entry1, const void *entry2)
 
void Create (const uint entrySize, uint initialSize, HashFunctFunctPtr const HashFunctCallback, RehashFunctFunctPtr const RehashFunctCallback, EntryCompareFunctPtr const EntryCompareCallback, EntryCleanupFunctPtr const EntryCleanupCallback)
 
void Create (const uint entrySize, uint initialSize)
 
void Destroy ()
 
bool operator== (HashTable &rhsTab)
 
void AddEntry (void *entry, AddEntryFunctPtr const AddEntryCallback=0,...)
 
void DeleteEntry (void *entry, DeleteEntryFunctPtr const DeleteEntryCallback=0,...)
 
void * QueryEntry (const void *entry) const
 
int GetEntryIndex (const void *entry) const
 
uint NumberOfEntries () const
 
void Dump ()
 
virtual uint RehashFunct (const uint oldHashValue, const uint size)
 
virtual void EntryCleanup (void *entry)
 

Friends

class WordSetIterator
 

Detailed Description

Definition at line 71 of file WordSet.hpp.

Constructor & Destructor Documentation

◆ WordSet() [1/2]

WordSet::WordSet ( )

Definition at line 76 of file WordSet.cpp.

Here is the call graph for this function:

◆ WordSet() [2/2]

WordSet::WordSet ( const WordSet rhs)

Definition at line 82 of file WordSet.cpp.

Here is the call graph for this function:

◆ ~WordSet()

WordSet::~WordSet ( )
virtual

Definition at line 89 of file WordSet.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Add()

void WordSet::Add ( unsigned long  entry)

Definition at line 107 of file WordSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddEntry()

void HashTable::AddEntry ( void *  entry,
AddEntryFunctPtr const  AddEntryCallback = 0,
  ... 
)
inherited

Definition at line 250 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Clear()

void WordSet::Clear ( )

Definition at line 146 of file WordSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Create() [1/2]

void HashTable::Create ( const uint  entrySize,
uint  initialSize,
HashFunctFunctPtr const  HashFunctCallback,
RehashFunctFunctPtr const  RehashFunctCallback,
EntryCompareFunctPtr const  EntryCompareCallback,
EntryCleanupFunctPtr const  EntryCleanupCallback 
)
inherited

Definition at line 139 of file HashTable.cpp.

Here is the caller graph for this function:

◆ Create() [2/2]

void HashTable::Create ( const uint  entrySize,
uint  initialSize 
)
protectedinherited

Definition at line 495 of file HashTable.cpp.

◆ Delete()

void WordSet::Delete ( unsigned long  entry)

Definition at line 113 of file WordSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeleteEntry()

void HashTable::DeleteEntry ( void *  entry,
DeleteEntryFunctPtr const  DeleteEntryCallback = 0,
  ... 
)
inherited

Definition at line 296 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Destroy()

void HashTable::Destroy ( )
inherited

Definition at line 205 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Dump() [1/2]

void WordSet::Dump ( std::ostream &  file = std::cerr,
const char *  name = "",
const char *  indent = "" 
)

Definition at line 239 of file WordSet.cpp.

Here is the call graph for this function:

◆ Dump() [2/2]

void HashTable::Dump ( )
inherited

Definition at line 475 of file HashTable.cpp.

Here is the call graph for this function:

◆ EntryCleanup()

void HashTable::EntryCleanup ( void *  entry)
protectedvirtualinherited

Definition at line 565 of file HashTable.cpp.

Here is the caller graph for this function:

◆ EntryCompare()

int WordSet::EntryCompare ( const void *  entry1,
const void *  entry2 
)
privatevirtual

Reimplemented from HashTable.

Definition at line 101 of file WordSet.cpp.

◆ GetEntryByIndex()

unsigned long WordSet::GetEntryByIndex ( unsigned int  indx) const

Definition at line 155 of file WordSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetEntryIndex()

int HashTable::GetEntryIndex ( const void *  entry) const
inherited

Definition at line 426 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HashFunct()

uint WordSet::HashFunct ( const void *  entry,
const uint  size 
)
privatevirtual

Reimplemented from HashTable.

Definition at line 95 of file WordSet.cpp.

◆ Intersects()

bool WordSet::Intersects ( const WordSet rhs) const

Definition at line 126 of file WordSet.cpp.

Here is the call graph for this function:

◆ IsMember()

int WordSet::IsMember ( unsigned long  entry) const

Definition at line 119 of file WordSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NumberOfEntries()

uint HashTable::NumberOfEntries ( ) const
inherited

Definition at line 460 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator &=()

WordSet& WordSet::operator&= ( const WordSet rhs)
Here is the caller graph for this function:

◆ operator-=()

WordSet & WordSet::operator-= ( const WordSet rhs)

Definition at line 223 of file WordSet.cpp.

Here is the call graph for this function:

◆ operator=()

WordSet & WordSet::operator= ( const WordSet rhs)

Definition at line 188 of file WordSet.cpp.

Here is the call graph for this function:

◆ operator==() [1/2]

int WordSet::operator== ( const WordSet rhs) const

Definition at line 161 of file WordSet.cpp.

Here is the call graph for this function:

◆ operator==() [2/2]

bool HashTable::operator== ( HashTable rhsTab)
inherited

Definition at line 243 of file HashTable.cpp.

◆ operator|=()

WordSet & WordSet::operator|= ( const WordSet rhs)

Definition at line 179 of file WordSet.cpp.

Here is the call graph for this function:

◆ QueryEntry()

void * HashTable::QueryEntry ( const void *  entry) const
inherited

Definition at line 396 of file HashTable.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RehashFunct()

uint HashTable::RehashFunct ( const uint  oldHashValue,
const uint  size 
)
protectedvirtualinherited

Definition at line 551 of file HashTable.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ WordSetIterator

friend class WordSetIterator
friend

Definition at line 109 of file WordSet.hpp.


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