xapian-core  1.4.25
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

 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_)

Definition at line 56 of file derefwrapper.h.

Member Function Documentation

◆ operator*()

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

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 > &  )

Don't allow assignment.

Member Data Documentation

◆ res

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

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: