Struct UserAllocatedSequence
Defined in File UserAllocatedSequence.hpp
Inheritance Relationships
Base Type
public eprosima::fastdds::dds::LoanableCollection
(Class LoanableCollection)
Struct Documentation
-
struct UserAllocatedSequence : public eprosima::fastdds::dds::LoanableCollection
A collection of generic opaque pointers allocated by the user.
This kind of collection would always return
true
forhas_ownership()
, and thus would not be able to receive loans. It would also have an inmutablemaximum()
, so it would not allowlength()
to grow beyond the maximum value indicated on construction.Public Types
-
using size_type = LoanableCollection::size_type
-
using element_type = LoanableCollection::element_type
Public Functions
-
inline UserAllocatedSequence(element_type *items, size_type num_items)
Construct a UserAllocatedSequence.
- Parameters
items – [in] Pointer to the beginning of an array of
num_items
opaque pointers.num_items – [in] Number of opaque pointers in
items
.
- Post
buffer() == items
- Post
has_ownership() == true
- Post
length() == 0
- Post
maximum() == num_items
-
~UserAllocatedSequence() = default
-
UserAllocatedSequence(const UserAllocatedSequence&) = delete
-
UserAllocatedSequence &operator=(const UserAllocatedSequence&) = delete
-
UserAllocatedSequence(UserAllocatedSequence&&) = delete
-
UserAllocatedSequence &operator=(UserAllocatedSequence&&) = delete
-
using size_type = LoanableCollection::size_type