nixd
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
lspserver::Range Struct Reference

#include <Protocol.h>

Collaboration diagram for lspserver::Range:
[legend]

Public Member Functions

bool contains (Position Pos) const
 
bool contains (Range Rng) const
 
Range operator/ (const Range &RHS) const
 
bool overlap (const Range &RHS) const
 

Public Attributes

Position start
 The range's start position.
 
Position end
 The range's end position.
 

Friends

bool operator== (const Range &LHS, const Range &RHS)
 
bool operator!= (const Range &LHS, const Range &RHS)
 
bool operator< (const Range &LHS, const Range &RHS)
 

Detailed Description

Definition at line 157 of file lspserver/include/lspserver/Protocol.h.

Member Function Documentation

◆ contains() [1/2]

bool lspserver::Range::contains ( Position Pos) const
inline

Definition at line 174 of file lspserver/include/lspserver/Protocol.h.

References end, and start.

◆ contains() [2/2]

bool lspserver::Range::contains ( Range Rng) const
inline

Definition at line 175 of file lspserver/include/lspserver/Protocol.h.

References end, lspserver::fromJSON(), and start.

◆ operator/()

Range lspserver::Range::operator/ ( const Range & RHS) const
inline

Definition at line 179 of file lspserver/include/lspserver/Protocol.h.

References end, and start.

◆ overlap()

bool lspserver::Range::overlap ( const Range & RHS) const
inline
Returns
true if the ranges overlap.

Definition at line 184 of file lspserver/include/lspserver/Protocol.h.

References end, and start.

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const Range & LHS,
const Range & RHS )
friend

Definition at line 167 of file lspserver/include/lspserver/Protocol.h.

◆ operator<

bool operator< ( const Range & LHS,
const Range & RHS )
friend

Definition at line 170 of file lspserver/include/lspserver/Protocol.h.

◆ operator==

bool operator== ( const Range & LHS,
const Range & RHS )
friend

Definition at line 164 of file lspserver/include/lspserver/Protocol.h.

Member Data Documentation

◆ end

Position lspserver::Range::end

◆ start

Position lspserver::Range::start

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