Lumiera  0.pre.03
»edit your freedom«
Num< i > Class Template Reference

Description

template<uint i>
class lib::test::anonymous_namespace{several-builder-test.cpp}::Num< i >

Instance tracking sub-dummy.

  • implements the Dummy interface
  • holds additional storage
  • specific implementation of the virtual operation
  • includes content of the additional storage into the checksum calculation, allowing to detect memory corruption

Definition at line 59 of file several-builder-test.cpp.

Public Member Functions

 Num (uint seed=i)
 
 Num (Num &&oNum) noexcept
 allow for move construction
 
long calc (int ii) override
 a dummy API operation
 
Numoperator= (Num &&oNum)
 
- Public Member Functions inherited from Dummy
 Dummy (int v)
 
 Dummy (Dummy &&oDummy) noexcept
 
int getVal () const
 
Dummyoperator= (Dummy &&oDummy)
 
void setVal (int newVal)
 

Friends

void swap (Num &num1, Num &num2)
 

Private Attributes

std::array< int, i > ext_
 

Additional Inherited Members

- Static Public Member Functions inherited from Dummy
static void activateCtorFailure (bool indeed=true)
 
static long & checksum ()
 

Friends And Related Function Documentation

◆ swap

void swap ( Num< i > &  num1,
Num< i > &  num2 
)
friend
Parameters
num2checksum neutral

Definition at line 97 of file several-builder-test.cpp.

+ Inheritance diagram for Num< i >:
+ Collaboration diagram for Num< i >:

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