Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

ArgumentContext Class Reference

ArgumentContext shows off how by extending ThreadContext we can add arguments to the call and use any method not just those prototyped by the system. More...

#include <ArgumentContext.hpp>

Inheritance diagram for ArgumentContext:

corelinux::ThreadContext corelinux::Synchronized List of all members.

Public Member Functions

 ArgumentContext (ArgumentFunctionPtr, int arg=0) throw ( corelinux::Assertion )
 Default.

 ArgumentContext (ArgumentFunctionPtr, corelinux::Size, int arg=0) throw ( corelinux::Assertion )
 With stack.

 ArgumentContext (ArgumentContextCref) throw ( corelinux::Assertion )
 Copy constructor.

virtual ~ArgumentContext (void)
 Virtual destructor.

ArgumentContextRef operator= (ArgumentContextCref) throw ( corelinux::Assertion )
 Assignment operator changes the context.

bool operator== (ArgumentContextCref) const
 Equality operator compares contexts.

const int & getArgument (void) const
 Return the argument to the caller.

void setArgument (const int &)
 Sets the argument after initialization.


Protected Member Functions

 ArgumentContext (void) throw ( corelinux::Assertion )
 Can't use!

ArgumentFunctionPtr getArgumentFunction (void)
 Return the function to invoke.


Detailed Description

ArgumentContext shows off how by extending ThreadContext we can add arguments to the call and use any method not just those prototyped by the system.


Member Function Documentation

ArgumentContextRef ArgumentContext::operator= ArgumentContextCref   )  throw ( corelinux::Assertion )
 

Assignment operator changes the context.

Parameters:
ArgumentContext reference to existing context
Returns:
ArgumentContext reference
Exceptions:
ThreadNotWaitingException if the argument context is not in a THREAD_WAITING_TO_START state.

bool ArgumentContext::operator== ArgumentContextCref   )  const
 

Equality operator compares contexts.

Parameters:
ArgumentContext reference to existing context
Returns:
bool true if same


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium