21 template <
typename STLCONTAINER>
39 operator const STLCONTAINER&()
const {
return m_source; }
41 const typename STLCONTAINER::value_type&
operator[](
const int i)
const 46 typename STLCONTAINER::const_iterator
begin()
const 50 typename STLCONTAINER::const_iterator
end()
const {
return m_source.end(); }
51 typename STLCONTAINER::const_reverse_iterator
rbegin()
const 55 typename STLCONTAINER::const_reverse_iterator
rend()
const
A generic proxy accessor template that only allows read-only access to the original binded STL contai...
#define ASSERT_EQUAL_(__A, __B)
Assert comparing two values, reporting their actual values upon failure.
const STLCONTAINER::value_type & operator[](const int i) const
STLCONTAINER::const_iterator end() const
ContainerReadOnlyProxyAccessor< STLCONTAINER > & operator=(const ContainerReadOnlyProxyAccessor< STLCONTAINER > &o)
Don't copy the reference to the source object, but copy the contained data.
STLCONTAINER::const_reverse_iterator rbegin() const
ContainerReadOnlyProxyAccessor(STLCONTAINER &source)
ctor: binds to source object
STLCONTAINER::const_iterator begin() const
STLCONTAINER::const_reverse_iterator rend() const