Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
CustomSharedPtr_test Class Reference

Description

Test:
assure correct behaviour of lumiera's custom shared-ptr, including ADL of operators, shared ownership, typing and ordering
See also
lumiera::P

Definition at line 63 of file custom-shared-ptr-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void check_refcounting ()
 
void check_shared_ownership ()
 
void check_ownership_transfer ()
 
void check_type_relations ()
 
void check_ordering ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 66 of file custom-shared-ptr-test.cpp.

References CustomSharedPtr_test::check_ordering(), CustomSharedPtr_test::check_ownership_transfer(), CustomSharedPtr_test::check_refcounting(), CustomSharedPtr_test::check_shared_ownership(), and CustomSharedPtr_test::check_type_relations().

+ Here is the call graph for this function:

◆ check_refcounting()

void check_refcounting ( )
inlineprivate
Test:
smart-ptr basic behaviour

Definition at line 78 of file custom-shared-ptr-test.cpp.

References P< TAR, BASE >::swap().

Referenced by CustomSharedPtr_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_shared_ownership()

void check_shared_ownership ( )
inlineprivate
Test:
cooperation with other shared-ptr types

Definition at line 109 of file custom-shared-ptr-test.cpp.

References P< TAR, BASE >::swap().

Referenced by CustomSharedPtr_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_ownership_transfer()

void check_ownership_transfer ( )
inlineprivate

Definition at line 158 of file custom-shared-ptr-test.cpp.

Referenced by CustomSharedPtr_test::run().

+ Here is the caller graph for this function:

◆ check_type_relations()

void check_type_relations ( )
inlineprivate
Test:
building type relationships on smart-ptrs

Definition at line 173 of file custom-shared-ptr-test.cpp.

References P< TAR, BASE >::get(), and INSTANCEOF.

Referenced by CustomSharedPtr_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_ordering()

void check_ordering ( )
inlineprivate
Test:
equality and ordering operators forwarded to pointee

Definition at line 237 of file custom-shared-ptr-test.cpp.

References VERIFY_ERROR.

Referenced by CustomSharedPtr_test::run().

+ Here is the caller graph for this function:
+ Inheritance diagram for CustomSharedPtr_test:
+ Collaboration diagram for CustomSharedPtr_test:

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