proxygen
folly::dynamicconverter_detail::Transformer< T, It > Class Template Reference

#include <DynamicConverter.h>

Inheritance diagram for folly::dynamicconverter_detail::Transformer< T, It >:

Public Member Functions

 Transformer (const It &it)
 

Private Types

typedef T::value_type ttype
 

Private Member Functions

void increment ()
 
ttypedereference () const
 

Private Attributes

Optional< ttypecache_
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename T, typename It>
class folly::dynamicconverter_detail::Transformer< T, It >

Definition at line 141 of file DynamicConverter.h.

Member Typedef Documentation

template<typename T , typename It >
typedef T::value_type folly::dynamicconverter_detail::Transformer< T, It >::ttype
private

Definition at line 146 of file DynamicConverter.h.

Constructor & Destructor Documentation

template<typename T , typename It >
folly::dynamicconverter_detail::Transformer< T, It >::Transformer ( const It &  it)
inlineexplicit

Definition at line 163 of file DynamicConverter.h.

163 : Transformer::iterator_adaptor_(it) {}

Member Function Documentation

template<typename T , typename It >
ttype& folly::dynamicconverter_detail::Transformer< T, It >::dereference ( ) const
inlineprivate

Definition at line 155 of file DynamicConverter.h.

References folly::dynamicconverter_detail::Dereferencer< T >::derefToCache(), and folly::Optional< Value >::value().

155  {
156  if (!cache_) {
157  Dereferencer<ttype>::derefToCache(&cache_, this->base_reference());
158  }
159  return cache_.value();
160  }
static void derefToCache(Optional< T > *, const dynamic::const_item_iterator &)
FOLLY_CPP14_CONSTEXPR const Value & value() const &
Definition: Optional.h:268
template<typename T , typename It >
void folly::dynamicconverter_detail::Transformer< T, It >::increment ( )
inlineprivate

Definition at line 150 of file DynamicConverter.h.

References folly::none.

150  {
151  ++this->base_reference();
152  cache_ = none;
153  }
constexpr None none
Definition: Optional.h:87

Friends And Related Function Documentation

template<typename T , typename It >
friend class boost::iterator_core_access
friend

Definition at line 144 of file DynamicConverter.h.

Member Data Documentation

template<typename T , typename It >
Optional<ttype> folly::dynamicconverter_detail::Transformer< T, It >::cache_
mutableprivate

Definition at line 148 of file DynamicConverter.h.


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