proxygen
folly::detail::TypeDescriptor Class Reference

#include <Singleton.h>

Public Member Functions

 TypeDescriptor (const std::type_info &ti, const std::type_info &tag_ti)
 
 TypeDescriptor (const TypeDescriptor &other)
 
TypeDescriptoroperator= (const TypeDescriptor &other)
 
std::string name () const
 
bool operator== (const TypeDescriptor &other) const
 

Private Attributes

std::type_index ti_
 
std::type_index tag_ti_
 

Friends

class TypeDescriptorHasher
 

Detailed Description

Definition at line 189 of file Singleton.h.

Constructor & Destructor Documentation

folly::detail::TypeDescriptor::TypeDescriptor ( const std::type_info &  ti,
const std::type_info &  tag_ti 
)
inline

Definition at line 191 of file Singleton.h.

192  : ti_(ti), tag_ti_(tag_ti) {}
folly::detail::TypeDescriptor::TypeDescriptor ( const TypeDescriptor other)
inline

Definition at line 194 of file Singleton.h.

195  : ti_(other.ti_), tag_ti_(other.tag_ti_) {}

Member Function Documentation

TypeDescriptor& folly::detail::TypeDescriptor::operator= ( const TypeDescriptor other)
inline

Definition at line 197 of file Singleton.h.

References name(), string, tag_ti_, and ti_.

Referenced by folly::LeakySingleton< T, Tag >::Entry::Entry().

197  {
198  if (this != &other) {
199  ti_ = other.ti_;
200  tag_ti_ = other.tag_ti_;
201  }
202 
203  return *this;
204  }
bool folly::detail::TypeDescriptor::operator== ( const TypeDescriptor other) const
inline

Definition at line 210 of file Singleton.h.

References tag_ti_, and ti_.

210  {
211  return ti_ == other.ti_ && tag_ti_ == other.tag_ti_;
212  }

Friends And Related Function Documentation

friend class TypeDescriptorHasher
friend

Definition at line 208 of file Singleton.h.

Member Data Documentation

std::type_index folly::detail::TypeDescriptor::tag_ti_
private
std::type_index folly::detail::TypeDescriptor::ti_
private

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