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

#include <ToyProducts.h>

Public Member Functions

 CompressedIntProduct ()=default
 
 CompressedIntProduct (int i)
 
CompressedIntProductoperator+= (CompressedIntProduct const &other)
 
void aggregate (CompressedIntProduct const &other)
 

Public Attributes

int value {}
 

Detailed Description

Definition at line 48 of file ToyProducts.h.

Constructor & Destructor Documentation

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

Definition at line 50 of file ToyProducts.h.

Member Function Documentation

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

Definition at line 60 of file ToyProducts.h.

61  {
62  (void)operator+=(other);
63  }
CompressedIntProduct& arttest::CompressedIntProduct::operator+= ( CompressedIntProduct const &  other)
inline

Definition at line 53 of file ToyProducts.h.

54  {
55  value += other.value;
56  return *this;
57  }

Member Data Documentation

int arttest::CompressedIntProduct::value {}

Definition at line 65 of file ToyProducts.h.


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