Skip to content

Commit

Permalink
Merge pull request #5316 from ianna/ddvalue-cleanup
Browse files Browse the repository at this point in the history
DDValue Cleanup
  • Loading branch information
davidlange6 committed Sep 17, 2014
2 parents e38ef14 + 8b0dfd8 commit de483e2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions DetectorDescription/Core/interface/DDValue.h
Expand Up @@ -4,29 +4,21 @@
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <memory>
#include <atomic>
#include "tbb/concurrent_vector.h"
#include "tbb/concurrent_unordered_map.h"

#include "DetectorDescription/Core/interface/DDValuePair.h"

class DDValue;
class DDSpecifics;
class DDLSpecPar;

/** A DDValue std::maps a std::vector of DDValuePair (std::string,double) to a name. Names of DDValues are stored
transiently. Furthermore, an ID is assigned std::mapping to the name.
If a particular DDValue is not used anymore, use DDValue::clear() to free the internally
allocated memory. Use DDValue::setEvalState(true) to indicate whether the double numbers stored in
Use DDValue::setEvalState(true) to indicate whether the double numbers stored in
the DDValuePair make sense, otherwise an exception will be thrown when trying to get access
to these values via DDValue::doubles() or DDValue::operator[].
*/
class DDValue
{
friend class DDSpecifics;
friend class DDLSpecPar;
public:
//! create a unnamed emtpy value. One can assing a named DDValue to it.
DDValue( void ) : id_(0), vecPair_() { }
Expand Down

0 comments on commit de483e2

Please sign in to comment.