#include <BlockWipedAllocator.h>
Classes | |
struct | Block |
struct | LocalCache |
struct | Stat |
Public Member Functions | |
void * | alloc () |
BlockWipedAllocator (std::size_t typeSize, std::size_t blockSize) | |
BlockWipedAllocator (BlockWipedAllocator const &rh) | |
void | clear () const |
void | dealloc (void *) |
BlockWipedAllocator & | operator= (BlockWipedAllocator const &rh) |
void | registerCache (LocalCache *c) |
Stat | stat () const |
void | wipe () const |
Protected Member Functions | |
BlockWipedAllocator & | me () const |
Private Types | |
typedef std::list< Block > | Blocks |
typedef Blocks::const_iterator | const_iterator |
typedef Blocks::iterator | iterator |
typedef unsigned char * | pointer |
Private Member Functions | |
void | nextBlock (bool advance) |
Private Attributes | |
std::vector< LocalCache * > | localCaches |
int | m_alive |
Blocks | m_blocks |
std::size_t | m_blockSize |
iterator | m_current |
pointer | m_next |
std::size_t | m_typeSize |
Definition at line 17 of file BlockWipedAllocator.h.
|
private |
Definition at line 85 of file BlockWipedAllocator.h.
|
private |
Definition at line 87 of file BlockWipedAllocator.h.
|
private |
Definition at line 86 of file BlockWipedAllocator.h.
|
private |
Definition at line 84 of file BlockWipedAllocator.h.
BlockWipedAllocator::BlockWipedAllocator | ( | std::size_t | typeSize, |
std::size_t | blockSize | ||
) |
BlockWipedAllocator::BlockWipedAllocator | ( | BlockWipedAllocator const & | rh | ) |
void * BlockWipedAllocator::alloc | ( | ) |
Definition at line 26 of file BlockWipedAllocator.cc.
References createPayload::block, m_alive, BlockWipedAllocator::Block::m_allocated, m_current, BlockWipedAllocator::Block::m_data, m_next, m_typeSize, nextBlock(), and runTheMatrix::ret.
Referenced by BlockWipedAllocated< T >::operator new(), and SizeBlockWipedAllocated< T >::operator new().
void BlockWipedAllocator::clear | ( | void | ) | const |
Definition at line 41 of file BlockWipedAllocator.cc.
References m_blocks, me(), and wipe().
Referenced by BlockWipedPool::clear(), python.Vispa.Views.WidgetView.WidgetView::closeEvent(), python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.WidgetView.WidgetView::setDataObjects(), python.Vispa.Views.TreeView.TreeView::updateContent(), python.Vispa.Views.TableView.TableView::updateContent(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and python.Vispa.Views.PropertyView.PropertyView::updateContent().
void BlockWipedAllocator::dealloc | ( | void * | ) |
Definition at line 37 of file BlockWipedAllocator.cc.
References m_alive.
Referenced by BlockWipedAllocated< T >::operator delete(), and SizeBlockWipedAllocated< T >::operator delete().
|
protected |
Definition at line 54 of file BlockWipedAllocator.cc.
Referenced by clear(), and wipe().
|
private |
Definition at line 66 of file BlockWipedAllocator.cc.
References m_blocks, m_blockSize, m_current, m_next, and m_typeSize.
Referenced by alloc(), and wipe().
BlockWipedAllocator & BlockWipedAllocator::operator= | ( | BlockWipedAllocator const & | rh | ) |
Definition at line 17 of file BlockWipedAllocator.cc.
References m_alive, m_blockSize, m_typeSize, and wipe().
|
inline |
Definition at line 49 of file BlockWipedAllocator.h.
References localCaches.
BlockWipedAllocator::Stat BlockWipedAllocator::stat | ( | ) | const |
Definition at line 58 of file BlockWipedAllocator.cc.
References m_alive, m_blocks, m_blockSize, m_current, m_next, m_typeSize, and asciidump::s.
Referenced by BlockWipedPoolAllocated::stat(), BlockWipedAllocated< T >::stat(), and SizeBlockWipedAllocated< T >::stat().
void BlockWipedAllocator::wipe | ( | ) | const |
Definition at line 46 of file BlockWipedAllocator.cc.
References localCaches, m_blocks, m_current, me(), nextBlock(), and BlockWipedAllocator::LocalCache::reset().
Referenced by BlockWipedAllocator(), clear(), operator=(), and BlockWipedPool::wipe().
|
private |
Definition at line 54 of file BlockWipedAllocator.h.
Referenced by registerCache(), and wipe().
|
private |
Definition at line 96 of file BlockWipedAllocator.h.
Referenced by alloc(), dealloc(), operator=(), and stat().
|
private |
Definition at line 94 of file BlockWipedAllocator.h.
Referenced by clear(), nextBlock(), stat(), and wipe().
|
private |
Definition at line 91 of file BlockWipedAllocator.h.
Referenced by nextBlock(), operator=(), and stat().
|
private |
Definition at line 93 of file BlockWipedAllocator.h.
Referenced by alloc(), nextBlock(), stat(), and wipe().
|
private |
Definition at line 92 of file BlockWipedAllocator.h.
Referenced by alloc(), nextBlock(), and stat().
|
private |
Definition at line 90 of file BlockWipedAllocator.h.
Referenced by alloc(), nextBlock(), operator=(), and stat().