#include <ParameterDescriptionCases.h>
Public Types | |
typedef std::map< T, edm::value_ptr < ParameterDescriptionNode > > | CaseMap |
Public Member Functions | |
std::auto_ptr< CaseMap > | caseMap () |
bool | duplicateCaseValues () const |
void | insert (T caseValue, std::auto_ptr< ParameterDescriptionNode > node) |
Private Member Functions | |
ParameterDescriptionCases (T const &caseValue, std::auto_ptr< ParameterDescriptionNode > node) | |
Private Attributes | |
std::auto_ptr< CaseMap > | caseMap_ |
bool | duplicateCaseValues_ |
Friends | |
std::auto_ptr < ParameterDescriptionCases < bool > > | operator>> (bool caseValue, std::auto_ptr< ParameterDescriptionNode > node) |
std::auto_ptr < ParameterDescriptionCases < std::string > > | operator>> (char const *caseValue, std::auto_ptr< ParameterDescriptionNode > node) |
std::auto_ptr < ParameterDescriptionCases < std::string > > | operator>> (std::string const &caseValue, std::auto_ptr< ParameterDescriptionNode > node) |
std::auto_ptr < ParameterDescriptionCases < int > > | operator>> (int caseValue, std::auto_ptr< ParameterDescriptionNode > node) |
Definition at line 38 of file ParameterDescriptionCases.h.
typedef std::map<T, edm::value_ptr<ParameterDescriptionNode> > edm::ParameterDescriptionCases< T >::CaseMap |
Definition at line 40 of file ParameterDescriptionCases.h.
edm::ParameterDescriptionCases< T >::ParameterDescriptionCases | ( | T const & | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [inline, private] |
Definition at line 77 of file ParameterDescriptionCases.h.
References edm::ParameterDescriptionCases< T >::caseMap_, and python::Node::node.
: caseMap_(new CaseMap), duplicateCaseValues_(false) { std::pair<T, edm::value_ptr<ParameterDescriptionNode> > casePair(caseValue,edm::value_ptr<ParameterDescriptionNode>()); caseMap_->insert(casePair); (*caseMap_)[caseValue] = node; }
std::auto_ptr<CaseMap> edm::ParameterDescriptionCases< T >::caseMap | ( | ) | [inline] |
Definition at line 50 of file ParameterDescriptionCases.h.
References edm::ParameterDescriptionCases< T >::caseMap_.
{ return caseMap_; }
bool edm::ParameterDescriptionCases< T >::duplicateCaseValues | ( | ) | const [inline] |
Definition at line 51 of file ParameterDescriptionCases.h.
References edm::ParameterDescriptionCases< T >::duplicateCaseValues_.
{ return duplicateCaseValues_; }
void edm::ParameterDescriptionCases< T >::insert | ( | T | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [inline] |
Definition at line 42 of file ParameterDescriptionCases.h.
References edm::ParameterDescriptionCases< T >::caseMap_, edm::ParameterDescriptionCases< T >::duplicateCaseValues_, python::Node::node, and ntuplemaker::status.
{ std::pair<T, edm::value_ptr<ParameterDescriptionNode> > casePair(caseValue,edm::value_ptr<ParameterDescriptionNode>()); std::pair<typename CaseMap::iterator,bool> status; status = caseMap_->insert(casePair); (*caseMap_)[caseValue] = node; if (status.second == false) duplicateCaseValues_ = true; }
std::auto_ptr<ParameterDescriptionCases<bool> > operator>> | ( | bool | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [friend] |
std::auto_ptr<ParameterDescriptionCases<std::string> > operator>> | ( | char const * | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [friend] |
std::auto_ptr<ParameterDescriptionCases<std::string> > operator>> | ( | std::string const & | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [friend] |
std::auto_ptr<ParameterDescriptionCases<int> > operator>> | ( | int | caseValue, |
std::auto_ptr< ParameterDescriptionNode > | node | ||
) | [friend] |
std::auto_ptr<CaseMap> edm::ParameterDescriptionCases< T >::caseMap_ [private] |
Definition at line 86 of file ParameterDescriptionCases.h.
Referenced by edm::ParameterDescriptionCases< T >::caseMap(), edm::ParameterDescriptionCases< T >::insert(), and edm::ParameterDescriptionCases< T >::ParameterDescriptionCases().
bool edm::ParameterDescriptionCases< T >::duplicateCaseValues_ [private] |
Definition at line 87 of file ParameterDescriptionCases.h.
Referenced by edm::ParameterDescriptionCases< T >::duplicateCaseValues(), and edm::ParameterDescriptionCases< T >::insert().