proxygen
folly::f14::Tracked< Tag > Struct Template Reference

#include <F14TestUtil.h>

Public Member Functions

 Tracked ()
 
 Tracked (uint64_t const &val)
 
 Tracked (uint64_t &&val)
 
 Tracked (Tracked const &rhs)
 
 Tracked (Tracked &&rhs) noexcept
 
Trackedoperator= (Tracked const &rhs)
 
Trackedoperator= (Tracked &&rhs) noexcept
 
template<int T>
 Tracked (Tracked< T > const &rhs)
 
template<int T>
 Tracked (Tracked< T > &&rhs)
 
 ~Tracked ()
 
bool operator== (Tracked const &rhs) const
 
bool operator!= (Tracked const &rhs) const
 
template<>
thread_local Counts counts
 
template<>
thread_local Counts counts
 
template<>
thread_local Counts counts
 
template<>
thread_local Counts counts
 
template<>
thread_local Counts counts
 
template<>
thread_local Counts counts
 

Public Attributes

uint64_t val_
 

Static Public Attributes

static thread_local Counts counts
 

Detailed Description

template<int Tag>
struct folly::f14::Tracked< Tag >

Definition at line 215 of file F14TestUtil.h.

Constructor & Destructor Documentation

template<int Tag>
folly::f14::Tracked< Tag >::Tracked ( )
inline

Definition at line 222 of file F14TestUtil.h.

222  : val_{0} {
225  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
uint64_t defaultConstruct
Definition: F14TestUtil.h:129
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
folly::f14::Tracked< Tag >::Tracked ( uint64_t const &  val)
inline

Definition at line 226 of file F14TestUtil.h.

226  : val_{val} {
229  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
double val
Definition: String.cpp:273
uint64_t copyConvert
Definition: F14TestUtil.h:125
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
folly::f14::Tracked< Tag >::Tracked ( uint64_t &&  val)
inline

Definition at line 230 of file F14TestUtil.h.

230  : val_{val} {
233  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
double val
Definition: String.cpp:273
uint64_t moveConvert
Definition: F14TestUtil.h:126
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
folly::f14::Tracked< Tag >::Tracked ( Tracked< Tag > const &  rhs)
inline

Definition at line 234 of file F14TestUtil.h.

234  : val_{rhs.val_} {
237  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
uint64_t copyConstruct
Definition: F14TestUtil.h:123
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
folly::f14::Tracked< Tag >::Tracked ( Tracked< Tag > &&  rhs)
inlinenoexcept

Definition at line 238 of file F14TestUtil.h.

238  : val_{rhs.val_} {
241  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
uint64_t moveConstruct
Definition: F14TestUtil.h:124
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
template<int T>
folly::f14::Tracked< Tag >::Tracked ( Tracked< T > const &  rhs)
inline

Definition at line 256 of file F14TestUtil.h.

256  : val_{rhs.val_} {
259  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
uint64_t copyConvert
Definition: F14TestUtil.h:125
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
template<int T>
folly::f14::Tracked< Tag >::Tracked ( Tracked< T > &&  rhs)
inline

Definition at line 262 of file F14TestUtil.h.

262  : val_{rhs.val_} {
265  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
uint64_t moveConvert
Definition: F14TestUtil.h:126
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
folly::f14::Tracked< Tag >::~Tracked ( )
inline

Definition at line 267 of file F14TestUtil.h.

267  {
269  counts.destroyed++;
270  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
thread_local Counts counts
Definition: F14TestUtil.h:310

Member Function Documentation

template<>
thread_local Counts folly::f14::Tracked< 0 >::counts ( )

Definition at line 310 of file F14TestUtil.h.

template<>
thread_local Counts folly::f14::Tracked< 1 >::counts ( )

Definition at line 312 of file F14TestUtil.h.

template<>
thread_local Counts folly::f14::Tracked< 2 >::counts ( )

Definition at line 314 of file F14TestUtil.h.

template<>
thread_local Counts folly::f14::Tracked< 3 >::counts ( )

Definition at line 316 of file F14TestUtil.h.

template<>
thread_local Counts folly::f14::Tracked< 4 >::counts ( )

Definition at line 318 of file F14TestUtil.h.

template<>
thread_local Counts folly::f14::Tracked< 5 >::counts ( )

Definition at line 320 of file F14TestUtil.h.

template<int Tag>
bool folly::f14::Tracked< Tag >::operator!= ( Tracked< Tag > const &  rhs) const
inline

Definition at line 275 of file F14TestUtil.h.

275  {
276  return !(*this == rhs);
277  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
template<int Tag>
Tracked& folly::f14::Tracked< Tag >::operator= ( Tracked< Tag > const &  rhs)
inline

Definition at line 242 of file F14TestUtil.h.

242  {
243  val_ = rhs.val_;
245  counts.copyAssign++;
246  return *this;
247  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
Tracked& folly::f14::Tracked< Tag >::operator= ( Tracked< Tag > &&  rhs)
inlinenoexcept

Definition at line 248 of file F14TestUtil.h.

248  {
249  val_ = rhs.val_;
251  counts.moveAssign++;
252  return *this;
253  }
thread_local Counts sumCounts
Definition: F14TestUtil.h:212
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649
thread_local Counts counts
Definition: F14TestUtil.h:310
template<int Tag>
bool folly::f14::Tracked< Tag >::operator== ( Tracked< Tag > const &  rhs) const
inline

Definition at line 272 of file F14TestUtil.h.

272  {
273  return val_ == rhs.val_;
274  }
FOLLY_PUSH_WARNING RHS rhs
Definition: Traits.h:649

Member Data Documentation

template<int Tag>
thread_local Counts folly::f14::Tracked< Tag >::counts
static

Definition at line 216 of file F14TestUtil.h.


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