# ace::ContextWindow Struct Reference

Type holding context window settings. More...

`#include <config.h>`

List of all members.

## Public Types
enum | Mode { SENTENCE_MODE, WORD_MODE }
| Context window mode - can be one of SENTENCE_MODE or WINDOW_MODE. More...
## Public Member Functions
| ContextWindow (Mode m=SENTENCE_MODE, size_t r=0)
| Constructor inits struct with given values.
bool | check (void)
## Public Attributes
enum ace::ContextWindow::Mode | mode
| Context window mode - can be one of SENTENCE_MODE or WINDOW_MODE.
size_t | radius
| Context window radius.

## Detailed Description

Type holding context window settings.

## Member Enumeration Documentation

enum ace::ContextWindow::Mode

Context window mode - can be one of SENTENCE_MODE or WINDOW_MODE.

Enumerator:

  SENTENCE_MODE |
  WORD_MODE |

## Constructor & Destructor Documentation

ace::ContextWindow::ContextWindow | ( | Mode | m = `SENTENCE_MODE`,
|  | size_t | r = `0` |
| ) |  |  | `[inline]`

Constructor inits struct with given values.

Parameters:

  | m | Context window mode (default is SENTENCE_MODE).
  | r | Context window radius (default is 0 - valid only in SENTENCE_MODE!).

## Member Function Documentation

bool ace::ContextWindow::check | ( | void |  | ) | `[inline]`

Returns:
  True, if settings are valid.

## Member Data Documentation

enum ace::ContextWindow::Mode ace::ContextWindow::mode

Context window mode - can be one of SENTENCE_MODE or WINDOW_MODE.

size_t ace::ContextWindow::radius

Context window radius.

The documentation for this struct was generated from the following file:

- proto/Source/config.h