Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
DefsRegistryImpl_test Class Reference

Description

Test:
build an registry table (just for this test) configured for some artificial test Types. Register some entries and verify the intended behaviour of the storage structure.
See also
DefsManagerImpl_test for checking the implementation details in the actual context used in Lumiera.

Definition at line 97 of file defs-registry-impl-test.cpp.

Public Member Functions

 DefsRegistryImpl_test ()
 
virtual void run (Arg)
 
void fill_table ()
 
void check_query ()
 
void check_remove ()
 

Private Types

typedef P< Dummy< 13 > > Obj
 
typedef P< Dummy< 23 > > Pra
 
typedef Query< Dummy< 13 > > Q13
 
typedef Query< Dummy< 23 > > Q23
 
typedef DefsRegistry::Iter< Dummy< 13 > > Iter13
 
typedef DefsRegistry::Iter< Dummy< 23 > > Iter23
 

Private Attributes

unique_ptr< DefsRegistryreg_
 
Obj o1
 
Obj o2
 
Obj o3
 
Q13 q1
 
Q13 q2
 
Q13 q3
 
Q13 q4
 
Q13 q5
 
map< QueryKey, Praps
 

Constructor & Destructor Documentation

◆ DefsRegistryImpl_test()

Definition at line 117 of file defs-registry-impl-test.cpp.

Member Typedef Documentation

◆ Obj

typedef P<Dummy<13> > Obj
private

Definition at line 101 of file defs-registry-impl-test.cpp.

◆ Pra

typedef P<Dummy<23> > Pra
private

Definition at line 102 of file defs-registry-impl-test.cpp.

◆ Q13

typedef Query<Dummy<13> > Q13
private

Definition at line 104 of file defs-registry-impl-test.cpp.

◆ Q23

typedef Query<Dummy<23> > Q23
private

Definition at line 105 of file defs-registry-impl-test.cpp.

◆ Iter13

typedef DefsRegistry::Iter<Dummy<13> > Iter13
private

Definition at line 107 of file defs-registry-impl-test.cpp.

◆ Iter23

typedef DefsRegistry::Iter<Dummy<23> > Iter23
private

Definition at line 108 of file defs-registry-impl-test.cpp.

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlinevirtual

Definition at line 130 of file defs-registry-impl-test.cpp.

References DefsRegistryImpl_test::check_query(), DefsRegistryImpl_test::check_remove(), and DefsRegistryImpl_test::fill_table().

+ Here is the call graph for this function:

◆ fill_table()

void fill_table ( )
inline

Definition at line 144 of file defs-registry-impl-test.cpp.

References QueryKey::getQueryString(), DefsRegistryImpl_test::o1, DefsRegistryImpl_test::o2, DefsRegistryImpl_test::o3, DefsRegistryImpl_test::ps, DefsRegistryImpl_test::q1, DefsRegistryImpl_test::q2, DefsRegistryImpl_test::q3, DefsRegistryImpl_test::q4, DefsRegistryImpl_test::q5, and DefsRegistryImpl_test::reg_.

Referenced by DefsRegistryImpl_test::run().

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

◆ check_query()

void check_query ( )
inline

Definition at line 172 of file defs-registry-impl-test.cpp.

References QueryKey::degree(), DefsRegistry::Iter< TAR >::hasNext(), DefsRegistryImpl_test::o1, DefsRegistryImpl_test::o2, DefsRegistryImpl_test::o3, DefsRegistryImpl_test::ps, DefsRegistryImpl_test::q2, and DefsRegistryImpl_test::reg_.

Referenced by DefsRegistryImpl_test::run().

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

◆ check_remove()

void check_remove ( )
inline

Definition at line 229 of file defs-registry-impl-test.cpp.

References DefsRegistry::Iter< TAR >::hasNext(), DefsRegistryImpl_test::o1, DefsRegistryImpl_test::o2, DefsRegistryImpl_test::o3, DefsRegistryImpl_test::q2, DefsRegistryImpl_test::q4, DefsRegistryImpl_test::q5, and DefsRegistryImpl_test::reg_.

Referenced by DefsRegistryImpl_test::run().

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

Member Data Documentation

◆ reg_

◆ o1

◆ o2

◆ o3

◆ q1

Q13 q1
private

Definition at line 113 of file defs-registry-impl-test.cpp.

Referenced by DefsRegistryImpl_test::fill_table().

◆ q2

◆ q3

Q13 q3
private

Definition at line 113 of file defs-registry-impl-test.cpp.

Referenced by DefsRegistryImpl_test::fill_table().

◆ q4

◆ q5

◆ ps

+ Inheritance diagram for DefsRegistryImpl_test:
+ Collaboration diagram for DefsRegistryImpl_test:

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