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() )
27 StringMap::const_iterator it = _stringMap.find( key ) ;
28 if( it == _stringMap.end() )
35 IntVecMap::const_iterator it = _intVecMap.find( key ) ;
36 if( it == _intVecMap.end() )
43 DoubleVecMap::const_iterator it = _doubleVecMap.find( key ) ;
44 if( it == _doubleVecMap.end() )
51 StringVecMap::const_iterator it = _stringVecMap.find( key ) ;
52 if( it == _stringVecMap.end() )
58 _intMap[ key ] = val ;
62 _doubleMap[ key ] = val ;
67 _stringMap[ key ] = val ;
72 _intVecMap[ key ] = vals ;
77 _doubleVecMap[ key ] = vals ;
82 _stringVecMap[ key ] = vals ;
88 _intKeys.reserve( _intMap.size() ) ;
90 for( IntMap::const_iterator it = _intMap.begin() ; it != _intMap.end() ; ++it ){
91 _intKeys.push_back( it->first ) ;
99 _doubleKeys.reserve( _doubleMap.size() ) ;
101 for( DoubleMap::const_iterator it = _doubleMap.begin() ; it != _doubleMap.end() ; ++it ){
102 _doubleKeys.push_back( it->first ) ;
111 _stringKeys.clear() ;
112 _stringKeys.reserve( _stringMap.size() ) ;
114 for( StringMap::const_iterator it = _stringMap.begin() ; it != _stringMap.end() ; ++it ){
115 _stringKeys.push_back( it->first ) ;
122 _intVecKeys.clear() ;
123 _intVecKeys.reserve( _intVecMap.size() ) ;
125 for( IntVecMap::const_iterator it = _intVecMap.begin() ; it != _intVecMap.end() ; ++it ){
126 _intVecKeys.push_back( it->first ) ;
133 _doubleVecKeys.clear() ;
134 _doubleVecKeys.reserve( _doubleVecMap.size() ) ;
136 for( DoubleVecMap::const_iterator it = _doubleVecMap.begin() ; it != _doubleVecMap.end() ; ++it ){
137 _doubleVecKeys.push_back( it->first ) ;
139 return _doubleVecKeys ;
145 _stringVecKeys.clear() ;
146 _stringVecKeys.reserve( _stringVecMap.size() ) ;
148 for( StringVecMap::const_iterator it = _stringVecMap.begin() ; it != _stringVecMap.end() ; ++it ){
149 _stringVecKeys.push_back( it->first ) ;
151 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.