BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
DataList.h File Reference
#include <list>
#include <iterator>
#include <algorithm>
#include <cassert>
#include "DataModel/OwnershipPolicy.h"

Go to the source code of this file.

Classes

class  DataList< T >
 an STL list of pointers that by default owns its pointed elements. When a DataList it is created with the flag SG::VIEW_ELEMENTS (see enum OwnershipPolicy) it does now own its elements. This is typically used to have DataList elements allocated by DataPool. Notice the use of value_type instead of const_reference: this is justified by the fact that the elem are always ptrs More...

Macros

list iterators
#define FUNFWD(func)
#define CONSTFUNFWD(func)

list comparison operators

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

Macro Definition Documentation

◆ COMPOP

#define COMPOP ( oper)
Value:
template <class T> bool operator oper( const DataList<T> lhs, const DataList<T> rhs ) { \
return lhs.stdcont() oper rhs.stdcont(); \
}
an STL list of pointers that by default owns its pointed elements. When a DataList it is created with...
const PtrList & stdcont() const
access the underlying std list;

Definition at line 237 of file Event/GeneratorObject/include/DataModel/DataList.h.

237#define COMPOP( oper ) \
238 template <class T> bool operator oper( const DataList<T> lhs, const DataList<T> rhs ) { \
239 return lhs.stdcont() oper rhs.stdcont(); \
240 }

◆ CONSTFUNFWD

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

Definition at line 116 of file Event/GeneratorObject/include/DataModel/DataList.h.

116#define CONSTFUNFWD( func ) \
117 func() const { return m_pCont.func(); }

◆ FUNFWD

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

Definition at line 114 of file Event/GeneratorObject/include/DataModel/DataList.h.

114#define FUNFWD( func ) \
115 func() { return m_pCont.func(); }

Function Documentation

◆ swap()

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

Definition at line 251 of file Event/GeneratorObject/include/DataModel/DataList.h.

251{ lhs.swap( rhs ); }

Referenced by BbEmc::execute().