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

#include <ThreadsCommand.h>

+ Inheritance diagram for ThreadsCommand:
+ Collaboration diagram for ThreadsCommand:

Public Member Functions

 ThreadsCommand ()
 
 ~ThreadsCommand ()
 
void autocomplete (const HugeStaticString &input, HugeStaticString &output)
 
bool execute (const HugeStaticString &input, HugeStaticString &output, InterruptState &state, DebuggerIO *screen)
 
const NormalStaticString getString ()
 
void setPointers (Thread **ppThread, InterruptState *pState)
 
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 Member Functions

bool swapThread (InterruptState &state, DebuggerIO *pScreen)
 

Private Attributes

size_t m_SelectedLine
 
size_t m_nLines
 

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

Allows step execution.

Definition at line 41 of file ThreadsCommand.h.

Constructor & Destructor Documentation

◆ ThreadsCommand()

ThreadsCommand::ThreadsCommand ( )

Default constructor - zero's stuff.

Definition at line 38 of file ThreadsCommand.cc.

◆ ~ThreadsCommand()

ThreadsCommand::~ThreadsCommand ( )

Default destructor - does nothing.

Definition at line 41 of file ThreadsCommand.cc.

Member Function Documentation

◆ autocomplete()

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

Return an autocomplete string, given an input string.

Implements DebuggerCommand.

Definition at line 125 of file ThreadsCommand.cc.

◆ execute()

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

◆ getLine1()

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

Implements Scrollable.

Definition at line 226 of file ThreadsCommand.cc.

◆ getLine2()

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

Implements Scrollable.

Definition at line 259 of file ThreadsCommand.cc.

◆ getLineCount()

size_t ThreadsCommand::getLineCount ( )
virtual

Implements Scrollable.

Definition at line 392 of file ThreadsCommand.cc.

◆ getString()

const NormalStaticString ThreadsCommand::getString ( )
inlinevirtual

Returns the string representation of this command.

Implements DebuggerCommand.

Definition at line 67 of file ThreadsCommand.h.

◆ setPointers()

void ThreadsCommand::setPointers ( Thread **  ppThread,
InterruptState *  pState 
)
inline

Sets the pointers to use to change the thread the debugger debugs.

Definition at line 72 of file ThreadsCommand.h.

Referenced by Debugger::start().

+ Here is the caller graph for this function:

◆ swapThread()

bool ThreadsCommand::swapThread ( InterruptState &  state,
DebuggerIO *  pScreen 
)
private

Definition at line 396 of file ThreadsCommand.cc.

Member Data Documentation

◆ m_nLines

size_t ThreadsCommand::m_nLines
private

Definition at line 89 of file ThreadsCommand.h.

◆ m_SelectedLine

size_t ThreadsCommand::m_SelectedLine
private

Definition at line 88 of file ThreadsCommand.h.


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