From 104f892f99781b73e387d99c8987fe01097219e1 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 20 Jul 1999 05:12:22 +0000 Subject: [PATCH] Implement the set method. --- verinum.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/verinum.cc b/verinum.cc index 730dba5d8..8b262a1b8 100644 --- a/verinum.cc +++ b/verinum.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) -#ident "$Id: verinum.cc,v 1.8 1999/05/13 04:02:09 steve Exp $" +#ident "$Id: verinum.cc,v 1.9 1999/07/20 05:12:22 steve Exp $" #endif # include "verinum.h" @@ -125,6 +125,11 @@ verinum::V verinum::get(unsigned idx) const return bits_[idx]; } +verinum::V verinum::set(unsigned idx, verinum::V val) +{ + return bits_[idx] = val; +} + unsigned long verinum::as_ulong() const { assert(nbits_ <= 8 * sizeof(unsigned long)); @@ -305,6 +310,9 @@ bool operator == (const verinum&left, const verinum&right) /* * $Log: verinum.cc,v $ + * Revision 1.9 1999/07/20 05:12:22 steve + * Implement the set method. + * * Revision 1.8 1999/05/13 04:02:09 steve * More precise handling of verinum bit lengths. *