The Pedigree Project 0.1
Classes | Public Member Functions | Private Attributes | List of all members
SlamCommand Class Reference

#include <SlamCommand.h>

+ Inheritance diagram for SlamCommand:
+ Collaboration diagram for SlamCommand:

Classes

struct  SlamAllocation
 

Public Member Functions

 SlamCommand ()
 
 ~SlamCommand ()
 
void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 
void addAllocation (uintptr_t *backtrace, size_t requested)
 
void removeAllocation (uintptr_t *backtrace, size_t requested)
 
void clean ()
 
virtual const char * getLine1 (size_t index, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
virtual const char * getLine2 (size_t index, size_t &colOffset, DebuggerIO::Colour &colour, DebuggerIO::Colour &bgColour)
 
virtual size_t getLineCount ()
 
- Public Member Functions inherited from Scrollable
void move (size_t x, size_t y)
 
void resize (size_t width, size_t height)
 
void scroll (ssize_t lines)
 
void scrollTo (size_t absolute)
 
void scrollHorizontal (ssize_t columns)
 
void horizontalScrollTo (size_t absolute)
 
void refresh (DebuggerIO *pScreen)
 
void setScrollKeys (char up, char down)
 
ssize_t getLine ()
 
void centreOn (size_t line)
 
size_t height () const
 
size_t width () const
 
virtual size_t getContentWidth ()
 

Private Attributes

Tree< size_t, SlamAllocation * > m_Tree
 
Tree< size_t, SlamAllocation * >::Iterator m_It
 
size_t m_nLines
 
size_t m_nIdx
 
bool m_Lock
 

Additional Inherited Members

- Protected Attributes inherited from Scrollable
size_t m_x
 
size_t m_y
 
size_t m_width
 
size_t m_height
 
ssize_t m_line
 
size_t m_column
 
char m_ScrollUp
 
char m_ScrollDown
 

Detailed Description

Traces page allocations.

Definition at line 40 of file SlamCommand.h.

Constructor & Destructor Documentation

◆ SlamCommand()

SlamCommand::SlamCommand ( )

Default constructor - zeroes stuff.

Definition at line 31 of file SlamCommand.cc.

◆ ~SlamCommand()

SlamCommand::~SlamCommand ( )

Default destructor - does nothing.

Definition at line 34 of file SlamCommand.cc.

Member Function Documentation

◆ addAllocation()

void SlamCommand::addAllocation ( uintptr_t *  backtrace,
size_t  requested 
)

Definition at line 218 of file SlamCommand.cc.

◆ autocomplete()

void SlamCommand::autocomplete ( const HugeStaticString &  input,
HugeStaticString &  output 
)
virtual

Return an autocomplete string, given an input string.

Implements DebuggerCommand.

Definition at line 36 of file SlamCommand.cc.

◆ clean()

void SlamCommand::clean ( )
inline

Definition at line 74 of file SlamCommand.h.

◆ execute()

bool SlamCommand::execute ( const HugeStaticString &  input,
HugeStaticString &  output,
InterruptState &  state,
DebuggerIO *  screen 
)
virtual

◆ getLine1()

const char * SlamCommand::getLine1 ( size_t  index,
DebuggerIO::Colour &  colour,
DebuggerIO::Colour &  bgColour 
)
virtual

Implements Scrollable.

Definition at line 157 of file SlamCommand.cc.

◆ getLine2()

const char * SlamCommand::getLine2 ( size_t  index,
size_t &  colOffset,
DebuggerIO::Colour &  colour,
DebuggerIO::Colour &  bgColour 
)
virtual

Implements Scrollable.

Definition at line 206 of file SlamCommand.cc.

◆ getLineCount()

size_t SlamCommand::getLineCount ( )
virtual

Implements Scrollable.

Definition at line 214 of file SlamCommand.cc.

◆ getString()

const NormalStaticString SlamCommand::getString ( )
inlinevirtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 66 of file SlamCommand.h.

◆ removeAllocation()

void SlamCommand::removeAllocation ( uintptr_t *  backtrace,
size_t  requested 
)

Definition at line 244 of file SlamCommand.cc.

Member Data Documentation

◆ m_It

Tree<size_t,SlamAllocation*>::Iterator SlamCommand::m_It
private

Definition at line 94 of file SlamCommand.h.

◆ m_Lock

bool SlamCommand::m_Lock
private

Definition at line 97 of file SlamCommand.h.

◆ m_nIdx

size_t SlamCommand::m_nIdx
private

Definition at line 96 of file SlamCommand.h.

◆ m_nLines

size_t SlamCommand::m_nLines
private

Definition at line 95 of file SlamCommand.h.

◆ m_Tree

Tree<size_t, SlamAllocation*> SlamCommand::m_Tree
private

Definition at line 93 of file SlamCommand.h.


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