Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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

Inheritance graph
[legend]
Collaboration diagram for ArgumentContext:

Collaboration graph
[legend]
List of all members.

Public Methods

 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. More...

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

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

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


Protected Methods

 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 aContext ) 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 aContext ) 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