Dakota  Version 6.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ResultsID Class Reference

Get a globally unique 1-based execution number for a given iterator name (combination of methodName and methodID) for use in results DB. Each Iterator::run() call creates or increments this count for its string identifier. More...

Public Member Functions

size_t increment_id (const std::string &method_name, const std::string &method_id)
 explicitly increment the iterator results ID, init to 1 if needed
 
size_t get_id (const std::string &method_name, const std::string &method_id)
 get (possibly creating) a unique iterator results ID for the passed name
 
size_t get_id (const std::string &method_name, const std::string &method_id) const
 get a unique iterator results ID for the passed name (const version errors if not found)
 

Static Public Member Functions

static ResultsIDinstance ()
 get the single unique instance of ResultsID
 

Private Member Functions

 ResultsID ()
 Private constructor for ResultsID.
 
 ~ResultsID ()
 Private destructor for ResultsID.
 
 ResultsID (ResultsID const &)
 Private copy constructor for ResultsID.
 
ResultsIDoperator= (ResultsID const &)
 Private assignment operator for ResultsID.
 

Private Attributes

std::map< std::pair
< std::string, std::string >
, size_t > 
idMap
 storage for the results IDs
 

Detailed Description

Get a globally unique 1-based execution number for a given iterator name (combination of methodName and methodID) for use in results DB. Each Iterator::run() call creates or increments this count for its string identifier.


The documentation for this class was generated from the following files: