Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
dictionary::Searcher< Const > Class Template Reference

Public Types

typedef std::conditional< Const, const dictionary, dictionary >::type dict_type
 
typedef std::conditional< Const, const entry, entry >::type value_type
 
typedef dict_typedict_pointer
 
typedef dict_typedict_reference
 
typedef value_typepointer
 
typedef value_typereference
 

Public Member Functions

 Searcher ()
 
bool good () const noexcept
 
bool found () const noexcept
 
dict_reference context () const
 
pointer ptr () const noexcept
 
reference ref () const
 
bool isDict () const noexcept
 
dict_pointer dictPtr () const noexcept
 
dict_reference dict () const
 
 operator const Searcher<!Const > & () const
 
pointer operator-> () const noexcept
 
reference operator* () const
 

Public Attributes

friend dictionary
 

Protected Member Functions

 Searcher (dict_pointer dict)
 
void set (pointer eptr)
 

Protected Attributes

dict_pointer dict_
 
pointer eptr_
 

Detailed Description

template<bool Const>
class Foam::dictionary::Searcher< Const >

Definition at line 136 of file dictionary.H.

Member Typedef Documentation

◆ dict_type

typedef std::conditional<Const, const dictionary, dictionary>::type dict_type

Definition at line 143 of file dictionary.H.

◆ value_type

typedef std::conditional<Const, const entry, entry>::type value_type

Definition at line 147 of file dictionary.H.

◆ dict_pointer

Definition at line 150 of file dictionary.H.

◆ dict_reference

Definition at line 153 of file dictionary.H.

◆ pointer

typedef value_type* pointer

Definition at line 156 of file dictionary.H.

◆ reference

Definition at line 159 of file dictionary.H.

Constructor & Destructor Documentation

◆ Searcher() [1/2]

Searcher ( dict_pointer  dict)
inlineprotected

Definition at line 173 of file dictionary.H.

◆ Searcher() [2/2]

Searcher ( )
inline

Definition at line 189 of file dictionary.H.

Member Function Documentation

◆ set()

void set ( pointer  eptr)
inlineprotected

Definition at line 180 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

Referenced by dictionary::csearch().

Here is the caller graph for this function:

◆ good()

bool good ( ) const
inlinenoexcept

◆ found()

bool found ( ) const
inlinenoexcept

Definition at line 203 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

◆ context()

dict_reference context ( ) const
inline

Definition at line 209 of file dictionary.H.

References dictionary::Searcher< Const >::dict_.

◆ ptr()

pointer ptr ( ) const
inlinenoexcept

◆ ref()

reference ref ( ) const
inline

Definition at line 221 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

Referenced by dictionary::lookupEntry(), and dictionary::lookupEntryCompat().

Here is the caller graph for this function:

◆ isDict()

bool isDict ( ) const
inlinenoexcept

Definition at line 227 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

Referenced by dictionary::optionalSubDict(), dictionary::set(), and dictionary::subOrEmptyDict().

Here is the caller graph for this function:

◆ dictPtr()

dict_pointer dictPtr ( ) const
inlinenoexcept

Definition at line 233 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

Referenced by dictionary::subDictOrAdd().

Here is the caller graph for this function:

◆ dict()

dict_reference dict ( ) const
inline

◆ operator const Searcher<!Const > &()

operator const Searcher<!Const > & ( ) const
inlineexplicit

Definition at line 246 of file dictionary.H.

◆ operator->()

pointer operator-> ( ) const
inlinenoexcept

Definition at line 252 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

◆ operator*()

reference operator* ( ) const
inline

Definition at line 258 of file dictionary.H.

References dictionary::Searcher< Const >::eptr_.

Member Data Documentation

◆ dictionary

friend dictionary

Definition at line 139 of file dictionary.H.

◆ dict_

dict_pointer dict_
protected

Definition at line 165 of file dictionary.H.

Referenced by dictionary::Searcher< Const >::context().

◆ eptr_

pointer eptr_
protected

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