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

Description

Test:
ScopedHolder and ScopedPtrHolder are initially empty and copyable.

After taking ownership, they prohibit copy operations, manage the lifecycle of the contained object and provide smart-ptr like access. A series of identical tests is conducted both with the ScopedPtrHolder (the contained objects are heap allocated but managed by the holder) and with the ScopedHolder (objects placed inline)

Definition at line 62 of file scoped-holder-test.cpp.

Private Member Functions

template<class HO >
void checkAllocation ()
 
template<class HO >
void checkCopyProtocol ()
 
template<class HO >
void checkErrorHandling ()
 
template<class HO >
void checkSTLContainer ()
 
void create_contained_object (HolderD &holder)
 
void create_contained_object (PtrHolderD &holder)
 
virtual void run (Arg)
 

Member Function Documentation

◆ checkSTLContainer()

void checkSTLContainer ( )
inlineprivate
Test:
collection of noncopyable objects maintained within a STL map

Definition at line 203 of file scoped-holder-test.cpp.

+ Inheritance diagram for ScopedHolder_test:
+ Collaboration diagram for ScopedHolder_test:

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