Unique identifier for a written data sample in the form of a sequence of bytes.
More...
#include <rti/core/Cookie.hpp>
Unique identifier for a written data sample in the form of a sequence of bytes.
- See also
- dds::pub::DataWriter::write(const T&, rti::pub::WriteParams&)
◆ Cookie() [1/2]
rti::core::Cookie::Cookie |
( |
| ) |
|
|
inline |
◆ Cookie() [2/2]
template<typename ByteContainer >
rti::core::Cookie::Cookie |
( |
const ByteContainer & |
bytes | ) |
|
|
inlineexplicit |
Creates a new cookie with the bytes inside a container.
◆ value() [1/2]
Retrieves a reference to the vector of bytes.
◆ value() [2/2]
Retrieves a const reference to the vector of bytes.
◆ to_pointer()
template<typename T >
T* rti::core::Cookie::to_pointer |
( |
| ) |
const |
|
inline |
Converts a cookie into a pointer.
Utility function that allows retrieving a pointer stored in a cookie.
- Precondition
- The cookie's value was filled with a pointer, otherwise the value returned may not be a valid memory address.
- Template Parameters
-
- Returns
- The pointer this cookie represents
References rti::core::operator<<().
◆ CookieSeq
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
const Cookie & |
cookie |
|
) |
| |
|
related |
Prints a Cookie to an output stream.