C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::NAuth::IServiceTicketAuthPtrWrapper Struct Reference

#include <tvm.h>

Public Member Functions

template<class T, class = typename std::enable_if_t<std::is_convertible_v<T*, IServiceTicketAuth*>>>
 IServiceTicketAuthPtrWrapper (const TIntrusivePtr< T > ptr)

Public Attributes

NYT::TIntrusivePtr< IServiceTicketAuth > Ptr
 Wrapped pointer.

Detailed Description

This wrapper is required because NYT::NAuth::IServiceTicketAuthPtr is NYT::TIntrusivePtr, and, if we used this pointer in interfaces of mapreduce/yt client, a lot of users of this library could get unexpected build errors that TIntrusivePtr is ambiguous (from :: namespace and from NYT:: namespace). So we use this wrapper in our interfaces to avoid such problems for users.

Constructor & Destructor Documentation

◆ IServiceTicketAuthPtrWrapper()

template<class T, class = typename std::enable_if_t<std::is_convertible_v<T*, IServiceTicketAuth*>>>
NYT::NAuth::IServiceTicketAuthPtrWrapper::IServiceTicketAuthPtrWrapper ( const TIntrusivePtr< T > ptr)
inline

Construct wrapper from NYT::TIntrusivePtr

This constructor is implicit so users can transparently pass NYT::TIntrusivePtr to the functions of mapreduce/yt client.


The documentation for this struct was generated from the following file:
  • yt/cpp/mapreduce/interface/tvm.h