Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::DataSequence< Data > Class Template Reference

Public Types

using value_type = std::shared_ptr<Data>
 
using size_type = std::size_t
 
using difference_type = std::ptrdiff_t
 
using iterator
 
using const_iterator
 

Public Member Functions

 DataSequence (std::span< std::shared_ptr< Data > > data)
 
 DataSequence (std::span< std::shared_ptr< const Data > > data)
 
 DataSequence (const DataSequence &rhs)
 
 DataSequence (DataSequence &&) noexcept=default
 
DataSequenceoperator= (const DataSequence &that)
 
DataSequenceoperator= (DataSequence &&) noexcept=delete
 
void push_back (std::shared_ptr< const Data > data)
 
void push_back (std::shared_ptr< Data > data)
 
template<typename... Args>
std::shared_ptr< Dataemplace_back (Args &&... args)
 
void insert (iterator pos, std::shared_ptr< const Data > data)
 
void insert (iterator pos, std::shared_ptr< Data > data)
 
void insert (const_iterator pos, const_iterator srcBegin, const_iterator srcEnd)
 
void erase (iterator pos)
 
void erase (const_iterator begin, const_iterator end)
 
void shrink_to_fit ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
std::size_t size () const
 
bool empty () const
 
void clear ()
 
void reserve (std::size_t n)
 
std::shared_ptr< const Dataoperator[] (std::size_t n) const
 
std::shared_ptr< Dataoperator[] (std::size_t n)
 
std::shared_ptr< const Dataat (std::size_t n) const
 
std::shared_ptr< Dataat (std::size_t n)
 
std::shared_ptr< const Datafront () const
 
std::shared_ptr< Datafront ()
 
std::shared_ptr< const Databack () const
 
std::shared_ptr< Databack ()
 
void pop_back ()
 
void swap (DataSequence &other)
 
void swap (std::vector< std::pair< std::shared_ptr< const Data >, std::shared_ptr< Data > > > &other)
 
void swap (std::vector< std::pair< std::shared_ptr< const Data >, std::shared_ptr< Data > > > &&other)
 

Member Typedef Documentation

◆ const_iterator

template<typename Data >
using inviwo::DataSequence< Data >::const_iterator
Initial value:
util::TransformIterator<decltype(getConstData),
typename std::vector<DataVariant>::const_iterator>

◆ iterator

template<typename Data >
using inviwo::DataSequence< Data >::iterator
Initial value:
util::TransformIterator<decltype(getData), typename std::vector<DataVariant>::iterator>

The documentation for this class was generated from the following file: