E
eric
Greetings,
I am looking for C++ implementations of a pattern similar to the
following description. This pattern is a wrapper of sorts (in the
general sense, not like a Decorator) for a single arithmetic value. In
the base class of this pattern, instances can be multiplied, added,
compared, copied, and generally treated just like any other arithmetic
value EXCEPT that the value of such instances cannot be directly
assigned nor accessed. Only through classes derived from this base
class can values be directly assigned or accessed. This may sound like
a strange class design but it meets the requirements for certain
problems.
If anyone knows of a publicly available implementation (posted on the
net, described in a book, etc.) written in C++ that fits the
description above, please post it here.
Thanks,
Eric.
I am looking for C++ implementations of a pattern similar to the
following description. This pattern is a wrapper of sorts (in the
general sense, not like a Decorator) for a single arithmetic value. In
the base class of this pattern, instances can be multiplied, added,
compared, copied, and generally treated just like any other arithmetic
value EXCEPT that the value of such instances cannot be directly
assigned nor accessed. Only through classes derived from this base
class can values be directly assigned or accessed. This may sound like
a strange class design but it meets the requirements for certain
problems.
If anyone knows of a publicly available implementation (posted on the
net, described in a book, etc.) written in C++ that fits the
description above, please post it here.
Thanks,
Eric.