BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ElementLinkVector.h File Reference
#include "DataModel/DataLink.h"
#include "DataModel/ElementLink.h"
#include <algorithm>
#include <exception>
#include <functional>
#include <vector>
#include <boost/iterator_adaptors.hpp>
#include "DataModel/ElementLinkVector.icc"

Go to the source code of this file.

Classes

class  ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy >
 a vector of "compact" element links. It turns the host data object key into an index. The memory size of a compact link is three words/link, and only 2 words/link needs to be persistified. It also mantains a vector of hosts used to generate the "short ref" More...

Functions

vector comparison operators
template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator< (const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &lhs, const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &rhs)
template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator> (const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &lhs, const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &rhs)
template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator== (const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &lhs, const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &rhs)
template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator!= (const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &lhs, const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &rhs)

Function Documentation

◆ operator!=()

template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator!= ( const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & lhs,
const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & rhs )

Definition at line 368 of file Event/GeneratorObject/include/DataModel/ElementLinkVector.h.

369 {
370 return !operator==( lhs, rhs );
371}
bool operator==(const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &lhs, const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > &rhs)

◆ operator<()

template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator< ( const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & lhs,
const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & rhs )

Definition at line 353 of file Event/GeneratorObject/include/DataModel/ElementLinkVector.h.

354 {
355 return ( lhs.m_shortRefs < rhs.m_shortRefs );
356}

◆ operator==()

template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator== ( const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & lhs,
const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & rhs )

Definition at line 363 of file Event/GeneratorObject/include/DataModel/ElementLinkVector.h.

364 {
365 return ( lhs.m_shortRefs == rhs.m_shortRefs );
366}

Referenced by operator!=().

◆ operator>()

template<typename DOBJ, class StoragePolicy, class IndexingPolicy>
bool operator> ( const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & lhs,
const ElementLinkVector< DOBJ, StoragePolicy, IndexingPolicy > & rhs )

Definition at line 358 of file Event/GeneratorObject/include/DataModel/ElementLinkVector.h.

359 {
360 return rhs > lhs;
361}