LibreOffice Module starmath (master) 1
Public Member Functions | Private Attributes | List of all members
SmCaretPosGraph Class Reference

A graph over all caret positions. More...

#include <caret.hxx>

Public Member Functions

 SmCaretPosGraph ()
 
 ~SmCaretPosGraph ()
 
SmCaretPosGraphEntryAdd (SmCaretPos pos, SmCaretPosGraphEntry *left=nullptr)
 Add a caret position. More...
 
std::vector< std::unique_ptr< SmCaretPosGraphEntry > >::iterator begin ()
 
std::vector< std::unique_ptr< SmCaretPosGraphEntry > >::iterator end ()
 

Private Attributes

std::vector< std::unique_ptr< SmCaretPosGraphEntry > > mvEntries
 

Detailed Description

A graph over all caret positions.

Remarks
Graphs can only grow, entries cannot be removed!

Definition at line 131 of file caret.hxx.

Constructor & Destructor Documentation

◆ SmCaretPosGraph()

SmCaretPosGraph::SmCaretPosGraph ( )
default

◆ ~SmCaretPosGraph()

SmCaretPosGraph::~SmCaretPosGraph ( )
default

Member Function Documentation

◆ Add()

SmCaretPosGraphEntry * SmCaretPosGraph::Add ( SmCaretPos  pos,
SmCaretPosGraphEntry left = nullptr 
)

Add a caret position.

Remarks
If left is NULL, they will point back to the entry.

Definition at line 15 of file caret.cxx.

References left, SmCaretPosGraphEntry::Left, mvEntries, pos, and SmCaretPosGraphEntry::Right.

◆ begin()

std::vector< std::unique_ptr< SmCaretPosGraphEntry > >::iterator SmCaretPosGraph::begin ( )
inline

Definition at line 143 of file caret.hxx.

References mvEntries.

◆ end()

std::vector< std::unique_ptr< SmCaretPosGraphEntry > >::iterator SmCaretPosGraph::end ( )
inline

Definition at line 148 of file caret.hxx.

References mvEntries.

Member Data Documentation

◆ mvEntries

std::vector<std::unique_ptr<SmCaretPosGraphEntry> > SmCaretPosGraph::mvEntries
private

Definition at line 151 of file caret.hxx.

Referenced by Add(), begin(), and end().


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