Mixe for Privacy and Anonymity in the Internet
|
#include <CAChainTable.hpp>
Public Member Functions | |
CAChainTable (void) | |
~CAChainTable (void) | |
CAChain * | getEntry (UINT8 *a_chainId) |
CAChain * | createEntry () |
void | deleteEntry (UINT8 *a_chainId) |
UINT32 | getSize () |
CAChain * | getFirstEntry () |
CAChain * | getNextEntry () |
Private Member Functions | |
t_chaintableEntry * | getEntryInternal (UINT8 *a_chainId) |
void | removeEntryInternal (t_chaintableEntry *a_entry) |
void | getNextEntryInternal (t_chaintableIterator *a_iterator) |
Private Attributes | |
t_chaintableEntry ** | m_pChainTable |
CAMutex * | m_pMutex |
UINT32 | m_chaintableSize |
t_chaintableIterator * | m_pChaintableIterator |
Definition at line 52 of file CAChainTable.hpp.
CAChainTable::CAChainTable | ( | void | ) |
Definition at line 39 of file CAChainTable.cpp.
References m_chaintableSize, m_pChainTable, m_pChaintableIterator, m_pMutex, and MAX_POLLFD.
CAChainTable::~CAChainTable | ( | void | ) |
Definition at line 64 of file CAChainTable.cpp.
References getFirstEntry(), getNextEntry(), m_pChainTable, m_pChaintableIterator, m_pMutex, and t_chaintableIterator::removeEntry.
CAChain * CAChainTable::createEntry | ( | ) |
Definition at line 172 of file CAChainTable.cpp.
References t_chaintableEntry::chain, CHAIN_ID_LENGTH, chainId, E_SUCCESS, getEntryInternal(), getRandom(), CAMutex::lock(), m_chaintableSize, m_pChainTable, m_pMutex, MAX_POLLFD, t_chaintableEntry::rightEntry, t_chaintableEntry::rightEntryPointerOfLeftEntry, and CAMutex::unlock().
Referenced by CALastMixB::loop().
void CAChainTable::deleteEntry | ( | UINT8 * | a_chainId | ) |
Definition at line 103 of file CAChainTable.cpp.
References t_chaintableIterator::currentEntry, getEntryInternal(), CAMutex::lock(), m_pChaintableIterator, m_pMutex, t_chaintableIterator::removeEntry, removeEntryInternal(), and CAMutex::unlock().
Referenced by CALastMixB::loop().
Definition at line 92 of file CAChainTable.cpp.
References t_chaintableEntry::chain, getEntryInternal(), CAMutex::lock(), m_pMutex, and CAMutex::unlock().
Referenced by CALastMixB::loop().
|
private |
Definition at line 248 of file CAChainTable.cpp.
References t_chaintableEntry::chain, CHAIN_ID_LENGTH, t_chaintableIterator::currentEntry, CAChain::getChainId(), m_pChainTable, m_pChaintableIterator, t_chaintableIterator::removeEntry, and t_chaintableEntry::rightEntry.
Referenced by createEntry(), deleteEntry(), and getEntry().
CAChain * CAChainTable::getFirstEntry | ( | ) |
Definition at line 126 of file CAChainTable.cpp.
References t_chaintableEntry::chain, t_chaintableIterator::currentEntry, getNextEntryInternal(), CAMutex::lock(), m_pChaintableIterator, m_pMutex, t_chaintableIterator::nextHashkey, t_chaintableIterator::removeEntry, removeEntryInternal(), and CAMutex::unlock().
Referenced by CALastMixB::loop(), and ~CAChainTable().
CAChain * CAChainTable::getNextEntry | ( | ) |
Definition at line 154 of file CAChainTable.cpp.
References t_chaintableEntry::chain, t_chaintableIterator::currentEntry, getNextEntryInternal(), CAMutex::lock(), m_pChaintableIterator, m_pMutex, and CAMutex::unlock().
Referenced by CALastMixB::loop(), and ~CAChainTable().
|
private |
Definition at line 297 of file CAChainTable.cpp.
References t_chaintableIterator::currentEntry, m_pChainTable, t_chaintableIterator::nextHashkey, t_chaintableIterator::removeEntry, removeEntryInternal(), and t_chaintableEntry::rightEntry.
Referenced by getFirstEntry(), and getNextEntry().
UINT32 CAChainTable::getSize | ( | ) |
Definition at line 239 of file CAChainTable.cpp.
References CAMutex::lock(), m_chaintableSize, m_pMutex, and CAMutex::unlock().
Referenced by CALastMixB::loop().
|
private |
Definition at line 282 of file CAChainTable.cpp.
References t_chaintableEntry::chain, m_chaintableSize, t_chaintableEntry::rightEntry, and t_chaintableEntry::rightEntryPointerOfLeftEntry.
Referenced by deleteEntry(), getFirstEntry(), and getNextEntryInternal().
|
private |
Definition at line 69 of file CAChainTable.hpp.
Referenced by CAChainTable(), createEntry(), getSize(), and removeEntryInternal().
|
private |
Definition at line 67 of file CAChainTable.hpp.
Referenced by CAChainTable(), createEntry(), getEntryInternal(), getNextEntryInternal(), and ~CAChainTable().
|
private |
Definition at line 70 of file CAChainTable.hpp.
Referenced by CAChainTable(), deleteEntry(), getEntryInternal(), getFirstEntry(), getNextEntry(), and ~CAChainTable().
|
private |
Definition at line 68 of file CAChainTable.hpp.
Referenced by CAChainTable(), createEntry(), deleteEntry(), getEntry(), getFirstEntry(), getNextEntry(), getSize(), and ~CAChainTable().