Public Member Functions | Public Attributes | List of all members
arttest::PtrToNonPersistable Struct Reference

#include <ToyProducts.h>

Public Member Functions

 PtrToNonPersistable ()=default
 
 PtrToNonPersistable (std::string const &n)
 
 PtrToNonPersistable (PtrToNonPersistable const &)=delete
 
PtrToNonPersistableoperator= (PtrToNonPersistable const &)=delete
 
 PtrToNonPersistable (PtrToNonPersistable &&rhs)
 
PtrToNonPersistableoperator= (PtrToNonPersistable &&rhs)
 
 ~PtrToNonPersistable () noexcept
 

Public Attributes

NonPersistable const * np {nullptr}
 

Detailed Description

Definition at line 261 of file ToyProducts.h.

Constructor & Destructor Documentation

arttest::PtrToNonPersistable::PtrToNonPersistable ( )
explicitdefault
arttest::PtrToNonPersistable::PtrToNonPersistable ( std::string const &  n)
inlineexplicit

Definition at line 264 of file ToyProducts.h.

265  : np{new NonPersistable{n}}
266  {}
NonPersistable const * np
Definition: ToyProducts.h:292
std::void_t< T > n
arttest::PtrToNonPersistable::PtrToNonPersistable ( PtrToNonPersistable const &  )
delete
arttest::PtrToNonPersistable::PtrToNonPersistable ( PtrToNonPersistable &&  rhs)
inline

Definition at line 273 of file ToyProducts.h.

273  : np{rhs.np}
274  {
275  rhs.np = nullptr;
276  }
NonPersistable const * np
Definition: ToyProducts.h:292
arttest::PtrToNonPersistable::~PtrToNonPersistable ( )
inlinenoexcept

Definition at line 286 of file ToyProducts.h.

287  {
288  delete np;
289  np = nullptr;
290  }
NonPersistable const * np
Definition: ToyProducts.h:292

Member Function Documentation

PtrToNonPersistable& arttest::PtrToNonPersistable::operator= ( PtrToNonPersistable const &  )
delete
PtrToNonPersistable& arttest::PtrToNonPersistable::operator= ( PtrToNonPersistable &&  rhs)
inline

Definition at line 279 of file ToyProducts.h.

280  {
281  np = rhs.np;
282  rhs.np = nullptr;
283  return *this;
284  }
NonPersistable const * np
Definition: ToyProducts.h:292

Member Data Documentation

NonPersistable const* arttest::PtrToNonPersistable::np {nullptr}

Definition at line 292 of file ToyProducts.h.


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