CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmNew::dstvdetails::DetSetVectorTrans::Item Struct Reference

#include <DetSetVectorNew.h>

Public Member Functions

bool initialize () const
 
bool initializing () const
 
bool isValid () const
 
 Item (id_type i=0, int io=-1, size_type is=0)
 
 Item (Item const &rh)
 
 Item (Item &&rh)
 
 operator id_type () const
 
bool operator< (Item const &rh) const
 
Itemoperator= (Item const &rh)
 
Itemoperator= (Item &&rh)
 
bool uninitialized () const
 

Public Attributes

id_type id
 
std::atomic< int > offset
 
size_type size
 

Detailed Description

Definition at line 116 of file DetSetVectorNew.h.

Constructor & Destructor Documentation

edmNew::dstvdetails::DetSetVectorTrans::Item::Item ( id_type  i = 0,
int  io = -1,
size_type  is = 0 
)
inline
edmNew::dstvdetails::DetSetVectorTrans::Item::Item ( Item const &  rh)
inline

Definition at line 120 of file DetSetVectorNew.h.

edmNew::dstvdetails::DetSetVectorTrans::Item::Item ( Item &&  rh)
inline

Definition at line 126 of file DetSetVectorNew.h.

126  :
127  id(std::move(rh.id)),offset(int(rh.offset)),size(std::move(rh.size)) {
128  }
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

bool edmNew::dstvdetails::DetSetVectorTrans::Item::initialize ( ) const
inline

Definition at line 136 of file DetSetVectorNew.h.

References PFRecoTauDiscriminationByIsolation_cfi::offset.

Referenced by edmNew::DetSetVector< T >::update().

136  {
137  int expected = -1;
138  return offset.compare_exchange_strong(expected,-2);
139  }
bool edmNew::dstvdetails::DetSetVectorTrans::Item::initializing ( ) const
inline
bool edmNew::dstvdetails::DetSetVectorTrans::Item::isValid ( void  ) const
inline
edmNew::dstvdetails::DetSetVectorTrans::Item::operator id_type ( ) const
inline

Definition at line 149 of file DetSetVectorNew.h.

References triggerObjects_cff::id.

bool edmNew::dstvdetails::DetSetVectorTrans::Item::operator< ( Item const &  rh) const
inline

Definition at line 148 of file DetSetVectorNew.h.

References id.

148 { return id<rh.id;}
Item& edmNew::dstvdetails::DetSetVectorTrans::Item::operator= ( Item const &  rh)
inline
Item& edmNew::dstvdetails::DetSetVectorTrans::Item::operator= ( Item &&  rh)
inline
bool edmNew::dstvdetails::DetSetVectorTrans::Item::uninitialized ( ) const
inline

Definition at line 145 of file DetSetVectorNew.h.

References PFRecoTauDiscriminationByIsolation_cfi::offset.

145 { return (-1)==offset;}

Member Data Documentation

id_type edmNew::dstvdetails::DetSetVectorTrans::Item::id

Definition at line 133 of file DetSetVectorNew.h.

Referenced by operator<(), and edmNew::DetSet< T >::set().

std::atomic<int> edmNew::dstvdetails::DetSetVectorTrans::Item::offset
mutable
size_type edmNew::dstvdetails::DetSetVectorTrans::Item::size
mutable