8 #ifndef __NOMAD400_ParameterEntry__
9 #define __NOMAD400_ParameterEntry__
12 #include "../Util/utils.hpp"
14 #include "../nomad_nsbegin.hpp"
30 std::shared_ptr<ParameterEntry>
_next;
99 std::shared_ptr<ParameterEntry>
getNext (
void )
const {
return _next; }
157 void display(std::ostream &out)
const;
168 bool operator() (
const std::shared_ptr<ParameterEntry> p1 ,
const std::shared_ptr<ParameterEntry> p2 )
const
187 #include "../nomad_nsend.hpp"
190 #endif // __NOMAD400_ParameterEntry__
const std::list< std::string > & getValues(void) const
Access to the parameter values.
const std::string & getName(void) const
Access to the name of the parameter.
std::string _name
Name of the parameter.
bool _ok
If the parameter is valid.
void setLine(int line)
Set the line _line for this parameter in the parameter file.
bool operator()(const std::shared_ptr< ParameterEntry > p1, const std::shared_ptr< ParameterEntry > p2) const
Comparison of two ParameterEntry objects.
void display(std::ostream &out) const
Display.
size_t getNbValues(void) const
Access to the number of values of the parameter.
bool _unique
If the parameter is unique.
const int & getLine(void) const
Access to the line number for this parameter in the parameter file.
int _line
Line for this parameter in _paramFile.
std::shared_ptr< ParameterEntry > _next
Acces to the next parameter.
void setUnique(bool u)
Set the _unique flag.
void setNext(std::shared_ptr< ParameterEntry > p)
Set the _next pointer.
virtual ~ParameterEntry(void)
Destructor.
bool _hasBeenInterpreted
If the parameter has been interpreted.
void setHasBeenInterpreted(void)
Set the _hasBeenInterpreted flag. to true.
bool isUnique(void) const
Access to the _unique flag.
std::string _paramFile
File from which this parameter was read.
Allows the comparison of two ParameterEntry objects.
bool hasBeenInterpreted(void) const
Access to the _hasBeenInterpreted flag.
void removeComments(std::string &line)
bool isOk(void) const
Access to the _ok flag.
std::ostream & operator<<(std::ostream &os, const Algorithm &algo)
Operator to write parameters used for hot restart.
ParameterEntry(const std::string &entry, bool removeComments=true)
Constructor.
std::list< std::string > _values
List of values for the parameter.
bool operator<(const ParameterEntry &p) const
Comparison with another entry.
const std::string & getParamFile(void) const
Access to the parameter file of the parameter.
std::shared_ptr< ParameterEntry > getNext(void) const
Access to another ParameterEntry.
std::string getAllValues(void) const
void setParamFile(const std::string ¶mFile)
Set the name of the parameter file _paramFile.