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

Description

Test:
verify calculation and relations of Buffer metadata type keys. These are used internally within the standard implementation of BufferProvider to keep track of various kinds of buffers, to provide a service for attaching metadata, e.g. a state flag. These metadata key entries are based on chained hash values, thus forming sort-of a "type" hierarchy.
  • the actual BufferProvider instance-ID is the top level
  • second level is the size of the buffer required
  • optionally, custom ctor/dtor functions can be registered
  • also optionally, implementation might attach an private-ID

Definition at line 155 of file buffer-metadata-key-test.cpp.

Private Member Functions

virtual void run (Arg)
 
bool ensure_proper_fixture ()
 
void buildSimpleKeys ()
 
void verifyChainedHashes ()
 
template<size_t SIZ>
void verifyTypeHandler ()
 
void verifyTypeSpecialisation ()
 

Private Attributes

size_t SIZE_A {0}
 
size_t SIZE_B {0}
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 162 of file buffer-metadata-key-test.cpp.

References BufferMetadataKey_test::buildSimpleKeys(), BufferMetadataKey_test::ensure_proper_fixture(), BufferMetadataKey_test::SIZE_A, BufferMetadataKey_test::SIZE_B, BufferMetadataKey_test::verifyChainedHashes(), and BufferMetadataKey_test::verifyTypeSpecialisation().

+ Here is the call graph for this function:

◆ ensure_proper_fixture()

bool ensure_proper_fixture ( )
inlineprivate

Definition at line 177 of file buffer-metadata-key-test.cpp.

References BufferMetadataKey_test::SIZE_A, and BufferMetadataKey_test::SIZE_B.

Referenced by BufferMetadataKey_test::run().

+ Here is the caller graph for this function:

◆ buildSimpleKeys()

void buildSimpleKeys ( )
inlineprivate

Definition at line 184 of file buffer-metadata-key-test.cpp.

References BufferMetadataKey_test::SIZE_A, and BufferMetadataKey_test::SIZE_B.

Referenced by BufferMetadataKey_test::run().

+ Here is the caller graph for this function:

◆ verifyChainedHashes()

void verifyChainedHashes ( )
inlineprivate

Definition at line 198 of file buffer-metadata-key-test.cpp.

References BufferMetadataKey_test::SIZE_A, and BufferMetadataKey_test::SIZE_B.

Referenced by BufferMetadataKey_test::run().

+ Here is the caller graph for this function:

◆ verifyTypeHandler()

template<size_t SIZ>
void verifyTypeHandler ( )
inlineprivate

Definition at line 225 of file buffer-metadata-key-test.cpp.

References TypeHandler::createAttached, TypeHandler::destroyAttached, and TypeHandler::isValid().

+ Here is the call graph for this function:

◆ verifyTypeSpecialisation()

void verifyTypeSpecialisation ( )
inlineprivate

Definition at line 246 of file buffer-metadata-key-test.cpp.

References TypeHandler::RAW, BufferMetadataKey_test::SIZE_A, BufferMetadataKey_test::SIZE_B, and LocalTag::UNKNOWN.

Referenced by BufferMetadataKey_test::run().

+ Here is the caller graph for this function:

Member Data Documentation

◆ SIZE_A

◆ SIZE_B

+ Inheritance diagram for BufferMetadataKey_test:
+ Collaboration diagram for BufferMetadataKey_test:

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