// class ORefVector allows reference counting on a std::vector template< class VectorVal > class ORefVector : public salhelper::SimpleReferenceObject, public std::vector< VectorVal >
{ protected: virtual ~ORefVector() override {} public: typedef std::vector< VectorVal > Vector;
ORefVector& operator=(const ORefVector& _rRH)
{ if ( &_rRH != this )
{
std::vector< VectorVal >::operator=(_rRH);
} return *this;
}
};
// class ORowVector includes refcounting and initialize himself // with at least one element. This first element is reserved for // the bookmark template< class VectorVal > class ORowVector : public ORefVector< VectorVal >
{ public:
ORowVector() : ORefVector< VectorVal >(1){}
ORowVector(size_t _st) : ORefVector< VectorVal >(_st+1)
{}
};
// search from first to last the column with the name _rVal // when no such column exist last is returned
OOO_DLLPUBLIC_DBTOOLS
OSQLColumns::const_iterator find( const OSQLColumns::const_iterator& first, const OSQLColumns::const_iterator& last,
std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase);
// search from first to last the column with the realname _rVal // when no such column exist last is returned
OOO_DLLPUBLIC_DBTOOLS
OSQLColumns::const_iterator findRealName( const OSQLColumns::const_iterator& first, const OSQLColumns::const_iterator& last,
std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase);
// the first two find methods are much faster than the one below // search from first to last the column with the property _rProp equals the value _rVal // when no such column exist last is returned
OOO_DLLPUBLIC_DBTOOLS
OSQLColumns::const_iterator find( OSQLColumns::const_iterator first, const OSQLColumns::const_iterator& last, const OUString& _rProp,
std::u16string_view _rVal, const ::comphelper::UStringMixEqual& _rCase);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.