C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TFluentYsonBuilder::TFluentFragmentBase< TThis, TParent > Class Template Reference

Base class for fluent adapters for fragment of list, map or attributes. More...

#include <fluent.h>

Inheritance diagram for NYT::TFluentYsonBuilder::TFluentFragmentBase< TThis, TParent >:
NYT::TFluentYsonBuilder::TFluentBase< TParent > NYT::TFluentYsonBuilder::TAttributes< TParent > NYT::TFluentYsonBuilder::TListType< TParent > NYT::TFluentYsonBuilder::TMapType< TParent >

Public Types

using TDeepThis = TThis<TParent>
using TShallowThis = TThis<TFluentYsonVoid>
using TUnwrappedParent = typename TFluentYsonUnwrapper<TParent>::TUnwrapped

Public Member Functions

 TFluentFragmentBase (NYT::NYson::IYsonConsumer *consumer, TParent parent=TParent())
template<class TFunc>
TDeepThis & Do (const TFunc &func)
 Delegate invocation to a separate procedure.
template<class TFunc>
TDeepThis & DoIf (bool condition, const TFunc &func)
 Conditionally delegate invocation to a separate procedure.
template<class TFunc, class TIterator>
TDeepThis & DoFor (const TIterator &begin, const TIterator &end, const TFunc &func)
 Calls func(*this, element) for each element in range [begin, end).
template<class TFunc, class TCollection>
TDeepThis & DoFor (const TCollection &collection, const TFunc &func)
 Calls func(*this, element) for each element in collection.
Public Member Functions inherited from NYT::TFluentYsonBuilder::TFluentBase< TParent >
 operator NYT::NYson::IYsonConsumer * () const
 Implicit conversion to yson consumer.

Detailed Description

template<template< class TParent > class TThis, class TParent>
class NYT::TFluentYsonBuilder::TFluentFragmentBase< TThis, TParent >

Base class for fluent adapters for fragment of list, map or attributes.


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