CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/CondCore/ORA/src/Reference.cc

Go to the documentation of this file.
00001 #include "CondCore/ORA/interface/Reference.h"
00002 
00003 ora::Reference::Reference():
00004   m_containerId(0),
00005   m_itemId(0){
00006 }
00007 
00008 ora::Reference::Reference( const OId& oid ):
00009   m_containerId(oid.containerId()),
00010   m_itemId(oid.itemId()){
00011 }
00012 
00013 ora::Reference::Reference( const ora::Reference& rhs ):
00014   m_containerId(rhs.m_containerId),
00015   m_itemId(rhs.m_itemId){
00016 }
00017 
00018 ora::Reference::~Reference(){
00019 }
00020 
00021 ora::Reference& ora::Reference::operator=( const ora::Reference& rhs ){
00022   m_containerId = rhs.m_containerId;
00023   m_itemId = rhs.m_itemId;
00024   return *this;
00025 }
00026 
00027 void ora::Reference::set( const ora::OId& oid ){
00028   m_containerId = oid.containerId();
00029   m_itemId = oid.itemId();  
00030 }
00031 
00032 ora::OId ora::Reference::oid() const {
00033   return OId( m_containerId, m_itemId );
00034 }
00035 
00036   
00037     
00038