---
name: "ArgumentContext"
section: "3"
platform: "linux"
package: "libcorelinux-dev"
version: "0.4.32-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/ArgumentContext"
---

# ArgumentContext(3)

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.

## NAME

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

## SYNOPSIS

`#include <ArgumentContext.hpp>`

Inherits **corelinux::ThreadContext**.

### 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

## Author

Generated automatically by Doxygen for CoreLinux++ from the source code.
