clang-tools 20.0.0git
Classes | Public Types | Public Member Functions | List of all members
clang::clangd::SymbolSlab Class Reference

An immutable symbol container that stores a set of symbols. More...

#include <Symbol.h>

Classes

class  Builder
 SymbolSlab::Builder is a mutable container that can 'freeze' to SymbolSlab. More...
 

Public Types

using const_iterator = std::vector< Symbol >::const_iterator
 
using iterator = const_iterator
 
using value_type = Symbol
 
using size_type = size_t
 

Public Member Functions

 SymbolSlab ()=default
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator find (const SymbolID &SymID) const
 
size_type size () const
 
bool empty () const
 
size_t bytes () const
 

Detailed Description

An immutable symbol container that stores a set of symbols.

The container will maintain the lifetime of the symbols.

Definition at line 199 of file Symbol.h.

Member Typedef Documentation

◆ const_iterator

using clang::clangd::SymbolSlab::const_iterator = std::vector<Symbol>::const_iterator

Definition at line 201 of file Symbol.h.

◆ iterator

Definition at line 202 of file Symbol.h.

◆ size_type

Definition at line 211 of file Symbol.h.

◆ value_type

Definition at line 203 of file Symbol.h.

Constructor & Destructor Documentation

◆ SymbolSlab()

clang::clangd::SymbolSlab::SymbolSlab ( )
default

Member Function Documentation

◆ begin()

const_iterator clang::clangd::SymbolSlab::begin ( ) const
inline

Definition at line 207 of file Symbol.h.

◆ bytes()

size_t clang::clangd::SymbolSlab::bytes ( ) const
inline

Definition at line 215 of file Symbol.h.

Referenced by clang::clangd::MemIndex::build().

◆ empty()

bool clang::clangd::SymbolSlab::empty ( ) const
inline

Definition at line 213 of file Symbol.h.

◆ end()

const_iterator clang::clangd::SymbolSlab::end ( ) const
inline

Definition at line 208 of file Symbol.h.

Referenced by clang::clangd::MergedIndex::fuzzyFind().

◆ find()

SymbolSlab::const_iterator clang::clangd::SymbolSlab::find ( const SymbolID SymID) const

Definition at line 39 of file Symbol.cpp.

References ID.

Referenced by clang::clangd::MergedIndex::fuzzyFind().

◆ size()

size_type clang::clangd::SymbolSlab::size ( ) const
inline

Definition at line 212 of file Symbol.h.


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