Template Struct ContainerReadOnlyProxyAccessor

Struct Documentation

template<typename STLCONTAINER>
struct ContainerReadOnlyProxyAccessor

A generic proxy accessor template that only allows read-only access to the original binded STL container object.

Public Functions

inline ContainerReadOnlyProxyAccessor(STLCONTAINER &source)

ctor: binds to source object

ContainerReadOnlyProxyAccessor(const ContainerReadOnlyProxyAccessor<STLCONTAINER>&) = delete

(Deleted ctor) ignore copies (keep reference to original object)

inline ContainerReadOnlyProxyAccessor<STLCONTAINER> &operator=(const ContainerReadOnlyProxyAccessor<STLCONTAINER> &o)

Don’t copy the reference to the source object, but copy the contained data. This is only allowed if the size of the buffers coincide.

inline operator const STLCONTAINER&() const

Transparent conversion to const ref to original source object.

inline size_t size() const
inline const STLCONTAINER::value_type &operator[](const int i) const
inline STLCONTAINER::const_iterator begin() const
inline STLCONTAINER::const_iterator end() const
inline STLCONTAINER::const_reverse_iterator rbegin() const
inline STLCONTAINER::const_reverse_iterator rend() const