G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsStdVectorRef< obj > Class Template Reference

Detailed Description

template<class obj>
class gismo::gsStdVectorRef< obj >

Simple wrapper class for a vector of objects.

The list casts to object by returning the first object in the list

Public Member Functions

const obj & back () const
 Back.
 
const obj & front () const
 Front.
 
 gsStdVectorRef (const std::vector< obj > &refVec)
 Constructor from a vector of objs.
 
 operator const obj & () const
 Cast to by returning the first element.
 
 operator const std::vector< obj > & () const
 Cast to std::vector.
 
const obj & operator[] (size_t i) const
 Accessor.
 
size_t size () const
 Size.