CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DDValue::StringHolder Struct Reference

Only used internally. More...

Public Member Functions

StringHolderoperator= (const StringHolder &)=delete
 
 StringHolder ()
 
 StringHolder (std::string iString)
 
 StringHolder (StringHolder const &iOther)
 
 ~StringHolder ()
 

Public Attributes

std::atomic< std::string * > string_
 

Detailed Description

Only used internally.

Definition at line 88 of file DDValue.h.

Constructor & Destructor Documentation

◆ StringHolder() [1/3]

DDValue::StringHolder::StringHolder ( )
inline

Definition at line 89 of file DDValue.h.

89 {}

◆ StringHolder() [2/3]

DDValue::StringHolder::StringHolder ( std::string  iString)
inlineexplicit

Definition at line 90 of file DDValue.h.

90 : string_(new std::string{std::move(iString)}) {}

References eostools::move().

◆ StringHolder() [3/3]

DDValue::StringHolder::StringHolder ( StringHolder const &  iOther)
inlineexplicit

Definition at line 91 of file DDValue.h.

91 : string_(new std::string{*(iOther.string_)}) {}

References string_.

◆ ~StringHolder()

DDValue::StringHolder::~StringHolder ( )
inline

Definition at line 93 of file DDValue.h.

93 { delete string_.load(); }

References string_.

Member Function Documentation

◆ operator=()

StringHolder& DDValue::StringHolder::operator= ( const StringHolder )
delete

Member Data Documentation

◆ string_

std::atomic<std::string*> DDValue::StringHolder::string_

Definition at line 95 of file DDValue.h.

Referenced by StringHolder(), and ~StringHolder().

AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
eostools.move
def move(src, dest)
Definition: eostools.py:511
DDValue::StringHolder::string_
std::atomic< std::string * > string_
Definition: DDValue.h:95