xapian-core  1.4.26
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Xapian::DerefWrapper_< T > Class Template Reference
+ Collaboration diagram for Xapian::DerefWrapper_< T >:

Public Member Functions

 DerefWrapper_ (const T &res_)
 
const T & operator* () const
 

Private Member Functions

void operator= (const DerefWrapper_ &)
 Don't allow assignment. More...
 

Private Attributes

res
 The value. More...
 

Detailed Description

template<typename T>
class Xapian::DerefWrapper_< T >

Class which returns a value when dereferenced with operator*.

We need this wrapper class to implement input_iterator semantics for the postfix operator++ methods of some of our iterator classes.

Definition at line 38 of file derefwrapper.h.

Constructor & Destructor Documentation

◆ DerefWrapper_()

template<typename T>
Xapian::DerefWrapper_< T >::DerefWrapper_ ( const T &  res_)
inlineexplicit

Definition at line 56 of file derefwrapper.h.

Member Function Documentation

◆ operator*()

template<typename T>
const T& Xapian::DerefWrapper_< T >::operator* ( ) const
inline

Definition at line 57 of file derefwrapper.h.

References Xapian::DerefWrapper_< T >::res.

◆ operator=()

template<typename T>
void Xapian::DerefWrapper_< T >::operator= ( const DerefWrapper_< T > &  )
private

Don't allow assignment.

Member Data Documentation

◆ res

template<typename T>
T Xapian::DerefWrapper_< T >::res
private

The value.

Definition at line 48 of file derefwrapper.h.

Referenced by Xapian::DerefWrapper_< T >::operator*().


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