![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "steam/engine/tracking-heap-block-provider.hpp"
Helper for implementing a diagnostic BufferProvider: A block of heap allocated storage, with the capability to store some additional tracking information.
Definition at line 64 of file tracking-heap-block-provider.hpp.
Public Member Functions | |
| Block (size_t bufferSize) | |
| bool | was_used () const |
| bool | was_closed () const |
| void * | accessMemory () const |
| void | markReleased () |
Private Attributes | |
| unique_ptr< char[]> | storage_ |
| bool | was_released_ |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inlineexplicit |
Definition at line 73 of file tracking-heap-block-provider.hpp.
|
inline |
Definition at line 79 of file tracking-heap-block-provider.hpp.
References Block::storage_.
Referenced by BlockPool::is_in_sane_state(), DiagnosticOutputSlot::output_was_emitted(), TrackingHeapBlockProvider_test::verifyTestProtocol(), and steam::engine::test::anonymous_namespace{tracking-heap-block-provider-test.cpp}::verifyUsedBlock().
Here is the caller graph for this function:
|
inline |
Definition at line 85 of file tracking-heap-block-provider.hpp.
References Block::was_released_.
Referenced by BlockPool::is_in_sane_state(), TrackingHeapBlockProvider::mark_emitted(), DiagnosticOutputSlot::output_was_closed(), TrackingHeapBlockProvider_test::verifyTestProtocol(), and steam::engine::test::anonymous_namespace{tracking-heap-block-provider-test.cpp}::verifyUsedBlock().
Here is the caller graph for this function:
|
inline |
Definition at line 91 of file tracking-heap-block-provider.hpp.
References Block::storage_.
Referenced by TrackingHeapBlockProvider::accessAs(), TrackingHeapBlockProvider::detachBuffer(), steam::engine::test::anonymous_namespace{tracking-heap-block-provider-test.cpp}::has_expectedContent(), TrackingHeapBlockProvider::provideLockedBuffer(), and TrackingHeapBlockProvider_test::simpleExample().
Here is the caller graph for this function:
|
inline |
Definition at line 98 of file tracking-heap-block-provider.hpp.
References Block::was_released_.
Referenced by TrackingHeapBlockProvider::detachBuffer().
Here is the caller graph for this function:
|
private |
Definition at line 67 of file tracking-heap-block-provider.hpp.
Referenced by Block::accessMemory(), and Block::was_used().
|
private |
Definition at line 69 of file tracking-heap-block-provider.hpp.
Referenced by Block::markReleased(), and Block::was_closed().
Inheritance diagram for Block:
Collaboration diagram for Block: