CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
DTKeyedConfig Class Reference

#include <DTKeyedConfig.h>

Inheritance diagram for DTKeyedConfig:
cond::BaseKeyed

Public Types

typedef std::vector< std::string >::const_iterator data_iterator
 
typedef std::vector< int >::const_iterator link_iterator
 

Public Member Functions

void add (const std::string &data)
 
void add (int id)
 
data_iterator dataBegin () const
 
data_iterator dataEnd () const
 
 DTKeyedConfig ()
 
 DTKeyedConfig (const DTKeyedConfig &obj)
 
int getId () const
 
link_iterator linkBegin () const
 
link_iterator linkEnd () const
 
void setId (int id)
 
virtual ~DTKeyedConfig ()
 
- Public Member Functions inherited from cond::BaseKeyed
 BaseKeyed ()
 
 BaseKeyed (std::string const &ikey)
 
std::string const & key () const
 
void setKey (std::string const &ikey)
 
virtual ~BaseKeyed ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

int cfgId
 
std::vector< std::string > dataList
 
std::vector< int > linkList
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Description:

Date
2010/03/18 16:02:30
Revision
1.1.2.1
Author
Paolo Ronchese INFN Padova

Definition at line 37 of file DTKeyedConfig.h.

Member Typedef Documentation

typedef std::vector<std::string>::const_iterator DTKeyedConfig::data_iterator

Definition at line 58 of file DTKeyedConfig.h.

typedef std::vector< int>::const_iterator DTKeyedConfig::link_iterator

Definition at line 59 of file DTKeyedConfig.h.

Constructor & Destructor Documentation

DTKeyedConfig::DTKeyedConfig ( )

Constructor

Definition at line 34 of file DTKeyedConfig.cc.

34  {
35 }
DTKeyedConfig::DTKeyedConfig ( const DTKeyedConfig obj)

Definition at line 38 of file DTKeyedConfig.cc.

References cfgId, dataList, and linkList.

38  {
39  cfgId = obj.cfgId;
40  data_iterator d_iter = obj.dataList.begin();
41  data_iterator d_iend = obj.dataList.end();
42  while ( d_iter != d_iend ) dataList.push_back( *d_iter++ );
43  link_iterator l_iter = obj.linkList.begin();
44  link_iterator l_iend = obj.linkList.end();
45  while ( l_iter != l_iend ) linkList.push_back( *l_iter++ );
46 }
std::vector< int >::const_iterator link_iterator
Definition: DTKeyedConfig.h:59
std::vector< int > linkList
Definition: DTKeyedConfig.h:69
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:68
std::vector< std::string >::const_iterator data_iterator
Definition: DTKeyedConfig.h:58
DTKeyedConfig::~DTKeyedConfig ( )
virtual

Destructor

Definition at line 52 of file DTKeyedConfig.cc.

52  {
53 }

Member Function Documentation

void DTKeyedConfig::add ( const std::string &  data)

Definition at line 68 of file DTKeyedConfig.cc.

References dataList.

Referenced by DTUserKeyedConfigHandler::chkConfigList(), DTKeyedConfigHandler::chkConfigList(), DTKeyedConfigDBInit::endJob(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

68  {
69  dataList.push_back( data );
70 }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:68
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void DTKeyedConfig::add ( int  id)

Definition at line 73 of file DTKeyedConfig.cc.

References linkList.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

73  {
74  linkList.push_back( id );
75 }
std::vector< int > linkList
Definition: DTKeyedConfig.h:69
DTKeyedConfig::data_iterator DTKeyedConfig::dataBegin ( ) const

Definition at line 78 of file DTKeyedConfig.cc.

References dataList.

Referenced by DTKeyedConfigCache::get(), and DTKeyedConfigCache::getData().

78  {
79  return dataList.begin();
80 }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:68
DTKeyedConfig::data_iterator DTKeyedConfig::dataEnd ( ) const

Definition at line 83 of file DTKeyedConfig.cc.

References dataList.

Referenced by DTKeyedConfigCache::get(), and DTKeyedConfigCache::getData().

83  {
84  return dataList.end();
85 }
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:68
int DTKeyedConfig::getId ( ) const

Operations

Definition at line 58 of file DTKeyedConfig.cc.

References cfgId.

Referenced by DTKeyedConfigCache::get().

58  {
59  return cfgId;
60 }
DTKeyedConfig::link_iterator DTKeyedConfig::linkBegin ( ) const

Definition at line 88 of file DTKeyedConfig.cc.

References linkList.

Referenced by DTKeyedConfigCache::getData().

88  {
89  return linkList.begin();
90 }
std::vector< int > linkList
Definition: DTKeyedConfig.h:69
DTKeyedConfig::link_iterator DTKeyedConfig::linkEnd ( ) const

Definition at line 93 of file DTKeyedConfig.cc.

References linkList.

Referenced by DTKeyedConfigCache::getData().

93  {
94  return linkList.end();
95 }
std::vector< int > linkList
Definition: DTKeyedConfig.h:69
template<class Archive >
void DTKeyedConfig::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void DTKeyedConfig::setId ( int  id)

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 72 of file DTKeyedConfig.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 72 of file DTKeyedConfig.h.

Member Data Documentation

int DTKeyedConfig::cfgId
private

Definition at line 67 of file DTKeyedConfig.h.

Referenced by DTKeyedConfig(), getId(), and setId().

std::vector<std::string> DTKeyedConfig::dataList
private

Definition at line 68 of file DTKeyedConfig.h.

Referenced by add(), dataBegin(), dataEnd(), and DTKeyedConfig().

std::vector<int> DTKeyedConfig::linkList
private

Definition at line 69 of file DTKeyedConfig.h.

Referenced by add(), DTKeyedConfig(), linkBegin(), and linkEnd().