proxygen
Lifecycle< R > Struct Template Reference

Public Types

typedef R IsRelocatable
 

Public Member Functions

 Lifecycle () noexcept
 
 Lifecycle (int, char const *) noexcept
 
 Lifecycle (const Lifecycle &) noexcept
 
 Lifecycle (Lifecycle &&) noexcept
 
Lifecycleoperator= (const Lifecycle &) noexcept
 
Lifecycleoperator= (Lifecycle &&) noexcept
 
 ~Lifecycle () noexcept
 

Public Attributes

bool constructed
 

Detailed Description

template<typename R>
struct Lifecycle< R >

Definition at line 932 of file MPMCQueueTest.cpp.

Member Typedef Documentation

template<typename R>
typedef R Lifecycle< R >::IsRelocatable

Definition at line 933 of file MPMCQueueTest.cpp.

Constructor & Destructor Documentation

template<typename R>
Lifecycle< R >::Lifecycle ( )
inlinenoexcept

Definition at line 937 of file MPMCQueueTest.cpp.

References DEFAULT_CONSTRUCTOR, and lc_counts.

937  : constructed(true) {
939  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
template<typename R>
Lifecycle< R >::Lifecycle ( int  ,
char const *   
)
inlineexplicitnoexcept

Definition at line 941 of file MPMCQueueTest.cpp.

References lc_counts, and TWO_ARG_CONSTRUCTOR.

942  : constructed(true) {
944  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
template<typename R>
Lifecycle< R >::Lifecycle ( const Lifecycle< R > &  )
inlinenoexcept

Definition at line 946 of file MPMCQueueTest.cpp.

References COPY_CONSTRUCTOR, and lc_counts.

946  : constructed(true) {
948  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
template<typename R>
Lifecycle< R >::Lifecycle ( Lifecycle< R > &&  )
inlinenoexcept

Definition at line 950 of file MPMCQueueTest.cpp.

References lc_counts, and MOVE_CONSTRUCTOR.

950  : constructed(true) {
952  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
template<typename R>
Lifecycle< R >::~Lifecycle ( )
inlinenoexcept

Definition at line 964 of file MPMCQueueTest.cpp.

References DESTRUCTOR, lc_counts, and lc_outstanding().

964  {
966  assert(lc_outstanding() >= 0);
967  assert(constructed);
968  constructed = false;
969  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
static int lc_outstanding()

Member Function Documentation

template<typename R>
Lifecycle& Lifecycle< R >::operator= ( const Lifecycle< R > &  )
inlinenoexcept

Definition at line 954 of file MPMCQueueTest.cpp.

References COPY_OPERATOR, and lc_counts.

954  {
956  return *this;
957  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]
template<typename R>
Lifecycle& Lifecycle< R >::operator= ( Lifecycle< R > &&  )
inlinenoexcept

Definition at line 959 of file MPMCQueueTest.cpp.

References lc_counts, and MOVE_OPERATOR.

959  {
961  return *this;
962  }
static FOLLY_TLS int lc_counts[MAX_LIFECYCLE_EVENT]

Member Data Documentation

template<typename R>
bool Lifecycle< R >::constructed

Definition at line 935 of file MPMCQueueTest.cpp.


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