23 #include "ocilibcpp/types.hpp" 31 CollectionElement<T>::CollectionElement() : _coll(nullptr), _pos(0)
37 CollectionElement<T>::CollectionElement(
CollectionType *coll,
unsigned int pos) : _coll(coll), _pos(pos)
43 CollectionElement<T>::operator T()
const 45 return _coll->Get(_pos);
49 CollectionElement<T>& CollectionElement<T>::operator = (
const ValueType& other)
53 _coll->Set(_pos, other);
60 CollectionElement<T>& CollectionElement<T>::operator = (
const CollectionElement &other)
64 _coll->Set(_pos, static_cast<T>(other));
71 bool CollectionElement<T>::IsNull()
const 73 return _coll->IsElementNull(_pos);
77 void CollectionElement<T>::SetNull()
79 _coll->SetElementNull(_pos);
core::Enum< CollectionTypeValues > CollectionType
Collection type.