NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
LogicalCursor Struct Reference

Cursor, which is used in the TextManager to identify the actual line and position in the m_text variable. The TextManager is able to convert this cursor into a ViewCursor. More...

#include <TextManager.h>

Collaboration diagram for LogicalCursor:

Public Member Functions

 LogicalCursor ()
 
 LogicalCursor (size_t nPos, size_t nLine)
 
void move (size_t _pos, size_t _line)
 
void advance ()
 
bool revert ()
 
bool operator! () const
 
 operator bool () const
 
LogicalCursoroperator++ (int)
 
LogicalCursor operator+ (int n)
 
LogicalCursor operator- (int n)
 
bool operator-- (int)
 
bool operator== (const LogicalCursor &cursor) const
 
bool operator< (const LogicalCursor &cursor) const
 
bool operator<= (const LogicalCursor &cursor) const
 
bool operator> (const LogicalCursor &cursor) const
 
bool operator>= (const LogicalCursor &cursor) const
 
bool operator!= (const LogicalCursor &cursor) const
 

Public Attributes

size_t pos
 
size_t line
 
bool isValid
 

Detailed Description

Cursor, which is used in the TextManager to identify the actual line and position in the m_text variable. The TextManager is able to convert this cursor into a ViewCursor.

Definition at line 37 of file TextManager.h.

Constructor & Destructor Documentation

◆ LogicalCursor() [1/2]

LogicalCursor::LogicalCursor ( )
inline

Definition at line 43 of file TextManager.h.

◆ LogicalCursor() [2/2]

LogicalCursor::LogicalCursor ( size_t  nPos,
size_t  nLine 
)
inline

Definition at line 44 of file TextManager.h.

Member Function Documentation

◆ advance()

void LogicalCursor::advance ( )
inline

Definition at line 50 of file TextManager.h.

References pos.

Referenced by operator++().

◆ move()

void LogicalCursor::move ( size_t  _pos,
size_t  _line 
)
inline

Definition at line 45 of file TextManager.h.

References line, and pos.

◆ operator bool()

LogicalCursor::operator bool ( ) const
inline

Definition at line 65 of file TextManager.h.

References isValid.

◆ operator!()

bool LogicalCursor::operator! ( ) const
inline

Definition at line 61 of file TextManager.h.

References isValid.

◆ operator!=()

bool LogicalCursor::operator!= ( const LogicalCursor cursor) const
inline

Definition at line 110 of file TextManager.h.

References operator==().

Here is the call graph for this function:

◆ operator+()

LogicalCursor LogicalCursor::operator+ ( int  n)
inline

Definition at line 74 of file TextManager.h.

References pos.

◆ operator++()

LogicalCursor & LogicalCursor::operator++ ( int  )
inline

Definition at line 69 of file TextManager.h.

References advance().

Here is the call graph for this function:

◆ operator-()

LogicalCursor LogicalCursor::operator- ( int  n)
inline

Definition at line 80 of file TextManager.h.

References pos.

◆ operator--()

bool LogicalCursor::operator-- ( int  )
inline

Definition at line 86 of file TextManager.h.

References revert().

Here is the call graph for this function:

◆ operator<()

bool LogicalCursor::operator< ( const LogicalCursor cursor) const
inline

Definition at line 94 of file TextManager.h.

References isValid, line, and pos.

Referenced by operator<=(), and operator>=().

◆ operator<=()

bool LogicalCursor::operator<= ( const LogicalCursor cursor) const
inline

Definition at line 98 of file TextManager.h.

References operator<(), and operator==().

Referenced by operator>().

Here is the call graph for this function:

◆ operator==()

bool LogicalCursor::operator== ( const LogicalCursor cursor) const
inline

Definition at line 90 of file TextManager.h.

References isValid, line, and pos.

Referenced by operator!=(), and operator<=().

◆ operator>()

bool LogicalCursor::operator> ( const LogicalCursor cursor) const
inline

Definition at line 102 of file TextManager.h.

References operator<=().

Here is the call graph for this function:

◆ operator>=()

bool LogicalCursor::operator>= ( const LogicalCursor cursor) const
inline

Definition at line 106 of file TextManager.h.

References operator<().

Here is the call graph for this function:

◆ revert()

bool LogicalCursor::revert ( )
inline

Definition at line 54 of file TextManager.h.

References pos.

Referenced by operator--().

Member Data Documentation

◆ isValid

bool LogicalCursor::isValid

Definition at line 41 of file TextManager.h.

Referenced by operator bool(), operator!(), operator<(), and operator==().

◆ line

◆ pos


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