42 inline operator const std::vector<obj> & ()
const
46 inline operator const obj &()
const
47 {
return m_ref.front(); }
50 inline const obj &
front()
const
51 {
return m_ref.front(); }
54 inline const obj &
back ()
const
55 {
return m_ref.back(); }
58 inline size_t size ()
const
59 {
return m_ref.size(); }
62 const std::vector<obj> & m_ref;
Simple wrapper class for a vector of objects.
Definition: gsStdVectorRef.h:27
const obj & operator[](size_t i) const
Accessor.
Definition: gsStdVectorRef.h:38
size_t size() const
Size.
Definition: gsStdVectorRef.h:58
const obj & back() const
Back.
Definition: gsStdVectorRef.h:54
gsStdVectorRef(const std::vector< obj > &refVec)
Constructor from a vector of objs.
Definition: gsStdVectorRef.h:32
const obj & front() const
Front.
Definition: gsStdVectorRef.h:50