CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::cfi::ClassFile Struct Reference

#include <ParameterDescriptionNode.h>

Public Member Functions

void parameterMustBeTyped ()
 
void popNode ()
 
void pushNode (std::string_view iNode)
 
Paths releasePaths ()
 

Private Attributes

Paths fullPaths_
 
std::vector< std::string_view > presentPath_
 

Detailed Description

Definition at line 81 of file ParameterDescriptionNode.h.

Member Function Documentation

◆ parameterMustBeTyped()

void edm::cfi::ClassFile::parameterMustBeTyped ( )
inline

Definition at line 82 of file ParameterDescriptionNode.h.

References fullPaths_, dqmiodumpmetadata::n, AlCaHLTBitMon_ParallelJobs::p, and presentPath_.

82  {
83  Paths* p = &fullPaths_;
84  for (auto n : presentPath_) {
85  if (not p->nodes_) {
86  p->nodes_ = std::unordered_map<std::string, Paths>();
87  }
88  p = &(p->nodes_.value().emplace(n, Paths{})).first->second;
89  }
90  }
std::vector< std::string_view > presentPath_

◆ popNode()

void edm::cfi::ClassFile::popNode ( )
inline

Definition at line 92 of file ParameterDescriptionNode.h.

References cms::cuda::assert(), and presentPath_.

92  {
93  assert(not presentPath_.empty());
94  presentPath_.pop_back();
95  }
std::vector< std::string_view > presentPath_
assert(be >=bs)

◆ pushNode()

void edm::cfi::ClassFile::pushNode ( std::string_view  iNode)
inline

Definition at line 91 of file ParameterDescriptionNode.h.

References presentPath_.

91 { presentPath_.push_back(iNode); }
std::vector< std::string_view > presentPath_

◆ releasePaths()

Paths edm::cfi::ClassFile::releasePaths ( )
inline

Definition at line 97 of file ParameterDescriptionNode.h.

References fullPaths_, and eostools::move().

97 { return std::move(fullPaths_); }
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ fullPaths_

Paths edm::cfi::ClassFile::fullPaths_
private

Definition at line 101 of file ParameterDescriptionNode.h.

Referenced by parameterMustBeTyped(), and releasePaths().

◆ presentPath_

std::vector<std::string_view> edm::cfi::ClassFile::presentPath_
private

Definition at line 100 of file ParameterDescriptionNode.h.

Referenced by parameterMustBeTyped(), popNode(), and pushNode().