Public Types | Public Member Functions | List of all members
UniquePtrVectorWrapper< VECTORTYPE, ELEMENTTYPE > Class Template Reference

#include <utility/uniqueptrvectoriterator.h>

Public Types

using Iterator = UniquePtrVectorIterator< typename VECTORTYPE::iterator, ELEMENTTYPE >

Public Member Functions

 UniquePtrVectorWrapper (VECTORTYPE &inVector)
Iterator begin ()
Iterator end ()


template<class VECTORTYPE, class ELEMENTTYPE>
class nap::utility::UniquePtrVectorWrapper< VECTORTYPE, ELEMENTTYPE >

Helper class to wrap a vector of unique_ptrs, allowing you to expose the vector to clients, while hiding the unique_ptr. This is the non-const version.

Member Typedef Documentation

◆ Iterator

using Iterator = UniquePtrVectorIterator<typename VECTORTYPE::iterator, ELEMENTTYPE>

Constructor & Destructor Documentation

◆ UniquePtrVectorWrapper()

UniquePtrVectorWrapper ( VECTORTYPE &  inVector)

Member Function Documentation

◆ begin()

Iterator begin ( )

◆ end()

Iterator end ( )