Template Class Vector¶
- Defined in File Objects.h 
Inheritance Relationships¶
Base Type¶
- public uconfig::Variable< std::vector< T > >(Template Class Variable)
Class Documentation¶
- 
template<typename T>
 classuconfig::Vector: public uconfig::Variable<std::vector<T>>¶
- Vector object. - tparam T
- Type to form vector of. 
 - Public Types - 
template<typename F>
 usingiface_type= VectorIface<T, F>¶
 - Public Functions - 
Vector(bool optional = false)¶
- Constructor. - Parameters
- [in] optional – If vector considered to be optional (may be not initialized). Default false. 
 
 - 
virtual ~Vector() = default¶
- Destructor. 
 - 
T &operator[](std::size_t pos)¶
- Get the value from underlying vector. - Parameters
- [in] pos – Position to get value at. 
- Throws
- uconfig::Error – Thrown if vector has no value. 
- Returns
- A reference to the value at - pos.
 
 - 
const T &operator[](std::size_t pos) const¶
- Get the value from underlying vector. - Parameters
- [in] pos – Position to get value at. 
- Throws
- uconfig::Error – Thrown if vector has no value. 
- Returns
- A const reference to the value at - pos.
 
 - Friends - friend class VectorIface