proxygen
folly::gen::detail::Unsplit< Delimiter, Output > Class Template Reference

#include <String-inl.h>

Inheritance diagram for folly::gen::detail::Unsplit< Delimiter, Output >:
folly::gen::Operator< Unsplit< Delimiter, Output > > folly::gen::FBounded< Self >

Public Member Functions

 Unsplit (const Delimiter &delimiter)
 
template<class Source , class Value >
Output compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::Operator< Unsplit< Delimiter, Output > >
ResultGen compose (const GenImpl< Value, Source > &source) const
 
- Public Member Functions inherited from folly::gen::FBounded< Self >
const Self & self () const
 
Self & self ()
 

Private Attributes

Delimiter delimiter_
 

Additional Inherited Members

- Protected Member Functions inherited from folly::gen::Operator< Unsplit< Delimiter, Output > >
 Operator ()=default
 
 Operator (Operator &&) noexcept=default
 
 Operator (const Operator &)=default
 
Operatoroperator= (Operator &&) noexcept=default
 
Operatoroperator= (const Operator &)=default
 

Detailed Description

template<class Delimiter, class Output>
class folly::gen::detail::Unsplit< Delimiter, Output >

Unsplit - For joining tokens from a generator into a string. This is the inverse of split above.

This type is primarily used through the 'unsplit' function.

Definition at line 304 of file String-inl.h.

Constructor & Destructor Documentation

template<class Delimiter , class Output >
folly::gen::detail::Unsplit< Delimiter, Output >::Unsplit ( const Delimiter delimiter)
inlineexplicit

Definition at line 308 of file String-inl.h.

308 : delimiter_(delimiter) {}

Member Function Documentation

template<class Delimiter , class Output >
template<class Source , class Value >
Output folly::gen::detail::Unsplit< Delimiter, Output >::compose ( const GenImpl< Value, Source > &  source) const
inline

Definition at line 311 of file String-inl.h.

References folly::gen::detail::UnsplitBuffer< Delimiter, OutputBuffer >::compose().

311  {
312  Output outputBuffer;
313  UnsplitBuffer<Delimiter, Output> unsplitter(delimiter_, &outputBuffer);
314  unsplitter.compose(source);
315  return outputBuffer;
316  }

Member Data Documentation

template<class Delimiter , class Output >
Delimiter folly::gen::detail::Unsplit< Delimiter, Output >::delimiter_
private

Definition at line 305 of file String-inl.h.


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