X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Futil%2FMultiRangeExpression.hpp;fp=include%2Fanna%2Fcore%2Futil%2FMultiRangeExpression.hpp;h=aa03b8b3a94e2a7a2086949eacecb5482958d208;hp=d79f02ee4ad84d9da0c1c4105a842e5b76a640e4;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/core/util/MultiRangeExpression.hpp b/include/anna/core/util/MultiRangeExpression.hpp index d79f02e..aa03b8b 100644 --- a/include/anna/core/util/MultiRangeExpression.hpp +++ b/include/anna/core/util/MultiRangeExpression.hpp @@ -26,7 +26,7 @@ class MultiRangeExpression { std::map < unsigned int, int/*dummy*/ > a_data; // expands literal - void refresh(void) throw(); // keep coherence between 'a_data' and 'a_literal' + void refresh(void) ; // keep coherence between 'a_data' and 'a_literal' public: @@ -40,21 +40,21 @@ public: * * @return Literal */ - const char * getLiteral(void) const throw() { return a_literal.c_str(); } + const char * getLiteral(void) const { return a_literal.c_str(); } /** * Gets expanded representation for stored literal. E.g.: '1-3,8,10' => '1,2,3,7,8,10' * * @return Expanded literal */ - std::string getExpandedLiteral(void) const throw(); + std::string getExpandedLiteral(void) const ; /** * Simplify stored literal. E.g.: '1,1,1,2,3,7,8,10' => '1-3,8,10' and returns it. * * @return Simplified literal */ - const char * simplifyLiteral(void) throw(); + const char * simplifyLiteral(void) ; // helpers @@ -64,7 +64,7 @@ public: * @param value Value to be tested * @return True or false */ - bool contain(const unsigned int & value) const throw() { return (a_data.find(value) != a_data.end()); } + bool contain(const unsigned int & value) const { return (a_data.find(value) != a_data.end()); } // setters @@ -73,7 +73,7 @@ public: * * @param l Literal to be stored */ - void setLiteral(const char * l) throw() { + void setLiteral(const char * l) { a_literal = l ? l : ""; refresh(); } @@ -84,7 +84,7 @@ public: * * @param l Literal to be added */ - void addLiteral(const char * l) throw() { + void addLiteral(const char * l) { if(!l) return; if(std::string(l) != "") {