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

#include <Relation.h>

Classes

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

Public Types

using value_type = Relation
 
using const_iterator = std::vector< value_type >::const_iterator
 
using iterator = const_iterator
 

Public Member Functions

 RelationSlab ()=default
 
 RelationSlab (RelationSlab &&Slab)=default
 
RelationSlaboperator= (RelationSlab &&RHS)=default
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 
bool empty () const
 
size_t bytes () const
 
llvm::iterator_range< iteratorlookup (const SymbolID &Subject, RelationKind Predicate) const
 Lookup all relations matching the given subject and predicate.
 

Detailed Description

Definition at line 50 of file Relation.h.

Member Typedef Documentation

◆ const_iterator

using clang::clangd::RelationSlab::const_iterator = std::vector<value_type>::const_iterator

Definition at line 53 of file Relation.h.

◆ iterator

Definition at line 54 of file Relation.h.

◆ value_type

Definition at line 52 of file Relation.h.

Constructor & Destructor Documentation

◆ RelationSlab() [1/2]

clang::clangd::RelationSlab::RelationSlab ( )
default

◆ RelationSlab() [2/2]

clang::clangd::RelationSlab::RelationSlab ( RelationSlab &&  Slab)
default

Member Function Documentation

◆ begin()

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

Definition at line 60 of file Relation.h.

◆ bytes()

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

Definition at line 65 of file Relation.h.

◆ empty()

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

Definition at line 63 of file Relation.h.

◆ end()

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

Definition at line 61 of file Relation.h.

◆ lookup()

llvm::iterator_range< RelationSlab::iterator > clang::clangd::RelationSlab::lookup ( const SymbolID Subject,
RelationKind  Predicate 
) const

Lookup all relations matching the given subject and predicate.

Definition at line 31 of file Relation.cpp.

◆ operator=()

RelationSlab & clang::clangd::RelationSlab::operator= ( RelationSlab &&  RHS)
default

◆ size()

size_t clang::clangd::RelationSlab::size ( ) const
inline

Definition at line 62 of file Relation.h.


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