librime: rime::Spans Class Reference

| librime 1.2 Rime Input Method Engine, the core library

Public Member Functions | List of all members
rime::Spans Class Reference

`#include <translator_commons.h>`

## Public Member Functions
void | AddVertex (size_t vertex)
void | AddSpan (size_t start, size_t end)
void | AddSpans (const Spans &spans)
void | Clear ()
size_t | PreviousStop (size_t caret_pos) const
size_t | NextStop (size_t caret_pos) const
size_t | Count (size_t start_pos, size_t end_pos) const
size_t | Count () const
size_t | start () const
size_t | end () const
bool | HasVertex (size_t vertex) const
void | set_vertices (vector< size_t > &&vertices)

## Member Function Documentation

## ◆ AddSpan()

void rime::Spans::AddSpan | ( | size_t | start,
|  | size_t | end )

## ◆ AddSpans()

void rime::Spans::AddSpans | ( | const Spans & | spans | ) |

## ◆ AddVertex()

void rime::Spans::AddVertex | ( | size_t | vertex | ) |

## ◆ Clear()

void rime::Spans::Clear | ( |  | ) |

## ◆ Count() [1/2]

size_t rime::Spans::Count | ( |  | ) | const
| inline

## ◆ Count() [2/2]

size_t rime::Spans::Count | ( | size_t | start_pos,
|  | size_t | end_pos ) const

## ◆ end()

size_t rime::Spans::end | ( |  | ) | const
| inline

## ◆ HasVertex()

bool rime::Spans::HasVertex | ( | size_t | vertex | ) | const

## ◆ NextStop()

size_t rime::Spans::NextStop | ( | size_t | caret_pos | ) | const

## ◆ PreviousStop()

size_t rime::Spans::PreviousStop | ( | size_t | caret_pos | ) | const

## ◆ set_vertices()

void rime::Spans::set_vertices | ( | vector< size_t > && | vertices | ) |
| inline

## ◆ start()

size_t rime::Spans::start | ( |  | ) | const
| inline

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

- translator_commons.h
- translator_commons.cc