[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c++

Re: Design issue - Container as a member of a class

Per

12/10/2008 9:28:00 PM

On 2008-12-10, Victor Bazarov <v.Abazarov@comAcast.net> wrote:
> Stephen Howe wrote:
>> I know about public and private inheritance. And they do not seem
>> right here.
>>
>> I frequently find that I have a container as a member of a class and I
>> wish to iterate over it. Yet the member is private (as data, it should
>> be). Exactly what should I be doing so that there should be an
>> interface?
>
> How would you like to "iterate"? You can write your own "for_each", you
> can write an interface that exposes the "begin" and "end" of your
> container, you can implement your own "start", "next", and "stop", along
> with "reset" or some such. You can even perform indexing yourself (if
> you think that your class should allow that, if it fits your model).
>
> V

Depending on the level of abstraction you need you can also return a
const reference to the private member to get read access to that
member. But observe that this means you are loosing abstraction and
generality it is in the end dependent on the problem. If you post some
example code I guess we would be in a better position to give you some
advice.

/Per
5 Answers

mm

6/25/2014 4:47:00 PM

0

On Wed, 25 Jun 2014 16:05:51 +0000 (UTC), Yisroel Markov
<ey.markov@MUNGiname.com> wrote:

>
>I guess there aren't many such Jews around, as the 26-inch "Rick Perry
>mezuza" is still up for sale -
>http://mezuzahstore.com/collections/100-and-above/products/rick-per...
>
>Of course, it could be the $999 price is the real constraint :-)

I'm no fan of Rick Perry, but I think they needed a maximum size for the
statute they passed, and if they weren't going to allow restrictions on
mezuzah use, it had to be one largER than any mezuzah a person would
really want to use. And they didn't want to find out later that some
people used 18" ones. Of course I wasn't there when he discussed this,
but I think "the Rick Perry mezuzah" may be unfairly making fun of him.
>
>OTOH, the State of Israel, or at least its Israel Airports Authority,
>is not afraid of flaunting its jock, as the mezuza at the entrance to
>Ben Gurion Airport Terminal 3 is about 50 inches tall. The one at the
>Kotel is 55 inches. Both have huge kosher scrolls which took years to
>write.
>http://www.israelnationalnews.com/News/News.a...
>--
>Yisroel "Godwrestler Warriorson" Markov - Boston, MA Member
>www.reason.com -- for a sober analysis of the world DNRC

--

Meir
It is better to eat an onion in Jerusalem than a cockerel in Egypt. 1055CE

Giorgies E Kepipesiom

6/25/2014 6:04:00 PM

0

On Wednesday, June 25, 2014 12:05:51 PM UTC-4, Yisroel Markov wrote:
>
> OTOH, the State of Israel, or at least its Israel Airports Authority,
> is not afraid of flaunting its jock, as the mezuza at the entrance to
> Ben Gurion Airport Terminal 3 is about 50 inches tall. The one at the
> Kotel is 55 inches. Both have huge kosher scrolls which took years to

Years? I don't believe that. And if you thought about it for a moment, neither would you. Depending on how regularly and how fast he writes, a professional sofer takes anywhere from 5 to 12 months to complete a whole Torah scroll. The whole Torah scroll has 304,805 letters. A mezuza has only 713. So it should take 1/427 the time to write a mezuza VS a whole Torah. So even a slow sofer whotakes a whole year to write a Torah should finish a mezuzah in about 8 hours. Since this mezuzah is so large, let us multiply that by 10. Eighty hours. Working eight hours a day, this mezuzah takes ten days to write. Maximum. Not "years". Someone is pulling someone's leg. To what purpose, I can't guess.

GEK

Dennis

6/26/2014 5:14:00 AM

0

Giborah wrote:

> [ Moderator's Comment: Please get back on Jewish content or things
> will
> start to be rejected., hw ]
> On Tuesday, June 24, 2014 12:58:59 PM UTC-7, Yisroel Markov wrote:
>> Ri-i-i-ight :-)
>>
>>
>>
>> Who would want a mezuza 24 inches long, anyway?

Mezuzelah?

>
> Somebody with phallus problems.

You beat me to that one (so to speak). :-)


Dennis

Yisroel Markov

6/27/2014 5:55:00 PM

0

On Wed, 25 Jun 2014 18:04:08 +0000 (UTC), Giorgies E Kepipesiom
<kepipesiom@hotmail.com> said:

>On Wednesday, June 25, 2014 12:05:51 PM UTC-4, Yisroel Markov wrote:
>>
>> OTOH, the State of Israel, or at least its Israel Airports Authority,
>> is not afraid of flaunting its jock, as the mezuza at the entrance to
>> Ben Gurion Airport Terminal 3 is about 50 inches tall. The one at the
>> Kotel is 55 inches. Both have huge kosher scrolls which took years to
>
>Years? I don't believe that. And if you thought about it for a moment, neither would you. Depending on how regularly and how fast he writes, a professional sofer takes anywhere from 5 to 12 months to complete a whole Torah scroll. The whole Torah scroll has 304,805 letters. A mezuza has only 713. So it should take 1/427 the time to write a mezuza VS a whole Torah. So even a slow sofer whotakes a whole year to write a Torah should finish a mezuzah in about 8 hours. Since this mezuzah is so large, let us multiply that by 10. Eighty hours. Working eight hours a day, this mezuzah takes ten days to write. Maximum. Not "years". Someone is pulling someone's leg. To what purpose, I can't guess.

I noticed that, but this is what the link said about the airport
mezuza: "Chabad-Lubavitch Rabbi Yitzchak Karichali, a ritual scribe in
Kfar Chabad, spent three years handwriting biblical verses on the
mezuzah?s oversized parchment interior. He painstakingly labored over
the tiniest of details to ensure the script?s conformance with the
font used by the First Chabad Rebbe, Rabbi Schneur Zalman of Liadi, in
the 18th century."

Perhaps, since the letters are so large, the sofer has to paint rather
than write them? One can do that fast with a brush, but with a quill?
And it was probably in addition to his other work. Like you, I don't
see how it would take three years of full-time work to paint 713
letters.

BTW, while looking at this I discovered that "there's an app for that"
- the Mezuzah Guide at both iTunes and Google Play.
--
Yisroel "Godwrestler Warriorson" Markov - Boston, MA Member
www.reason.com -- for a sober analysis of the world DNRC
--------------------------------------------------------------------
"Judge, and be prepared to be judged" -- Ayn Rand

mm

6/29/2014 4:05:00 AM

0

On Fri, 27 Jun 2014 17:54:46 +0000 (UTC), Yisroel Markov
<ey.markov@MUNGiname.com> wrote:

>
>BTW, while looking at this I discovered that "there's an app for that"
>- the Mezuzah Guide at both iTunes and Google Play.

Virtual Authentication. Wow.
--

Meir
It is better to eat an onion in Jerusalem than a cockerel in Egypt. 1055CE