#include <OwnArray.h>
Classes | |
class | const_iterator |
class | iterator |
struct | Ordering |
Public Types | |
typedef T const & | const_reference |
typedef T * | pointer |
typedef P | policy_type |
typedef T & | reference |
typedef unsigned int | size_type |
typedef T | value_type |
Public Member Functions | |
reference | back () |
const_reference | back () const |
iterator | begin () |
const_iterator | begin () const |
size_type | capacity () const |
void | clear () |
pointer const * | data () const |
bool | empty () const |
const_iterator | end () const |
iterator | end () |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
void | fillPtrVector (std::type_info const &toType, std::vector< unsigned long > const &indices, std::vector< void const * > &ptrs) const |
void | fillView (ProductID const &id, std::vector< void const * > &pointers, helper_vector &helpers) const |
const_reference | front () const |
reference | front () |
bool | is_back_safe () const |
self & | operator= (self const &) |
reference | operator[] (size_type) |
const_reference | operator[] (size_type) const |
OwnArray (OwnArray const &) | |
OwnArray () | |
OwnArray (size_type) | |
void | pop_back () |
template<typename D > | |
void | push_back (D *&d) |
template<typename D > | |
void | push_back (std::auto_ptr< D > d) |
template<typename D > | |
void | push_back (D *const &d) |
void | push_back (T const &valueToCopy) |
void | reserve (size_t) |
void | setPtr (std::type_info const &toType, unsigned long index, void const *&ptr) const |
size_type | size () const |
template<typename S > | |
void | sort (S s) |
void | sort () |
void | swap (self &other) |
~OwnArray () | |
Private Types | |
typedef std::vector< T * > | base |
typedef OwnArray< T, MAX_SIZE, P > | self |
Private Member Functions | |
void | destroy () |
Static Private Member Functions | |
template<typename O > | |
static Ordering< O > | ordering (O const &comp) |
Private Attributes | |
pointer | data_ [MAX_SIZE] |
size_type | size_ |
Definition at line 24 of file OwnArray.h.
typedef std::vector<T*> edm::OwnArray< T, MAX_SIZE, P >::base [private] |
Definition at line 27 of file OwnArray.h.
typedef T const& edm::OwnArray< T, MAX_SIZE, P >::const_reference |
Definition at line 33 of file OwnArray.h.
typedef T* edm::OwnArray< T, MAX_SIZE, P >::pointer |
Definition at line 31 of file OwnArray.h.
typedef P edm::OwnArray< T, MAX_SIZE, P >::policy_type |
Definition at line 34 of file OwnArray.h.
typedef T& edm::OwnArray< T, MAX_SIZE, P >::reference |
Definition at line 32 of file OwnArray.h.
typedef OwnArray<T,MAX_SIZE,P> edm::OwnArray< T, MAX_SIZE, P >::self [private] |
Definition at line 26 of file OwnArray.h.
typedef unsigned int edm::OwnArray< T, MAX_SIZE, P >::size_type |
Definition at line 29 of file OwnArray.h.
typedef T edm::OwnArray< T, MAX_SIZE, P >::value_type |
Definition at line 30 of file OwnArray.h.
edm::OwnArray< T, M, P >::OwnArray | ( | ) | [inline] |
Definition at line 181 of file OwnArray.h.
edm::OwnArray< T, M, P >::OwnArray | ( | size_type | n | ) | [inline] |
Definition at line 185 of file OwnArray.h.
edm::OwnArray< T, MAX_SIZE, P >::OwnArray | ( | OwnArray< T, MAX_SIZE, P > const & | ) |
edm::OwnArray< T, M, P >::~OwnArray | ( | ) | [inline] |
OwnArray< T, M, P >::reference edm::OwnArray< T, M, P >::back | ( | ) | [inline] |
Definition at line 311 of file OwnArray.h.
References edm::errors::NullPointerError, query::result, and edm::size_().
{ pointer result = data_[size_-1]; if (result == 0) { Exception::throwThis(errors::NullPointerError, "In OwnArray::back() we have intercepted an attempt to dereference a null pointer\n" "Since OwnArray is allowed to contain null pointers, you much assure that the\n" "pointer at the end of the collection is not null before calling back()\n" "if you wish to avoid this exception.\n" "Consider using OwnArray::is_back_safe()\n"); } return *result; }
OwnArray< T, M, P >::const_reference edm::OwnArray< T, M, P >::back | ( | ) | const [inline] |
Definition at line 325 of file OwnArray.h.
References edm::errors::NullPointerError, query::result, and edm::size_().
{ pointer const * result = data_[size_-1]; if (result == 0) { Exception::throwThis(errors::NullPointerError, "In OwnArray::back() we have intercepted an attempt to dereference a null pointer\n" "Since OwnArray is allowed to contain null pointers, you much assure that the\n" "pointer at the end of the collection is not null before calling back()\n" "if you wish to avoid this exception.\n" "Consider using OwnArray::is_back_safe()\n"); } return *result; }
OwnArray< T, M, P >::iterator edm::OwnArray< T, M, P >::begin | ( | void | ) | [inline] |
Definition at line 224 of file OwnArray.h.
{ return iterator(data_); }
OwnArray< T, M, P >::const_iterator edm::OwnArray< T, M, P >::begin | ( | void | ) | const [inline] |
Definition at line 234 of file OwnArray.h.
{ return const_iterator(data_); }
size_type edm::OwnArray< T, MAX_SIZE, P >::capacity | ( | ) | const [inline] |
Definition at line 124 of file OwnArray.h.
{ return MAX_SIZE;}
void edm::OwnArray< T, M, P >::clear | ( | void | ) | [inline] |
Definition at line 361 of file OwnArray.h.
References pyrootRender::destroy(), and edm::size_().
OwnArray< T, M, P >::pointer const * edm::OwnArray< T, M, P >::data | ( | ) | const [inline] |
Definition at line 356 of file OwnArray.h.
{ return data_; }
void edm::OwnArray< T, M, P >::destroy | ( | ) | [inline, private] |
bool edm::OwnArray< T, M, P >::empty | ( | ) | const [inline] |
OwnArray< T, M, P >::const_iterator edm::OwnArray< T, M, P >::end | ( | void | ) | const [inline] |
Definition at line 239 of file OwnArray.h.
References findQualityFiles::size.
OwnArray< T, M, P >::iterator edm::OwnArray< T, M, P >::end | ( | void | ) | [inline] |
Definition at line 229 of file OwnArray.h.
References findQualityFiles::size.
OwnArray< T, M, P >::iterator edm::OwnArray< T, M, P >::erase | ( | iterator | pos | ) |
Definition at line 367 of file OwnArray.h.
References b, alignCSCRings::e, edm::OwnArray< T, MAX_SIZE, P >::iterator::i, i, findQualityFiles::size, and edm::size_().
OwnArray< T, M, P >::iterator edm::OwnArray< T, M, P >::erase | ( | iterator | first, |
iterator | last | ||
) |
Definition at line 377 of file OwnArray.h.
References b, alignCSCRings::e, edm::OwnArray< T, MAX_SIZE, P >::iterator::i, i, prof2calltree::l, findQualityFiles::size, and edm::size_().
void edm::OwnArray< T, M, P >::fillPtrVector | ( | std::type_info const & | toType, |
std::vector< unsigned long > const & | indices, | ||
std::vector< void const * > & | ptrs | ||
) | const [inline] |
Definition at line 479 of file OwnArray.h.
References edm::detail::reallyfillPtrVector().
Referenced by edm::fillPtrVector().
{ detail::reallyfillPtrVector(*this, toType, indices, ptrs); }
void edm::OwnArray< T, M, P >::fillView | ( | ProductID const & | id, |
std::vector< void const * > & | pointers, | ||
helper_vector & | helpers | ||
) | const |
Definition at line 403 of file OwnArray.h.
References alignCSCRings::e, h, i, combine::key, edm::errors::NullPointerError, edm::reftobase::RefVectorHolderBase::push_back(), edm::reftobase::RefVectorHolderBase::reserve(), and findQualityFiles::size.
Referenced by edm::fillView().
{ typedef Ref<OwnArray> ref_type ; typedef reftobase::RefHolder<ref_type> holder_type; size_type numElements = this->size(); pointers.reserve(numElements); helpers.reserve(numElements); size_type key = 0; for(typename base::const_iterator i=data_.begin(), e=data_.end(); i!=e; ++i, ++key) { if (*i == 0) { Exception::throwThis(errors::NullPointerError, "In OwnArray::fillView() we have intercepted an attempt to put a null pointer\n" "into a View and that is not allowed. It is probably an error that the null\n" "pointer was in the OwnArray in the first place.\n"); } else { pointers.push_back(*i); holder_type h(ref_type(id, *i, key,this)); helpers.push_back(&h); } } }
OwnArray< T, M, P >::reference edm::OwnArray< T, M, P >::front | ( | ) | [inline] |
Definition at line 339 of file OwnArray.h.
{ return *data_[0]; }
OwnArray< T, M, P >::const_reference edm::OwnArray< T, M, P >::front | ( | ) | const [inline] |
Definition at line 344 of file OwnArray.h.
{ return *data_[0]; }
bool edm::OwnArray< T, M, P >::is_back_safe | ( | ) | const [inline] |
self& edm::OwnArray< T, MAX_SIZE, P >::operator= | ( | self const & | ) |
OwnArray< T, M, P >::const_reference edm::OwnArray< T, M, P >::operator[] | ( | size_type | n | ) | const [inline] |
static Ordering<O> edm::OwnArray< T, MAX_SIZE, P >::ordering | ( | O const & | comp | ) | [inline, static, private] |
Definition at line 173 of file OwnArray.h.
{
return Ordering<O>(comp);
}
void edm::OwnArray< T, M, P >::pop_back | ( | ) | [inline] |
Definition at line 299 of file OwnArray.h.
References edm::size_().
void edm::OwnArray< T, M, P >::push_back | ( | T const & | valueToCopy | ) | [inline] |
Definition at line 293 of file OwnArray.h.
References clone(), and edm::size_().
{ data_[size_++]=policy_type::clone(d); }
void edm::OwnArray< T, M, P >::push_back | ( | std::auto_ptr< D > | d | ) | [inline] |
void edm::OwnArray< T, M, P >::push_back | ( | D *& | d | ) | [inline] |
Definition at line 265 of file OwnArray.h.
References edm::size_().
void edm::OwnArray< T, M, P >::push_back | ( | D *const & | d | ) | [inline] |
Definition at line 275 of file OwnArray.h.
References edm::size_().
void edm::OwnArray< T, MAX_SIZE, P >::reserve | ( | size_t | ) | [inline] |
Definition at line 123 of file OwnArray.h.
{}
void edm::OwnArray< T, M, P >::setPtr | ( | std::type_info const & | toType, |
unsigned long | index, | ||
void const *& | ptr | ||
) | const [inline] |
Definition at line 460 of file OwnArray.h.
References getHLTprescales::index.
Referenced by edm::setPtr().
{ detail::reallySetPtr<OwnArray<T,M,P> >(*this, toType, index, ptr); }
OwnArray< T, M, P >::size_type edm::OwnArray< T, M, P >::size | ( | void | ) | const [inline] |
void edm::OwnArray< T, M, P >::sort | ( | S | s | ) |
Definition at line 388 of file OwnArray.h.
References config::ordering, findQualityFiles::size, and python::multivaluedict::sort().
void edm::OwnArray< T, M, P >::sort | ( | ) |
Definition at line 393 of file OwnArray.h.
References config::ordering, findQualityFiles::size, and python::multivaluedict::sort().
void edm::OwnArray< T, MAX_SIZE, P >::swap | ( | self & | other | ) |
Referenced by edm::swap().
pointer edm::OwnArray< T, MAX_SIZE, P >::data_[MAX_SIZE] [private] |
Definition at line 176 of file OwnArray.h.
size_type edm::OwnArray< T, MAX_SIZE, P >::size_ [private] |
Definition at line 177 of file OwnArray.h.