Implement the set method.

This commit is contained in:
steve 1999-07-20 05:12:22 +00:00
parent 563ec1bb81
commit 104f892f99
1 changed files with 9 additions and 1 deletions

View File

@ -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.
*