1 #include "gearimpl/GearParametersImpl.h"
11 IntMap::const_iterator it = _intMap.find( key ) ;
12 if( it == _intMap.end() )
19 DoubleMap::const_iterator it = _doubleMap.find( key ) ;
20 if( it == _doubleMap.end() )
28 StringMap::const_iterator it = _stringMap.find( key ) ;
29 if( it == _stringMap.end() )
37 IntVecMap::const_iterator it = _intVecMap.find( key ) ;
38 if( it == _intVecMap.end() )
46 DoubleVecMap::const_iterator it = _doubleVecMap.find( key ) ;
47 if( it == _doubleVecMap.end() )
55 StringVecMap::const_iterator it = _stringVecMap.find( key ) ;
56 if( it == _stringVecMap.end() )
62 _intMap[ key ] = val ;
66 _doubleMap[ key ] = val ;
71 _stringMap[ key ] = val ;
76 _intVecMap[ key ] = vals ;
81 _doubleVecMap[ key ] = vals ;
86 _stringVecMap[ key ] = vals ;
92 _intKeys.reserve( _intMap.size() ) ;
94 for( IntMap::const_iterator it = _intMap.begin() ; it != _intMap.end() ; ++it ){
95 _intKeys.push_back( it->first ) ;
102 _doubleKeys.clear() ;
103 _doubleKeys.reserve( _doubleMap.size() ) ;
105 for( DoubleMap::const_iterator it = _doubleMap.begin() ; it != _doubleMap.end() ; ++it ){
106 _doubleKeys.push_back( it->first ) ;
115 _stringKeys.clear() ;
116 _stringKeys.reserve( _stringMap.size() ) ;
118 for( StringMap::const_iterator it = _stringMap.begin() ; it != _stringMap.end() ; ++it ){
119 _stringKeys.push_back( it->first ) ;
126 _intVecKeys.clear() ;
127 _intVecKeys.reserve( _intVecMap.size() ) ;
129 for( IntVecMap::const_iterator it = _intVecMap.begin() ; it != _intVecMap.end() ; ++it ){
130 _intVecKeys.push_back( it->first ) ;
137 _doubleVecKeys.clear() ;
138 _doubleVecKeys.reserve( _doubleVecMap.size() ) ;
140 for( DoubleVecMap::const_iterator it = _doubleVecMap.begin() ; it != _doubleVecMap.end() ; ++it ){
141 _doubleVecKeys.push_back( it->first ) ;
143 return _doubleVecKeys ;
149 _stringVecKeys.clear() ;
150 _stringVecKeys.reserve( _stringVecMap.size() ) ;
152 for( StringVecMap::const_iterator it = _stringVecMap.begin() ; it != _stringVecMap.end() ; ++it ){
153 _stringVecKeys.push_back( it->first ) ;
155 return _stringVecKeys ;
virtual const std::string & getStringVal(const std::string &key) const
String value for key.
virtual const std::vector< std::string > & getStringVecKeys() const
All keys of StringVec variables.
virtual const std::vector< int > & getIntVals(const std::string &key) const
Integer values for key.
virtual void setIntVals(const std::string &key, const std::vector< int > &vals)
Integer values for key.
virtual void setDoubleVals(const std::string &key, const std::vector< double > &vals)
Double values for key.
virtual ~GearParametersImpl()
Destructor.
virtual const std::vector< std::string > & getStringKeys() const
All keys of string variables.
virtual void setStringVals(const std::string &key, const std::vector< std::string > &vals)
String values for key.
virtual int getIntVal(const std::string &key) const
Integer value for key.
virtual const std::vector< std::string > & getDoubleKeys() const
All keys of double variables.
UnknownParameterException call Processor::end().
virtual double getDoubleVal(const std::string &key) const
Double value for key.
virtual const std::vector< std::string > & getDoubleVecKeys() const
All keys of DoubleVec variables.
virtual void setIntVal(const std::string &key, int val)
Set Integer value for key.
virtual const std::vector< double > & getDoubleVals(const std::string &key) const
Double values for key.
virtual const std::vector< std::string > & getIntVecKeys() const
All keys of IntVec variables.
virtual const std::vector< std::string > & getStringVals(const std::string &key) const
String values for key.
virtual void setStringVal(const std::string &key, const std::string &val)
String value for key.
virtual const std::vector< std::string > & getIntKeys() const
All keys of int variables.
virtual void setDoubleVal(const std::string &key, double val)
Double value for key.