HDK
|
#include <const_pointer_container.h>
Classes | |
class | ConstIterator |
Public Types | |
using | T = typename std::remove_pointer< typename Container::value_type >::type |
Public Member Functions | |
ConstPointerContainer (const Container &data) noexcept | |
size_t | size () const noexcept |
bool | empty () const noexcept |
ConstIterator | cbegin () const noexcept |
ConstIterator | cend () const noexcept |
ConstIterator | begin () const noexcept |
ConstIterator | end () const noexcept |
const T * | operator[] (size_t index) const |
const T * | at (size_t index) const |
Container has T* entries. e.g. std::vector<T*>, and this class provides const access to those via iterators and direct access, as the standard behavior only makes the pointer constant, and not what is pointed too. i.e. you get a const pointer to T not a pointer to const T without this wrapper. See https://stackoverflow.com/questions/8017036/understanding-const-iterator-with-pointers
Definition at line 16 of file const_pointer_container.h.
using onnxruntime::ConstPointerContainer< Container >::T = typename std::remove_pointer<typename Container::value_type>::type |
Definition at line 18 of file const_pointer_container.h.
|
inlineexplicitnoexcept |
Construct wrapper class that will provide const access to the pointers in a container of non-const pointers.
data | Container with non-const pointers. e.g. std::vector<T*> |
Definition at line 64 of file const_pointer_container.h.
|
inline |
Definition at line 77 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 72 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 69 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 70 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 67 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 73 of file const_pointer_container.h.
|
inline |
Definition at line 75 of file const_pointer_container.h.
|
inlinenoexcept |
Definition at line 66 of file const_pointer_container.h.