clang  15.0.0git
Public Member Functions | List of all members
clang::FileMgr::MapEntryOptionalStorage< RefTy > Class Template Reference

Customized storage for refs derived from map entires in FileManager, using the private optional_none_tag to keep it to the size of a single pointer. More...

#include "clang/Basic/DirectoryEntry.h"

Inheritance diagram for clang::FileMgr::MapEntryOptionalStorage< RefTy >:
Inheritance graph
[legend]

Public Member Functions

 MapEntryOptionalStorage ()
 
template<class... ArgTypes>
 MapEntryOptionalStorage (llvm::in_place_t, ArgTypes &&...Args)
 
void reset ()
 
bool has_value () const
 
bool hasValue () const
 
RefTy & value () &
 
RefTy & getValue () &
 
const RefTy & value () const &
 
const RefTy & getValue () const &
 
RefTy && value () &&
 
RefTy && getValue () &&
 
template<class... Args>
void emplace (Args &&...args)
 
MapEntryOptionalStorageoperator= (RefTy Ref)
 

Detailed Description

template<class RefTy>
class clang::FileMgr::MapEntryOptionalStorage< RefTy >

Customized storage for refs derived from map entires in FileManager, using the private optional_none_tag to keep it to the size of a single pointer.

Definition at line 28 of file DirectoryEntry.h.

Constructor & Destructor Documentation

◆ MapEntryOptionalStorage() [1/2]

template<class RefTy >
clang::FileMgr::MapEntryOptionalStorage< RefTy >::MapEntryOptionalStorage ( )
inline

Definition at line 125 of file DirectoryEntry.h.

◆ MapEntryOptionalStorage() [2/2]

template<class RefTy >
template<class... ArgTypes>
clang::FileMgr::MapEntryOptionalStorage< RefTy >::MapEntryOptionalStorage ( llvm::in_place_t  ,
ArgTypes &&...  Args 
)
inlineexplicit

Definition at line 128 of file DirectoryEntry.h.

Member Function Documentation

◆ emplace()

template<class RefTy >
template<class... Args>
void clang::FileMgr::MapEntryOptionalStorage< RefTy >::emplace ( Args &&...  args)
inline

Definition at line 161 of file DirectoryEntry.h.

◆ getValue() [1/3]

template<class RefTy >
RefTy& clang::FileMgr::MapEntryOptionalStorage< RefTy >::getValue ( ) &
inline

Definition at line 140 of file DirectoryEntry.h.

◆ getValue() [2/3]

template<class RefTy >
RefTy&& clang::FileMgr::MapEntryOptionalStorage< RefTy >::getValue ( ) &&
inline

Definition at line 156 of file DirectoryEntry.h.

◆ getValue() [3/3]

template<class RefTy >
const RefTy& clang::FileMgr::MapEntryOptionalStorage< RefTy >::getValue ( ) const &
inline

Definition at line 148 of file DirectoryEntry.h.

◆ has_value()

template<class RefTy >
bool clang::FileMgr::MapEntryOptionalStorage< RefTy >::has_value ( ) const
inline

◆ hasValue()

template<class RefTy >
bool clang::FileMgr::MapEntryOptionalStorage< RefTy >::hasValue ( ) const
inline

Definition at line 134 of file DirectoryEntry.h.

◆ operator=()

template<class RefTy >
MapEntryOptionalStorage& clang::FileMgr::MapEntryOptionalStorage< RefTy >::operator= ( RefTy  Ref)
inline

Definition at line 165 of file DirectoryEntry.h.

◆ reset()

template<class RefTy >
void clang::FileMgr::MapEntryOptionalStorage< RefTy >::reset ( )
inline

Definition at line 131 of file DirectoryEntry.h.

◆ value() [1/3]

template<class RefTy >
RefTy& clang::FileMgr::MapEntryOptionalStorage< RefTy >::value ( ) &
inline

Definition at line 136 of file DirectoryEntry.h.

◆ value() [2/3]

template<class RefTy >
RefTy&& clang::FileMgr::MapEntryOptionalStorage< RefTy >::value ( ) &&
inline

Definition at line 152 of file DirectoryEntry.h.

◆ value() [3/3]

template<class RefTy >
const RefTy& clang::FileMgr::MapEntryOptionalStorage< RefTy >::value ( ) const &
inline

Definition at line 144 of file DirectoryEntry.h.


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