|
| vector () |
| Creates an empty vector. More...
|
|
| vector (size_type initial_size) |
| Creates a vector with a number of default-constructed elements. More...
|
|
| vector (size_type initial_size, const T &value) |
| Creates a vector with a number of copies of a value. More...
|
|
| vector (const vector &other) |
| Creates a copy. More...
|
|
| vector (const std::vector< T > &other) |
| Implicit construction from std::vector. More...
|
|
| vector (vector &&other) OMG_NOEXCEPT |
| Creates a vector by moving an existing one. More...
|
|
| operator std::vector< T > () const |
| Provides a conversion to std::vector. More...
|
|
size_type | size () const |
| Get the current size. More...
|
|
size_type | capacity () const |
| Get the current capacity. More...
|
|
void | resize (size_type new_size) |
| Set the size to new_size. More...
|
|
void | resize (size_type new_size, const T &value) |
| Set the size to new_size, copying value if new elements are added. More...
|
|
void | clear () |
| Resize to zero. More...
|
|
void | reserve (size_type new_capacity) |
| Reserve a new capacity without creating any elements or changing the size. More...
|
|
reference | at (size_type i) |
| Get an element by reference and check bounds. More...
|
|
const_reference | at (size_type i) const |
| Get an element by const-reference and check bounds. More...
|
|
reference | operator[] (size_type i) |
| Get an element by reference. More...
|
|
const_reference | operator[] (size_type i) const |
| Get an element by const-reference. More...
|
|
vector & | operator= (const vector &other) |
| Assign another vector to this one. More...
|
|
vector & | operator= (vector &&other) OMG_NOEXCEPT |
| Move-assign another vector to this one. More...
|
|
bool | operator== (const vector &other) const |
| Returns if the elements of two vectors are equal. More...
|
|
bool | operator!= (const vector &other) const |
| Returns if two vectors are different. More...
|
|
iterator | begin () |
| Iterator to the first element. More...
|
|
const_iterator | begin () const |
| Const iterator to first element. More...
|
|
iterator | end () |
| Iterator to last element plus one. More...
|
|
const_iterator | end () const |
| Const iterator to last element plus one. More...
|
|
template<typename T>
class dds::core::vector< T >
<<value-type>> A vector convertible to std::vector and with similar functionality
In many cases, for performance reasons and other implementation requirements, the RTI Connext API uses dds::core::vector instead of std::vector. The most significant case is the C++ types that rtiddsgen generates from IDL.
A dds::core::vector provides a subset of the functionality of a std::vector
, including iterators, resizing and indexed access. It also provides automatic conversion to and from std::vector, making code like the following possible:
public:
};
dds::vector<int32_t> my_std_vector = sample.my_ints();
sample.my_ints() = my_std_vector;
An example topic-type.
Definition: types.dxx:34
<<value-type>> A vector convertible to std::vector and with similar functionality
Definition: rti/core/Vector.hpp:223