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

Description

Test:
proof-of-concept test for a generic hash based and typed ID struct.
  • check the various ctors
  • check default assignment works properly
  • check assumptions about memory layout
  • check equality comparison
  • extract LUID and then cast LUID back into ID
  • use the embedded hash ID (LUID) as hashtable key
See also
lib::HashIndexed::Id
mobject::Placement real world usage example

Definition at line 67 of file hash-indexed-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void checkBasicProperties ()
 
void checkLUID_passing ()
 
template<class KEY , class VAL , class HashFunc >
void buildHashtable ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 71 of file hash-indexed-test.cpp.

References HashIndexed_test::checkBasicProperties(), and HashIndexed_test::checkLUID_passing().

+ Here is the call graph for this function:

◆ checkBasicProperties()

void checkBasicProperties ( )
inlineprivate

Definition at line 83 of file hash-indexed-test.cpp.

References HashIndexed< BA, IMP >::getID().

Referenced by HashIndexed_test::run().

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

◆ checkLUID_passing()

void checkLUID_passing ( )
inlineprivate

Definition at line 109 of file hash-indexed-test.cpp.

References lumiera_uid_copy().

Referenced by HashIndexed_test::run().

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

◆ buildHashtable()

template<class KEY , class VAL , class HashFunc >
void buildHashtable ( )
inlineprivate

Definition at line 125 of file hash-indexed-test.cpp.

+ Inheritance diagram for HashIndexed_test:
+ Collaboration diagram for HashIndexed_test:

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