Devuelve el valor entero asociado a esta instancia.
\return El valor entero asociado a esta instancia.
*/
- int getValue() const throw() { return a_value; }
+ int getValue() const { return a_value; }
/**
Operador de asignacin entero.
\return La referencia a esta instancia.
*/
Integer& operator = (const int i)
- throw() {
+ {
a_value = i;
Data::setNull(false);
return *this;
\return La referencia a esta instancia.
*/
Integer& operator = (const Integer& other)
- throw() {
+ {
if(this != &other) {
setNull(other.isNull());
a_value = other.a_value;
Operador de conversion.
\return El valor entero asociado a esta instancia.
*/
- operator int () const throw() { return a_value; }
+ operator int () const { return a_value; }
/**
Devuelve una cadena con la informacion referente a esta instancia.
@return Una cadena con la informacion referente a esta instancia.
*/
- std::string asString() const throw();
+ std::string asString() const ;
private:
int a_value;
- void do_clear() throw() { a_value = 0; }
+ void do_clear() { a_value = 0; }
};
}