BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DataVector.h File Reference
#include <vector>
#include <iterator>
#include <algorithm>
#include <iostream>
#include <typeinfo>
#include "DataModel/OwnershipPolicy.h"
#include <boost/concept_check.hpp>
#include "GaudiKernel/System.h"

Go to the source code of this file.

Classes

class  detail::CompareAndPrint
class  DataVector< T >
 an STL vector of pointers that by default owns its pointed elements. More...
class  DataVector< T >::ElementProxy

Namespaces

namespace  detail

Macros

#define DEFQUIET   false
vector iterators
#define FUNFWD(func)
#define CONSTFUNFWD(func)
#define FUNFWDN(func)
#define CONSTFUNFWDN(func)

Functions

template<class ForwIter>
ForwIter detail::remove_duplicates (ForwIter b, ForwIter e, bool quiet=DEFQUIET)

vector comparison operators

#define COMPOP(oper)
template<class T>
void swap (DataVector< T > lhs, DataVector< T > rhs)

Macro Definition Documentation

◆ COMPOP

#define COMPOP ( oper)
Value:
template <class T> bool operator oper( const DataVector<T> lhs, const DataVector<T> rhs ) { \
return lhs.stdcont() oper rhs.stdcont(); \
}
an STL vector of pointers that by default owns its pointed elements.
const PtrVector & stdcont() const
access the underlying std vector;

Definition at line 331 of file Event/GeneratorObject/include/DataModel/DataVector.h.

331#define COMPOP( oper ) \
332 template <class T> bool operator oper( const DataVector<T> lhs, const DataVector<T> rhs ) { \
333 return lhs.stdcont() oper rhs.stdcont(); \
334 }

◆ CONSTFUNFWD

#define CONSTFUNFWD ( func)
Value:
func() const { return m_pCont.func(); }

Definition at line 183 of file Event/GeneratorObject/include/DataModel/DataVector.h.

183#define CONSTFUNFWD( func ) \
184 func() const { return m_pCont.func(); }

◆ CONSTFUNFWDN

#define CONSTFUNFWDN ( func)
Value:
func( size_type n ) const { return m_pCont.func( n ); }
const Int_t n

Definition at line 187 of file Event/GeneratorObject/include/DataModel/DataVector.h.

187#define CONSTFUNFWDN( func ) \
188 func( size_type n ) const { return m_pCont.func( n ); }

◆ DEFQUIET

#define DEFQUIET   false

◆ FUNFWD

#define FUNFWD ( func)
Value:
func() { return m_pCont.func(); }

Definition at line 181 of file Event/GeneratorObject/include/DataModel/DataVector.h.

181#define FUNFWD( func ) \
182 func() { return m_pCont.func(); }

◆ FUNFWDN

#define FUNFWDN ( func)
Value:
func( size_type n ) { return m_pCont.func( n ); }

Definition at line 185 of file Event/GeneratorObject/include/DataModel/DataVector.h.

185#define FUNFWDN( func ) \
186 func( size_type n ) { return m_pCont.func( n ); }

Function Documentation

◆ swap()

template<class T>
void swap ( DataVector< T > lhs,
DataVector< T > rhs )

Definition at line 345 of file Event/GeneratorObject/include/DataModel/DataVector.h.

345{ lhs.swap( rhs ); }