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

#include <ToyProducts.h>

Public Member Functions

 IntProduct ()=default
 
 IntProduct (int i)
 
IntProductoperator+= (IntProduct const &other)
 
void aggregate (IntProduct const &other)
 

Public Attributes

int value {}
 

Detailed Description

Definition at line 28 of file ToyProducts.h.

Constructor & Destructor Documentation

arttest::IntProduct::IntProduct ( )
default
arttest::IntProduct::IntProduct ( int  i)
inlineexplicit

Definition at line 30 of file ToyProducts.h.

30 : value(i) {}

Member Function Documentation

void arttest::IntProduct::aggregate ( IntProduct const &  other)
inline

Definition at line 40 of file ToyProducts.h.

41  {
42  (void)operator+=(other);
43  }
IntProduct& arttest::IntProduct::operator+= ( IntProduct const &  other)
inline

Definition at line 33 of file ToyProducts.h.

34  {
35  value += other.value;
36  return *this;
37  }

Member Data Documentation

int arttest::IntProduct::value {}

Definition at line 45 of file ToyProducts.h.


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