clang 20.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 (std::in_place_t, ArgTypes &&...Args)
 
void reset ()
 
bool has_value () const
 
RefTy & value () &
 
RefTy const & value () const &
 
RefTy && value () &&
 
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 120 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 ( std::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 148 of file DirectoryEntry.h.

◆ has_value()

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

◆ operator=()

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

Definition at line 152 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

◆ value() [2/3]

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

◆ value() [3/3]

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

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