Remove dynamic exceptions
[anna.git] / include / anna / core / util / DelayMeter.hpp
index 295bd0c..752eb74 100644 (file)
@@ -59,7 +59,7 @@ public:
    * \warning Elimina el punto de referencia temporal que puediera haberse establecido con #setTopReference.
    * \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion.
    */
-  void setControlPoint() throw() {
+  void setControlPoint() {
     a_timestamp = _TimeUnit::getTime();
     clearTopReference();
   }
@@ -72,7 +72,7 @@ public:
    *
    * \param timestamp Valor de referencia a establecer.
    */
-  void setControlPoint(const _TimeUnit& timestamp) throw() {
+  void setControlPoint(const _TimeUnit& timestamp) {
     a_timestamp = timestamp;
     clearTopReference();
   }
@@ -89,17 +89,17 @@ public:
    * la marca de tiempo) y el núcleo y demás partes pueden tener conocimiento de que
    * esa tarea ha sido finalidad.
    */
-  void setTopReference(const _TimeUnit& topReference) throw() { a_topReference = topReference; }
+  void setTopReference(const _TimeUnit& topReference) { a_topReference = topReference; }
 
   /**
    * Elimina el punto de referencia temporal.
    */
-  void clearTopReference() throw() { a_topReference = _TimeUnit(0); }
+  void clearTopReference() { a_topReference = _TimeUnit(0); }
 
   /**
    * Inicializa el valor del punto de referencia.
    */
-  void clear() throw() { a_timestamp = 0; }
+  void clear() { a_timestamp = 0; }
 
   /**
    * Devuelve el número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporización.
@@ -109,7 +109,7 @@ public:
    * \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion.
    * \warning Si detecta algun fallo devolvera 0.
    */
-  _TimeUnit getValue() const throw() {
+  _TimeUnit getValue() const {
     a_now = (a_topReference == _TimeUnit(0)) ? _TimeUnit::getTime() : a_topReference;
     return (a_now > a_timestamp) ? (a_now - a_timestamp) : _TimeUnit(0);
   }
@@ -123,7 +123,7 @@ public:
    * \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion.
    * \warning Si detecta algun fallo devolvera 0.
    */
-  _TimeUnit getValue(const _TimeUnit& now) const throw() {
+  _TimeUnit getValue(const _TimeUnit& now) const {
     return ((a_now = now) > a_timestamp) ? (a_now - a_timestamp) : _TimeUnit(0);
   }
 
@@ -131,40 +131,40 @@ public:
    * Devuelve el tiempo que se usó como referencia al calcular el retardo en #getValue
    * \return El tiempo que se usó como referencia al calcular el retardo en #getValue
    */
-  const _TimeUnit& getNow() const throw() { return a_now; }
+  const _TimeUnit& getNow() const { return a_now; }
 
   /**
    * Operador copia.
    * \param other Instancia de la que copiar.
    */
-  DelayMeter& operator= (const DelayMeter& other) throw() { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; }
+  DelayMeter& operator= (const DelayMeter& other) { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; }
 
   /**
    * Compara el retardo acumulado por esta instancia con el valor recibido.
    * \param left Valor numérico con el comparar.
    * \return \em true si el retardo acumulado es mayor que el parámetro recibido o \em false en otro caso.
    */
-  bool operator> (const _TimeUnit& left) const throw() { return getValue() > left; }
+  bool operator> (const _TimeUnit& left) const { return getValue() > left; }
 
   /**
    * Compara el retardo acumulado por esta instancia con el valor recibido.
    * \param left Valor numérico con el comparar.
    * \return \em true si el retardo acumulado es mayor que el parámetro recibido o \em false en otro caso.
    */
-  bool operator< (const _TimeUnit& left) const throw() { return getValue() < left; }
+  bool operator< (const _TimeUnit& left) const { return getValue() < left; }
 
   /**
    * Devuelve la cadena que muestra el tiempo medido por esta instancia.
    * \return la cadena que muestra el tiempo medido por esta instancia.
    */
-  std::string asString() const throw() { return getValue().asString(); }
+  std::string asString() const { return getValue().asString(); }
 
   /**
    * Devuelve la cadena de depuración de esta instancia.
    * \param whatis Texto con el nombre lógico de esta instancia.
    * \return la cadena de depuración de esta instancia.
    */
-  std::string asDebugString(const char* whatis) const throw() {
+  std::string asDebugString(const char* whatis) const {
     std::string result(whatis);
     result += " { TopReference: ";
     result += a_topReference.asString();