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

#include <ToyProducts.h>

Inheritance diagram for arttest::Simple:
arttest::SimpleDerived

Public Types

typedef int key_type
 

Public Member Functions

 Simple ()=default
 
virtual ~Simple () noexcept=default
 
key_type id () const
 
virtual double dummy () const
 
virtual Simpleclone () const
 

Public Attributes

key_type key {}
 
double value {}
 

Detailed Description

Definition at line 137 of file ToyProducts.h.

Member Typedef Documentation

Definition at line 141 of file ToyProducts.h.

Constructor & Destructor Documentation

arttest::Simple::Simple ( )
default
virtual arttest::Simple::~Simple ( )
virtualdefaultnoexcept

Member Function Documentation

virtual Simple* arttest::Simple::clone ( ) const
inlinevirtual

Reimplemented in arttest::SimpleDerived.

Definition at line 157 of file ToyProducts.h.

158  {
159  return new Simple(*this);
160  }
Simple()=default
virtual double arttest::Simple::dummy ( ) const
inlinevirtual

Reimplemented in arttest::SimpleDerived.

Definition at line 152 of file ToyProducts.h.

153  {
154  return -3.14;
155  }
key_type arttest::Simple::id ( ) const
inline

Definition at line 147 of file ToyProducts.h.

148  {
149  return key;
150  }

Member Data Documentation

key_type arttest::Simple::key {}

Definition at line 143 of file ToyProducts.h.

double arttest::Simple::value {}

Definition at line 144 of file ToyProducts.h.


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