Lumiera  0.pre.03
»edit your freedom«
ReplaceableItem_test Class Reference

Description

Test:
scrutinise an adapter to snapshot non-assignable values.
  • create instantiations for various types
  • both assignable and non-assignable types
  • empty-construct and copy construct the adapter
  • perform assignments and even content swapping
  • use counting to verify proper instance management
  • compare by delegating to element comparison
See also
replaceable-item.hpp
steam::control::MementoTie

Definition at line 97 of file replaceable-item-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verifyNonComparableElements ()
 
void verifyOnlyMoveConstructible ()
 
void verifySaneInstanceHandling ()
 
template<typename X , typename Y >
void verifyUsage (X she, Y he)
 
void verifyWrappedPtr ()
 

Member Function Documentation

◆ verifySaneInstanceHandling()

void verifySaneInstanceHandling ( )
inlineprivate
Test:
verify that ctor and dtor calls are balanced, even when assigning and self-assigning.
Note
Tracker uses the simple implementation for assignable values, while NonAssign uses the embedded-buffer implementation

Definition at line 191 of file replaceable-item-test.cpp.

◆ verifyWrappedPtr()

void verifyWrappedPtr ( )
inlineprivate
Test:
verify especially that we can handle and re-"assign" an embedded pointer

Definition at line 217 of file replaceable-item-test.cpp.

◆ verifyNonComparableElements()

void verifyNonComparableElements ( )
inlineprivate
Test:
verify we can handle elements without comparison operator

Definition at line 238 of file replaceable-item-test.cpp.

◆ verifyOnlyMoveConstructible()

void verifyOnlyMoveConstructible ( )
inlineprivate
Test:
handle elements that allow nothing but move construction
Todo:
conceptually, the whole point of this container is the ability to snapshot elements which allow nothing but move construction.

Seemingly, GCC-4.9 does not fully implement perfect forwarding ///////////////////////TICKET #1059 : re-visit with never compiler

Definition at line 267 of file replaceable-item-test.cpp.

+ Inheritance diagram for ReplaceableItem_test:
+ Collaboration diagram for ReplaceableItem_test:

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