#include <verify.hpp>
template<typename T>
v_1_0_0::ChecksumSourceOf class
Base: wrap a checksum container type in a ChecksumSource.
Template parameters | |
---|---|
T | The type to wrap |
A type T
can be made available as a ChecksumSource via definig a subclass of ChecksumSourceOf<T>. The subclass has to implement the virtual functions of ChecksumSource. It can reuse the constructor of ChecksumSourceOf<T>.
Base classes
- class v_1_0_0::ChecksumSource
- Interface: unified access to checksum containers.
Constructors, destructors, conversion operators
- ChecksumSourceOf(const ChecksumSourceOf& rhs)
- Copy constructor.
- ChecksumSourceOf(const T* t)
- Constructor.
- ~ChecksumSourceOf() defaulted virtual noexcept
- Virtual default destructor.
Public functions
- auto operator=(const ChecksumSourceOf& rhs) -> ChecksumSourceOf&
- Copy assignment operator.
- auto source() const -> const T*
- The wrapped checksum source.
Function documentation
template<typename T>
arcstk:: v_1_0_0:: ChecksumSourceOf<T>:: ChecksumSourceOf(const ChecksumSourceOf& rhs)
Copy constructor.
Parameters | |
---|---|
rhs in | Instance to get a copy of |
template<typename T>
arcstk:: v_1_0_0:: ChecksumSourceOf<T>:: ChecksumSourceOf(const T* t)
Constructor.
Parameters | |
---|---|
t in | The primary checksum source |
template<typename T>
ChecksumSourceOf& arcstk:: v_1_0_0:: ChecksumSourceOf<T>:: operator=(const ChecksumSourceOf& rhs)
Copy assignment operator.
Parameters | |
---|---|
rhs in | Instance to get a copy of |
Returns | Copy of rhs |
template<typename T>
const T* arcstk:: v_1_0_0:: ChecksumSourceOf<T>:: source() const
The wrapped checksum source.
Returns | The wrapped checksum source. |
---|