Sunday, April 26, 2009

comp.lang.c++ - 25 new messages in 13 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* U++ 1096 - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/31d71e8485eda075?hl=en
* Public read-only member - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/f0332667521dca45?hl=en
* ⊙▂⊙ professional wholesale sport shoes,clothing www.fjrjtrade.com paypal
payment China Low price - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/fd0f20ac29fa886a?hl=en
* Strange syntax error - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9b9b07ba1592bfb2?hl=en
* parallel computing in C++ - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/d9c643de979b9a57?hl=en
* Discount footwear (D&G shoes,GUCCI shoes, LV, UGG etc) paypal payment www.
guoshitrade.com - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/76a5ab79f18e0ba6?hl=en
* ★ ★ Wholesale Hogan shoes (paypal payment)( www.fjrjtrade.com) - 1 messages,
1 author
http://groups.google.com/group/comp.lang.c++/t/bba30fb8fd7dfa59?hl=en
* Get Nike Shoes at Super Cheap Prices (www.guoshitrade.com paypal payment ) -
1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/d111eccb0e045019?hl=en
* ♥~♥~♥ wholesale mlb jersey,wholesale nhl jersey(www.fjrjtrade.com) - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/02711dbb0ef8f153?hl=en
* Wholesale Lacoste POLO T-shirt $9.9 over 40 pieces free shipping( www.
guoshitrade.com ) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/08cee0904c0b0b28?hl=en
* efficient priority queue for a few descrete priority levels - 3 messages, 3
authors
http://groups.google.com/group/comp.lang.c++/t/841a3f2a5510ce4d?hl=en
* Eclipse - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/deaa133771727c03?hl=en
* An kind of member function name scope specification - 9 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/9b9867f3ebb493ad?hl=en

==============================================================================
TOPIC: U++ 1096
http://groups.google.com/group/comp.lang.c++/t/31d71e8485eda075?hl=en
==============================================================================

== 1 of 1 ==
Date: Sat, Apr 25 2009 3:51 pm
From: Mirek Fidler


Website: http://www.ultimatepp.org
Download: http://code.google.com/p/upp-mirror/downloads/list

U++ is BSD licensed C++ cross-platform rapid application development
suite focused on
programmers productivity without sacrificing runtime performance.

Based on strictly deterministic design it provides an alternative to
GC collected platforms,
even for bussines logic oriented problems.

Library
Painter: High quality, "SVG/PDF strength" software renderer
HttpClient improvements
JPGRaster now can read EXIF thumbnails
ODBC SQL interface
Microsoft SQL Server interface improved
Multithreading: ConditionVarable and LazyUpdate classes
LocalProcess class
RichText: EncodeHTML support for superscript, subscript, strikeout
and smallcaps
Mersenne twister based Random

TheIDE:
Win32 .pdb debugger:
shows tooltip with values of variables
improved displaying of strings in pdb debugger
watches are remembered, Clear all watches function, Drag&Drop to
watches
Packages can be sorted by name
Packages now can be colored and assigned bold/italic font
Package files underlined if recently changed
SVN support, SVN history of file
Compare with file, compare with patch
Assist++
New heurestic error recovery of C++ parser
New code navigator bar
Position of Assist parameter info improved
Context go to (Alt+J) now jumps to layout designer when invoked on
layout class template
Topic++ finished; documentation now visible (and editable) as tooltip
annotations of sources
Abbreviations: e.g. type "i" and press Ctrl+[.] to expand it to if
() ;
Icon editor: free angle rotation
"Insert" color or U++ specific includes (.lay, .iml, .tpp group)
Print command (of source files)
Editor: ToUpper/Lower/InitCaps/SwapCase

==============================================================================
TOPIC: Public read-only member
http://groups.google.com/group/comp.lang.c++/t/f0332667521dca45?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 12:55 am
From: "LiShuJun"


_bitrate = ???
"Jonathan Lee" <chorus@shaw.ca>
??????:86052278-4a48-443e-ace4-8bcfd91b7ed2@v15g2000yqn.googlegroups.com...
> So I've seen on some web sites a solution for the problem of having a
> class member that is public and read-only. Probably you've all seen
> this, but basically it makes a reference to a private member, and adds
> a const:
>
> class SoundEffect {
> public:
> SoundEffect() : bitrate(_bitrate) { };
> long const & bitrate;
> private:
> long _bitrate; // Info the user might want, but class doesn't
> use.
> }
>
> Personally, I don't mind this approach over a getBitrate() member
> _supposing_ that the value of "_bitrate" is not essential to the
> operation of SoundEffect. i.e., if someone worked around the const and
> changed "_bitrate", it wouldn't be that important.
>
> I'm wondering if there are other caveats to this method. To me it
> seems friendlier for the user of the class, but maybe I'm overlooking
> something.

==============================================================================
TOPIC: ⊙▂⊙ professional wholesale sport shoes,clothing www.fjrjtrade.com
paypal payment China Low price
http://groups.google.com/group/comp.lang.c++/t/fd0f20ac29fa886a?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 2:20 am
From: x17882989@126.com


the www.fjrjtrade.com web upgrade.so pls check our company other web
www.fjrjtrade.com
wholesale sport shoes,clothing, in china www.fjrjtrade.com
Our company is a professional wholesale sport
shoes,clothing, in china

www.fjrjtrade.com paypal paymet www.fjrjtrade.com
this is our website http://www.fjrjtrade.com


we are wholesase sport shoes and wear online


we offer best service and good price. paypal paymet www.fjrjtrade.com


we are welcome you come in our website. paypal paymet www.fjrjtrade.com

we are fjrjtrade.com. we trade product include


Nike Shoes Wholesale, Jordan SHOES, Air Force one 1s ,Nike Shox, Nike
shoe Air Max,Nike


shoes wholesale, Wholesale nike shoes: nike air force 1, Nike shoeair
Dunk, Nike air paypal paymet www.fjrjtrade.com


jordan, Nike air dunks dunks, Nike shox kobe NIke air jordan
(tl;nz;r4;turbo,monster), nike


air maxtn shox(90;95;97;2003;2004;360;Tn;Plus). Nike shoes sale and
wholesale: replica nike


shoes of Nike trainers,Nike sneakers,nike running shoes,Nike Men"s
shoes,nike women"s


shoes,Nike mens shoes, nike womens shoes. sale nike shoes: Nike Air
force 1, nike air force


one, nike air jordan, nike air jordans,nike air dunk,nike air
dunks,Nike shox,Nike paypal paymet www.fjrjtrade.com


shocks,Nike shox tl,Nike shox nz,Nike shox r4,Nike shox ride,Nike
shox
turbo,nike shox


monster,nike airmax, Nike Air max tn plus,Nike air max 90,Nike air
max
95, Nike air max 97,


Nike air max 2003,Nike air max 2004,Nike air max 360,Nike air rift.
China replica shoes


factory and Nike factory wholesale and sale replica nike shoes to
your
Nike shop & nike paypal paymet www.fjrjtrade.com


store. we wholesale new nike sneakers air jordan sneakers at cheap
price.cheap gucci prada


chanel fendi shoes sneakers handbag purse at wholesale price.china
wholesale louis vuitton


gucci prada dg bathing ape bbc at wholesale price.china wholesale
sneakers Nike celebrates


25 birthday of Air Force OnesWholesale Nike Jordans nike in china|
nike
shoes air jordan


supplier from china|nike in china|nike shoes in china|nike shoes
trade
in china|nike shoes paypal paymet www.fjrjtrade.com


in stock from china|Adidas Running for Nike in China|Wholesale Air
Jordans China|Sock


Wholesale Nike|Jordans Nike Wholesale|Jordans Wholesale|Buy Jordans
Wholesale|Wholesale


Nike Shox|Camera Digital Nike Wholesale| Nike Shoes Wholesale Womens|
Air Jordans Price


Wholesale|Wholesale Nike Air Force 1|Buying Jordans Wholesale|Air
Force One Shoes paypal paymet www.fjrjtrade.com


Wholesale|Cheapest Nike Web Wholesale|Wholesale Custom Air Force One|
Nike Wholesale


Supplier|Nike Shoes Wholesale China|Cheapest Nike Web Wholesale|
Account Nike Pal Pay


Wholesale|Wholesale Nike Sneaker|Discount Jordans Price Wholesale|
Wholesale Basketball paypal paymet www.fjrjtrade.com


Shoes Nike|Jordans Retro Wholesale|Wholesale Nike Tennis Shoes|
Wholesale Jordans In


China|Nike Air Force Wholesale|Nike Golf Shirt Wholesale|Air Jordans
Price Wholesale|1 Air


Force Jordans Wholesale Buy Nike Shoes For Wholesale|Custom Jordans
Wholesale|Wholesale paypal paymet www.fjrjtrade.com


Jordans|Wholesale Retro Jordans|Cheap Jordans Wholesale|Wholesale
Nike
Shox|Wholesale Nike


Air Jordans|Nike Golf Shirt Wholesale|Cheapest Nike Web Wholesale|
Wholesale Jordans|Nike


Shoes Wholesale Womens|Cheapest Nike Web Wholesale|Wholesale Air
Force
One And Jordans|Air


Jordans Price Wholesale|Nike Shoes Wholesale Womens|Wholesale Nike
Air
Force 1|Jordans


Wholesale|China In Jordans Wholesale Nike Wholesale Outlet|Wholesale
Custom Air Force


One|Nike Wholesale Outlet|Nike Shoes Wholesale Womens|Jordans
Wholesale|Nike Wholesale


Outlet|Wholesale Nike Dunk|Account Nike Pal Pay Wholesale|Wholesale
Nike Air paypal paymet www.fjrjtrade.com


Jordans|Wholesale Air Jordans|Wholesale Nike Sneaker|Wholesale
Jordans|
Jordan Wholesale


List|Wholesale Nike Shoes|Jordans Wholesale Prices|Wholesale Nike
Shoes|Wholesale Nike paypal paymet www.fjrjtrade.com


Distributor|Discount Jordans Price Wholesale|Nike Shoes Wholesale
China|Wholesale Retro


Jordans|China In Jordan Nike Shoes Wholesale|Jordans Wholesale|Nike T
Shirt Wholesale|Air


Jordans Wholesale|Air China Jordans Wholesale|Camera Digital Nike
Wholesale|Jordans paypal paymet www.fjrjtrade.com


Wholesale Prices|Air Jordans At Wholesale Price|Wholesale Nike Air
Force One|Cheapest Nike


Web Wholesale|Wholesale Jordans|Account Nike Pal Pay Wholesale|Buy
Jordans


Wholesale|Cheapest Nike Web Wholesale|Jordans Price Wholesale|
Wholesale Jordans In paypal paymet www.fjrjtrade.com


China|Air Jordans Price Wholesale|Wholesale Custom Jordans|Nike Shoes
Wholesale


China|Buying Jordans Wholesale|Wholesale Authentic Nike|Buy Nike
Shoes
For Wholesale|Nike


Wholesale China|Wholesale Nike Sneaker|Sock Wholesale Nike|Buy Nike
Shoes For


Wholesale|Nike Shoes Wholesale Womens|Wholesale Authentic Air Force
One|Cheap Jordans paypal paymet www.fjrjtrade.com


Wholesale |air force ones sneakers wholesale|Nike trainers,Nike
sneakers,Nike basketball


shoes, Nike running shoes,Nike Men"s shoes,Nike women"s shoes|Nike
Sneakers, Jordan paypal paymet www.fjrjtrade.com


Sneaker, Air Force 1s ,Nike Shox, Nike Dunks Sb, Bape Sta , Nike
wholesale - nike shoes


wholesale. We wholesale nike shoes, Jordan Shoes: Nike dunk, Nike
jordan, Nike air force


1s, Nike shox tl nz r4 r5 turbo monster, We wholesale nike shoes
types: Nike trainers and


sneakers, Nike basketball shoes, Nike running shoes, Nike Men"s
women"s mens womens shoes, paypal paymet www.fjrjtrade.com


Nike cheap discount shoes for nike shop store. Nike shoes wholesale
include: Nike dunks low


mid high, Nike Air force 1s low mid high, nike air jordan 21 XXI 22
xxii11 XI 13 20,nike


shocks, Nike air rift, Our china Nike factory sale and wholesale nike
shoes to your nike


shop & nike store and Nike Factory, buy cheap disount nike shoes from
china nike wholesale paypal paymet www.fjrjtrade.com


trading company now. Fot Tiffany Silver,you are welcome to visit
cnniketradecom to get


more info. We are China Nike sneakers customs Shoes Wholesale company
with nike outlets


(factory stores), we Wholesale Nike Sneakers from our Nike factory to
Nike shop & Nike paypal paymet www.fjrjtrade.com


store, and nike outlets. we also retail  and Wholesale all of Nike
stock Shoes, we have


many type of Nike Sneakers : Nike discount Shoes, Nike cheap Shoes,
Nike stock Shoes (Nike


Trainers, Nike Sneakers, Nike Running Shoes, Nike Basketball
Shoes,Nike Discount Shoes,Nike


Cheap Shoes, footwear, Sports Shoes ), We Import & Export & Trading &
Retail & sell & buy &


distribution & Wholesale Nike footwear and  Nike Shoes to this
market:USA,


America,US,United States,UK,England, United Kingdom, IT,Italy, NT,
Netherlands, China, paypal paymet www.fjrjtrade.com


Chinese, Germany, DE, Greece,GR, France, FR, Spain, Portugal, USA,
Switzerland,


Switzerland, Brazil, Chile, Peru,Canada, Japan,
Korea,Australia,Hongkong, Canada,Mexico,


Etc..Available Mens Size(tallie) 41 42 43 44 46 Available Womens
Size(tallie) 36 37 38 39


40 Your Shopping Spots for Nike Sneakers,Jordan Sneaker,Air Force
1S,Nike Dunks,nike sb, paypal paymet www.fjrjtrade.com


Bape nike,gucci,pradA,sta; Nike sneakers continue to be among the
hottest sellers in men"s


casual shoesFrom the ever popular Air Jordan line, now on 21, to the
off-shoot Jordan


brands to the Shox and latest LeBron James shoes, Nike is certainly
at
the top of their paypal paymet www.fjrjtrade.com


game. Hottest model wholesale here are:Nike Sneakers including custom
nike sneakers,nike


basketball sneakers, womens nike sneakers,rare nike sneakers, rare
nike sneakers,nike


retro snakers,exlusive nikes jordan sneakers, you can get wholesale
nike sneaker"s price


with discount for cheap nike shoes and cheapest jordan nike sneakers.
Jordan Sneakers paypal paymet www.fjrjtrade.com


incluing air jordan sneaker, michael jordan sneaker,we also wholesale
jordan sneakers,


cheap jordan sneakers, retro jordan sneakers,baby jordan sneakers for
custom and


customize and get your latest exclusive jordan sneakers,The third is
Air Force 1s incluing


  spongebob air force 1s,womens air force 1s, air force 1s
lyrics,high
top air force


1s,easter egg  air force 1s, rasheed wallace air force 1s, scarface
air force 1s,mr catoon


air force 1s,mid air force 1s, airbrush air force 1s,painted air
force
1s, neew green air


force 1s,all white air force 1s,kid air force 1s,2007 air force
1s,yellow,pink,white stash


air force 1s. air force 1s for wholesale and sale from our nike
store.
We supply you with paypal paymet www.fjrjtrade.com


various model for wholesale price: Nike men"s Shoes, Nike women"s
Shoes, Nike mens Shoes,


Nike womens Shoes, Nike men Shoes, Nike women Shoes, Nike kids Shoes,
Nike children


Shoes.Nike discount Shoes, Nike cheap Shoes, china Nike Shoes.also we
provide you with


colorful styles for nike sneakers, jordan sneakers, nike dunks, nike
sb and bape sta like paypal paymet www.fjrjtrade.com

==============================================================================
TOPIC: Strange syntax error
http://groups.google.com/group/comp.lang.c++/t/9b9b07ba1592bfb2?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 3:06 am
From: James Kanze


On Apr 25, 10:59 am, "Qu0ll" <Qu0llSixF...@gmail.com> wrote:
> I am trying to compile the open source OGLFT library with
> MinGW on Windows Vista but encounter this strange error:

> OGLFT.cpp: In member function `void OGLFT::Filled::init()':
> OGLFT.cpp:2538: error: invalid conversion from `void (*)()' to `void (*)()'
> OGLFT.cpp:2538: error: initializing argument 3 of `void
> gluTessCallback(GLUtesselator*, GLenum, void (*)())'

> How could "void (*)()" not be the same as "void (*)()"?

It's a very bad error message. Given the little bit of code you
show, it's clearly omitting both the parameter types and the
fact that the function is a member (supposing that Filled is a
class, and not a namespace).

> The actual line of source looks like this:
>
> gluTessCallback( tess_obj_, GLU_TESS_VERTEX,
> (GLUTessCallback)vertexCallback );

> where vertexCallback is defined as:

> void Filled::vertexCallback ( VertexInfo* vertex )
> {
> if ( vertex->color_tess_ != 0 )
> glColor4fv( vertex->color_tess_->color( vertex->v_ ) );
> if ( vertex->texture_tess_ != 0 )
> glTexCoord2fv( vertex->texture_tess_->texCoord( vertex->v_ ) );
> glVertex3dv( vertex->v_ );
> }

It would help if we could also see the declaration of
gluTessCallback, to see what it is expecting. And what
GLUTessCallback is. However, if Filled is a class, then the
expression (GLUTessCallback)vertexCallback shouldn't compile,
regardless---the only thing you can do with a member function is
call it (using an instance of the class, so you need a . or a ->
operator to the left, and a () operator to the right), or take
its address, in which case, you must use a qualified id and the
address of operator, e.g.:
&Filled::vertexCallback.
No other uses are legal.

> I am new to C++ so I am not sure how much more of the code I
> need to show you. I guess I just can't understand what the
> error message is actually trying to say.

It is more than vague. But to answer fully your question, we
need to know 1) whether Filled is a class or a namespace, 2) how
GLUTessCallback is defined, and 3) the signature (declaration)
of gluTessCallback.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

==============================================================================
TOPIC: parallel computing in C++
http://groups.google.com/group/comp.lang.c++/t/d9c643de979b9a57?hl=en
==============================================================================

== 1 of 3 ==
Date: Sun, Apr 26 2009 3:30 am
From: Juha Nieminen


Ian Collins wrote:
> Look for openMP.

This is a good tutorial for those fluent in C++:

http://bisqwit.iki.fi/story/howto/openmp/


== 2 of 3 ==
Date: Sun, Apr 26 2009 4:16 am
From: Rui Maciel


carlosp wrote:

> I am programing something that could greatly benefit from parallel
> computing in C++, in parts of the program, where user defined classes
> are passed. I have googled but I cannot find the proper tool. Any
> experienced programmer could give me a hint, namely some good
> keywords?

What's wrong with pthreads?


Rui Maciel

== 3 of 3 ==
Date: Sun, Apr 26 2009 2:05 pm
From: namekuseijin


Juha Nieminen wrote:
> Ian Collins wrote:
>> Look for openMP.
>
> This is a good tutorial for those fluent in C++:
>
> http://bisqwit.iki.fi/story/howto/openmp/

Hey, Warp! Nice to see you here... ;)

==============================================================================
TOPIC: Discount footwear (D&G shoes,GUCCI shoes, LV, UGG etc) paypal payment
www.guoshitrade.com
http://groups.google.com/group/comp.lang.c++/t/76a5ab79f18e0ba6?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 5:40 am
From: wholesale012@126.com


Footwear (paypal payment)( www.guoshitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guoshitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guoshitrade.com )
Gucci shoes `
Hogan shoes (paypal payment)( www.guoshitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guoshitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guoshitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guoshitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guoshitrade.com )
TODS shoes
AF shoes

Footwear (paypal payment)( www.guoshitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guoshitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guoshitrade.com )
Gucci shoes
Hogan shoes (paypal payment)( www.guoshitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guoshitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guoshitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guoshitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guoshitrade.com )
TODS shoes
AF shoes


Footwear (paypal payment)( www.guoshitrade.com )
Paul Smith shoes
Jordan shoes
Bape shoes
Chanel shoes (paypal payment)( www.guoshitrade.com )
D&G shoes
Dior shoes
ED hardy shoes
Evisu shoes
Fendi shoes (paypal payment)( www.guoshitrade.com )
Gucci shoes
Hogan shoes (paypal payment)( www.guoshitrade.com )
Lv shoes
Prada shoes (paypal payment)( www.guoshitrade.com )
Timberland shoes
Tous shoes
Ugg shoes (paypal payment)( www.guoshitrade.com )
Ice cream shoes
Sebago shoes (paypal payment)( www.guoshitrade.com )
Lacoste shoes
Air force one shoes (paypal payment)( www.guoshitrade.com )
TODS shoes
AF shoes

==============================================================================
TOPIC: ★ ★ Wholesale Hogan shoes (paypal payment)( www.fjrjtrade.com)
http://groups.google.com/group/comp.lang.c++/t/bba30fb8fd7dfa59?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 7:17 am
From: c351119@126.com


the www.fjrjtrade.com web upgrade.so pls check our company other web
www.fjrjtrade.com
wholesale sport shoes,clothing, in china www.fjrjtrade.com
Our company is a professional wholesale sport
shoes,clothing, in china

www.fjrjtrade.com paypal paymet www.fjrjtrade.com
this is our website http://www.fjrjtrade.com


we are wholesase sport shoes and wear online


we offer best service and good price. paypal paymet www.fjrjtrade.com


we are welcome you come in our website. paypal paymet www.fjrjtrade.com

we are fjrjtrade.com. we trade product include


Nike Shoes Wholesale, Jordan SHOES, Air Force one 1s ,Nike Shox, Nike
shoe Air Max,Nike


shoes wholesale, Wholesale nike shoes: nike air force 1, Nike shoeair
Dunk, Nike air paypal paymet www.fjrjtrade.com


jordan, Nike air dunks dunks, Nike shox kobe NIke air jordan
(tl;nz;r4;turbo,monster), nike


air maxtn shox(90;95;97;2003;2004;360;Tn;Plus). Nike shoes sale and
wholesale: replica nike


shoes of Nike trainers,Nike sneakers,nike running shoes,Nike Men"s
shoes,nike women"s


shoes,Nike mens shoes, nike womens shoes. sale nike shoes: Nike Air
force 1, nike air force


one, nike air jordan, nike air jordans,nike air dunk,nike air
dunks,Nike shox,Nike paypal paymet www.fjrjtrade.com


shocks,Nike shox tl,Nike shox nz,Nike shox r4,Nike shox ride,Nike
shox
turbo,nike shox


monster,nike airmax, Nike Air max tn plus,Nike air max 90,Nike air
max
95, Nike air max 97,


Nike air max 2003,Nike air max 2004,Nike air max 360,Nike air rift.
China replica shoes


factory and Nike factory wholesale and sale replica nike shoes to
your
Nike shop & nike paypal paymet www.fjrjtrade.com


store. we wholesale new nike sneakers air jordan sneakers at cheap
price.cheap gucci prada


chanel fendi shoes sneakers handbag purse at wholesale price.china
wholesale louis vuitton


gucci prada dg bathing ape bbc at wholesale price.china wholesale
sneakers Nike celebrates


25 birthday of Air Force OnesWholesale Nike Jordans nike in china|
nike
shoes air jordan


supplier from china|nike in china|nike shoes in china|nike shoes
trade
in china|nike shoes paypal paymet www.fjrjtrade.com


in stock from china|Adidas Running for Nike in China|Wholesale Air
Jordans China|Sock


Wholesale Nike|Jordans Nike Wholesale|Jordans Wholesale|Buy Jordans
Wholesale|Wholesale


Nike Shox|Camera Digital Nike Wholesale| Nike Shoes Wholesale Womens|
Air Jordans Price


Wholesale|Wholesale Nike Air Force 1|Buying Jordans Wholesale|Air
Force One Shoes paypal paymet www.fjrjtrade.com


Wholesale|Cheapest Nike Web Wholesale|Wholesale Custom Air Force One|
Nike Wholesale


Supplier|Nike Shoes Wholesale China|Cheapest Nike Web Wholesale|
Account Nike Pal Pay


Wholesale|Wholesale Nike Sneaker|Discount Jordans Price Wholesale|
Wholesale Basketball paypal paymet www.fjrjtrade.com


Shoes Nike|Jordans Retro Wholesale|Wholesale Nike Tennis Shoes|
Wholesale Jordans In


China|Nike Air Force Wholesale|Nike Golf Shirt Wholesale|Air Jordans
Price Wholesale|1 Air


Force Jordans Wholesale Buy Nike Shoes For Wholesale|Custom Jordans
Wholesale|Wholesale paypal paymet www.fjrjtrade.com


Jordans|Wholesale Retro Jordans|Cheap Jordans Wholesale|Wholesale
Nike
Shox|Wholesale Nike


Air Jordans|Nike Golf Shirt Wholesale|Cheapest Nike Web Wholesale|
Wholesale Jordans|Nike


Shoes Wholesale Womens|Cheapest Nike Web Wholesale|Wholesale Air
Force
One And Jordans|Air


Jordans Price Wholesale|Nike Shoes Wholesale Womens|Wholesale Nike
Air
Force 1|Jordans


Wholesale|China In Jordans Wholesale Nike Wholesale Outlet|Wholesale
Custom Air Force


One|Nike Wholesale Outlet|Nike Shoes Wholesale Womens|Jordans
Wholesale|Nike Wholesale


Outlet|Wholesale Nike Dunk|Account Nike Pal Pay Wholesale|Wholesale
Nike Air paypal paymet www.fjrjtrade.com


Jordans|Wholesale Air Jordans|Wholesale Nike Sneaker|Wholesale
Jordans|
Jordan Wholesale


List|Wholesale Nike Shoes|Jordans Wholesale Prices|Wholesale Nike
Shoes|Wholesale Nike paypal paymet www.fjrjtrade.com


Distributor|Discount Jordans Price Wholesale|Nike Shoes Wholesale
China|Wholesale Retro


Jordans|China In Jordan Nike Shoes Wholesale|Jordans Wholesale|Nike T
Shirt Wholesale|Air


Jordans Wholesale|Air China Jordans Wholesale|Camera Digital Nike
Wholesale|Jordans paypal paymet www.fjrjtrade.com


Wholesale Prices|Air Jordans At Wholesale Price|Wholesale Nike Air
Force One|Cheapest Nike


Web Wholesale|Wholesale Jordans|Account Nike Pal Pay Wholesale|Buy
Jordans


Wholesale|Cheapest Nike Web Wholesale|Jordans Price Wholesale|
Wholesale Jordans In paypal paymet www.fjrjtrade.com


China|Air Jordans Price Wholesale|Wholesale Custom Jordans|Nike Shoes
Wholesale


China|Buying Jordans Wholesale|Wholesale Authentic Nike|Buy Nike
Shoes
For Wholesale|Nike


Wholesale China|Wholesale Nike Sneaker|Sock Wholesale Nike|Buy Nike
Shoes For


Wholesale|Nike Shoes Wholesale Womens|Wholesale Authentic Air Force
One|Cheap Jordans paypal paymet www.fjrjtrade.com


Wholesale |air force ones sneakers wholesale|Nike trainers,Nike
sneakers,Nike basketball


shoes, Nike running shoes,Nike Men"s shoes,Nike women"s shoes|Nike
Sneakers, Jordan paypal paymet www.fjrjtrade.com


Sneaker, Air Force 1s ,Nike Shox, Nike Dunks Sb, Bape Sta , Nike
wholesale - nike shoes


wholesale. We wholesale nike shoes, Jordan Shoes: Nike dunk, Nike
jordan, Nike air force


1s, Nike shox tl nz r4 r5 turbo monster, We wholesale nike shoes
types: Nike trainers and


sneakers, Nike basketball shoes, Nike running shoes, Nike Men"s
women"s mens womens shoes, paypal paymet www.fjrjtrade.com


Nike cheap discount shoes for nike shop store. Nike shoes wholesale
include: Nike dunks low


mid high, Nike Air force 1s low mid high, nike air jordan 21 XXI 22
xxii11 XI 13 20,nike


shocks, Nike air rift, Our china Nike factory sale and wholesale nike
shoes to your nike


shop & nike store and Nike Factory, buy cheap disount nike shoes from
china nike wholesale paypal paymet www.fjrjtrade.com


trading company now. Fot Tiffany Silver,you are welcome to visit
cnniketradecom to get


more info. We are China Nike sneakers customs Shoes Wholesale company
with nike outlets


(factory stores), we Wholesale Nike Sneakers from our Nike factory to
Nike shop & Nike paypal paymet www.fjrjtrade.com


store, and nike outlets. we also retail  and Wholesale all of Nike
stock Shoes, we have


many type of Nike Sneakers : Nike discount Shoes, Nike cheap Shoes,
Nike stock Shoes (Nike


Trainers, Nike Sneakers, Nike Running Shoes, Nike Basketball
Shoes,Nike Discount Shoes,Nike


Cheap Shoes, footwear, Sports Shoes ), We Import & Export & Trading &
Retail & sell & buy &


distribution & Wholesale Nike footwear and  Nike Shoes to this
market:USA,


America,US,United States,UK,England, United Kingdom, IT,Italy, NT,
Netherlands, China, paypal paymet www.fjrjtrade.com


Chinese, Germany, DE, Greece,GR, France, FR, Spain, Portugal, USA,
Switzerland,


Switzerland, Brazil, Chile, Peru,Canada, Japan,
Korea,Australia,Hongkong, Canada,Mexico,


Etc..Available Mens Size(tallie) 41 42 43 44 46 Available Womens
Size(tallie) 36 37 38 39


40 Your Shopping Spots for Nike Sneakers,Jordan Sneaker,Air Force
1S,Nike Dunks,nike sb, paypal paymet www.fjrjtrade.com


Bape nike,gucci,pradA,sta; Nike sneakers continue to be among the
hottest sellers in men"s


casual shoesFrom the ever popular Air Jordan line, now on 21, to the
off-shoot Jordan

==============================================================================
TOPIC: Get Nike Shoes at Super Cheap Prices (www.guoshitrade.com paypal
payment )
http://groups.google.com/group/comp.lang.c++/t/d111eccb0e045019?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 7:28 am
From: wholesale free shipping

Minimum order is one,factory price also! Paypal payment free shipping
Get Nike Shoes at Super Cheap Prices
Discount Nike air jordans (www.guoshitrade.com) Paypal Payment
Discount Nike Air Max 90 Sneakers (www.guoshitrade.com)
Discount Nike Air Max 91 Supplier (www.guoshitrade.com)
Discount Nike Air Max 95 Shoes Supplier (www.guoshitrade.com)
Discount Nike Air Max 97 Trainers (www.guoshitrade.com)
Discount Nike Air Max 2003 Wholesale (www.guoshitrade.com)
Discount Nike Air Max 2004 Shoes Wholesale
(www.guoshitrade.com) D&G shoes Dior shoes ED hardy shoes Evisu shoes
Fendi shoes (paypal
Discount Nike Air Max 2005 Shop (www.guoshitrade.com) Paypal Payment
Discount Nike Air Max 2006 Shoes Shop (www.guoshitrade.com)
Discount Nike Air Max 360 Catalogs (www.guoshitrade.com)
Discount Nike Air Max Ltd Shoes Catalogs (www.guoshitrade.com)
Discount Nike Air Max Tn Men's Shoes (www.guoshitrade.com)
Discount Nike Air Max Tn 2 Women's Shoes (www.guoshitrade.com) Paypal
Payment
Discount Nike Air Max Tn 3 Customize (www.guoshitrade.com)
Discount Nike Air Max Tn 4 Shoes Customize
Discount Nike Air Max Tn 10 Shoes Customize Paypal Payment
Discount Nike Air Max Tn 6 Shoes Customize
Discount Nike Air Max Tn 8 Shoes Customize
( www.guoshitrade.com)
Discount Nike Air Max Tn 6 Supply (www.guoshitrade.com)
Discount Nike Shox NZ Shoes Supply (www.guoshitrade.com)
Discount Nike Shox OZ Sale (www.guoshitrade.com) Paypal Payment
Discount Nike Shox TL Store (www.guoshitrade.com)
Discount Nike Shox TL 2 Shoes Store (www.guoshitrade.com)
Discount Nike Shox TL 3 Distributor (www.guoshitrade.com)
Discount Nike Shox Bmw Shoes Distributor (www.guoshitrade.com)
Discount Nike Shox Elite Shoes Manufacturer
(www.guoshitrade.com)
Discount Nike Shox Monster Manufacturer (www.guoshitrade.com) Paypal
Payment
Discount Nike Shox R4 Running Shoes (www.guoshitrade.com)
Discount Nike Shox R5 Mens Shoes (www.guoshitrade.com)
Discount Nike Shox Ride Womens Shoes (www.guoshitrade.com)
Discount Nike Shox Rival Shoes Wholesaler (www.guoshitrade.com)
Discount Nike Shox Energia Wholesaler (www.guoshitrade.com)
Discount Nike Shox LV Sneaker (www.guoshitrade.com) Paypal Payment
Discount Nike Shox Turbo Suppliers (www.guoshitrade.com)
Discount Nike Shox Classic Shoes Suppliers
(www.guoshitrade.com)
Discount Nike Shox Dendara Trainer (www.guoshitrade.com)
Discount Nike Air Jordan 1 Seller (www.guoshitrade.com) Paypal
Payment
Discount Nike Air Jordan 2 Shoes Seller (www.guoshitrade.com)
Discount Nike Air Jordan 3 Collection (www.guoshitrade.com)
Discount Nike Air Jordan 4 Shoes Collection
(www.guoshitrade.com)
Discount Nike Air Jordan 5 Chaussure Shoes
(www.guoshitrade.com) Paypal Payment
Discount Nike Air Jordan 6 Catalog (www.guoshitrade.com)
Discount Nike Air Jordan 7 Shoes Catalog (www.guoshitrade.com)
Discount Nike Air Jordan 8 Customized (www.guoshitrade.com) Paypal
Payment
Discount Nike Air Jordan 9 Shoes Customized
(www.guoshitrade.com) NFL Jerseys Nhl Jerseys MLB Jerseys
Discount Nike Air Jordan 10 Wholesalers (www.guoshitrade.com)
Discount Nike Jordan 11 Shoes Wholesalers (www.guoshitrade.com)
Discount Nike Air Jordan 12 Factory (www.guoshitrade.com)
Discount Nike Air Jordan 13 Shoes Factory (www.guoshitrade.com) Paypal
Payment
Discount Nike Air Jordan 14 Shoes Sell (www.guoshitrade.com)
Discount Nike Air Jordan 16 Exporter (www.guoshitrade.com)
Discount Nike Air Jordan 17 Shoes Exporter
(www.guoshitrade.com)
Discount Nike Air Jordan 18 Offer (www.guoshitrade.com)
Discount Nike Air Jordan 19 Shoes Offer (www.guoshitrade.com)
Discount Nike Air Jordan 20 Manufacture (www.guoshitrade.com) Paypal
Payment
Discount Nike Jordan 21 Shoes Manufacture (www.guoshitrade.com)
Discount Nike Jordan 23 Shoes Manufacture (www.guoshitrade.com)
Discount Nike Jordan 22 Shoes Manufacture (www.guoshitrade.com)
Discount Nike Jordan 24 Shoes Manufacture (www.guoshitrade.com)
Paypal Payment

==============================================================================
TOPIC: ♥~♥~♥ wholesale mlb jersey,wholesale nhl jersey(www.fjrjtrade.com)
http://groups.google.com/group/comp.lang.c++/t/02711dbb0ef8f153?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 9:01 am
From: irlychleng


Our Company offers nfl, nba, nhl, mlb, football replica jerseys,
cheap
nfl, nba, nhl, mlb, football jerseys, football jerseys, authentic
nfl,
nba, nhl, mlb, football jersey, youth nfl, nba, nhl, mlb, football
jerseys, nfl, nba, nhl, mlb, football throwback jersey, nhl jerseys,
mlb jerseys, nba jerseys, official nfl, nba, nhl, mlb, football
jerseys, nfl, nba, nhl, mlb, football apparel, personalized nfl, nba,
nhl, mlb, football jersey, discount football jerseys, nfl, nba, nhl,
mlb, football jerseys youth sizes, nfl, nba, nhl, mlb, football
merchandise, kids nfl, nba, nhl, mlb, football jerseys wholesales
etc.

*)Heavyweight mesh body
*)Stiched name plate
*)Dazzle side slits
*)Drop tail authentic NFL, NBA, NHL, MLB, FOOTBALL equipment label
*)Authentic embroidered NFL, NBA, NHL, MLB, FOOTBALL equipment logo
at
the neck
*)Stiched numbers on front, back and sleeves or shoulders
*)Imported
*)100% polyester
if you are interest with us, pls log in www.fjrjtrade.com
see the detail inf.


==============================================================================
TOPIC: Wholesale Lacoste POLO T-shirt $9.9 over 40 pieces free shipping( www.
guoshitrade.com )
http://groups.google.com/group/comp.lang.c++/t/08cee0904c0b0b28?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 11:51 am
From: wholesale free shipping


wholesale Lacoste polo t shirt ( www.guoshitrade.com )
wholesale Lacoste t shirt solid color ( www.guoshitrade.com )
wholesale Lacoste sweater ( www.guoshitrade.com )
wholesale Lacoste shirt ( www.guoshitrade.com )
wholesale Lacoste ( www.guoshitrade.com )
wholesale Ralph lauren ( www.guoshitrade.com )
wholesale Ralph Lauren polo ( www.guoshitrade.com )
wholesale Polo ( www.guoshitrade.com )
wholesale Ralph lauren polo t shirt( www.guoshitrade.com )
wholesale Ralph lauren t shirt ( www.guoshitrade.com )
wholesale Abercrombie & fitch shirt ( www.guoshitrade.com )
wholesale Burberry shirt ( www.guoshitrade.com )
wholesale Burberry t shirt ( www.guoshitrade.com )
wholesale NBA sports jersey ( www.guoshitrade.com )

T-Shirts
AFF T-shirt
ARMANI T-shirt www.guoshitrade.com
BAPE T-shirt
BBC T-shirt www.guoshitrade.com
BOSS T-shirt www.guoshitrade.com
Burberry T-shirt
CA T-shirt men's www.guoshitrade.com
CA T-shirt women's
COOGI T-shirt
CRYSTAL ROCK women's
D&G T-shirt www.guoshitrade.com
DIESEL T-shirt
DSQUARED T-shirt men's
DSQUARED T-shirt women's
Eck? Unltd T-shirt
ED T-shirt men's
ED T-shirt women's www.guoshitrade.com
EVISU T-shirt
GGG T-shirt
G-STAR T-shirt
HLST T-Shirt www.guoshitrade.com
Lacoste T-shirt
Lacoste T-shirt women's
LRG T-shirt
O&L T-shirt www.guoshitrade.com
POLO 3 T-shirt
POLO 4 T-shirt
POLO 5 T-shirt www.guoshitrade.com
POLO T-shirt men's
POLO T-shirt women's
Prada T-shirt
RUEHL T-Shirt www.guoshitrade.com
SMET T-Shirt men's
SMET T-Shirt women's www.guoshitrade.com
VERSACE T-shirt
A&F Abercrombie & Fitch T-shirt men's
A&F Abercrombie & Fitch T-shirt women's

Welcome to GuoShi Trade Co.Ltd,which was founded in2002.Our company
majors in making improving and allocating gym shoes.Our company has
won extensive acceptance and appreciation since it came into
existence
by honour,excellent products, preferential price and high quality of
service. In order to enlarge our business, we are looking for
overseas
clients to explore wider market with us.

So far, products produced in our company are various, ranging
from many manners of well-known brands, such as Nike Shox , Dunk,
Bape, Puma, Gucci, Jordan1 to 22 ,Kobe, Adidas, Max 2006 Move a
telephone Electronic Product and so on, also have some hot sold
clothes,
LV bags and so on. Gym shoes have experienced strict evaluation
before
they are put into market, which entitled them with insurance of good
qualitiy.
What is more, our products have favourable and reasonable price, which
wins our
products stronger competition.

Honour and good quality are our company's fundamental elements.
We also bases on mutual benefits. We hope that we can start steady
and long-term partnership with more overseas clients.

Anyone who wants to cooperate with our company can have a look
at our website:www.guoshitrade.com or send E-mail to us.

MSN: guoshitrade@hotmail.com
e-mail: guoshitrade@hotmail.com
yahho: guoshitrade@yahoo.cn
web: http://www.guoshitrade.com

==============================================================================
TOPIC: efficient priority queue for a few descrete priority levels
http://groups.google.com/group/comp.lang.c++/t/841a3f2a5510ce4d?hl=en
==============================================================================

== 1 of 3 ==
Date: Sun, Apr 26 2009 12:07 pm
From: Marcel Müller


Hi,

I seek for a standard solution for a priority queue with the following
properties:

- a limited and small number of priorities
(constructor argument or template parameter)
- multiple writers
- multiple readers
- insert O(1)
- remove O(1)
- support for dedicated high priority readers that only handle requests
up to a certain priority level
- support for rollback (for readers only)

std::priority_queue has O(log n) and therefore does not fit.


Marcel


== 2 of 3 ==
Date: Sun, Apr 26 2009 1:37 pm
From: red floyd


Marcel Müller wrote:
> Hi,
>
> I seek for a standard solution for a priority queue with the following
> properties:
>
> - a limited and small number of priorities
> (constructor argument or template parameter)
> - multiple writers
> - multiple readers
> - insert O(1)
> - remove O(1)
> - support for dedicated high priority readers that only handle requests
> up to a certain priority level
> - support for rollback (for readers only)
>
> std::priority_queue has O(log n) and therefore does not fit.
>

comp.algorithms?


== 3 of 3 ==
Date: Sun, Apr 26 2009 2:33 pm
From: Sam


Marcel Müller writes:

> Hi,
>
> I seek for a standard solution for a priority queue with the following
> properties:
>
> - a limited and small number of priorities
> (constructor argument or template parameter)
> - multiple writers
> - multiple readers
> - insert O(1)
> - remove O(1)
> - support for dedicated high priority readers that only handle requests
> up to a certain priority level
> - support for rollback (for readers only)
>
> std::priority_queue has O(log n) and therefore does not fit.

Given that your number of priorities is limited, all you need is a std::list
for each individual priority.

An object's priority selects its std::list. A push and a pop on a std::list
is O(1).


==============================================================================
TOPIC: Eclipse
http://groups.google.com/group/comp.lang.c++/t/deaa133771727c03?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Apr 26 2009 2:04 pm
From: namekuseijin


Noah Roberts wrote:
> Michael Sgier wrote:
>> I said to post here because the eclipse forums are DEAD
>
> Yeah, but you might eventually get help there. You're unlikely to find
> it here.

Yeah, here you'll only find emacs/vi hackers or people interested in the
theoretical aspects of the language.

==============================================================================
TOPIC: An kind of member function name scope specification
http://groups.google.com/group/comp.lang.c++/t/9b9867f3ebb493ad?hl=en
==============================================================================

== 1 of 9 ==
Date: Sun, Apr 26 2009 2:59 pm
From: ram@zedat.fu-berlin.de (Stefan Ram)


For teaching purposes, I wrote this program as a first
example of a definition of a class with non-static functions:

#include <iostream>
#include <ostream>

class Account
{ private:
double balance_;
public:
Account( double const balance );
double balance(); };

::Account::Account( double const balance )
{ this->balance_ = balance; }

double ::Account::balance()
{ return this->balance_; }

int main()
{ Account acct( 100 );
::std::cout << acct.::Account::balance() << '\n';
::std::cout << acct.balance() << '\n'; }

(End of program.)

Regarding »acct.::Account::balance()«:

I was not aware that such a full qualification of a member
function in a member function call was possible at all.

When would one need this? (To call an overloaded function
of a base class?)

Can the above definition of the class still be improved somehow?

~~

Is such an account class is a good example for teaching?

I need the first example to be very simple, yet it needs
to suggest to be useful and related to applications of
the language.

Are there any other good examples of classes, that are

- small and simple
- not already part of the standard library
- not requiring special knowledge of a field
- looking somewhat natural and useful

?

Account classes are used often.

Sometimes, a class for complex numbers is used in teaching,
but such a class already is defined in the standard library
and might look too »mathematical«.

The only other topic that comes to my mind right now
would be a class for a compound date (YYYY, MM, DD)
or time (HH, MM) object.

== 2 of 9 ==
Date: Sun, Apr 26 2009 3:05 pm
From: ram@zedat.fu-berlin.de (Stefan Ram)


ram@zedat.fu-berlin.de (Stefan Ram) writes:
>::Account::Account( double const balance )
>Can the above definition of the class still be improved somehow?

Except for using a member initialization list,
which I intentionally omitted in this first example.

== 3 of 9 ==
Date: Sun, Apr 26 2009 3:10 pm
From: Ian Collins


Stefan Ram wrote:
> For teaching purposes, I wrote this program as a first
> example of a definition of a class with non-static functions:
>
> #include <iostream>
> #include <ostream>
>
> class Account
> { private:
> double balance_;
> public:
> Account( double const balance );
> double balance(); };
>
> ::Account::Account( double const balance )
> { this->balance_ = balance; }
>
> double ::Account::balance()
> { return this->balance_; }
>
> int main()
> { Account acct( 100 );
> ::std::cout << acct.::Account::balance() << '\n';
> ::std::cout << acct.balance() << '\n'; }
>
> (End of program.)
>
> Regarding »acct.::Account::balance()«:
>
> I was not aware that such a full qualification of a member
> function in a member function call was possible at all.
>
> When would one need this? (To call an overloaded function
> of a base class?)

Yes, try adding

struct Base
{
double balance() { return 42; }
};

class Account : public Base

and

std::cout << acct.::Base::balance() << '\n';

> Can the above definition of the class still be improved somehow?

You can do away with the superfluous leading :: (::std::).

I assume the layout was to compress the code for Usenet?

The this-> in balance() is superfluous, as is the leading ::.

balance() should be declared cost if it doesn't change anything.

No too big a deal here, but in general geters are a design smell.

--
Ian Collins


== 4 of 9 ==
Date: Sun, Apr 26 2009 3:18 pm
From: blargg.ei3@gishpuppy.com (blargg)


Stefan Ram wrote:
[snip oddly-formatted useless Account class]
> Is such an account class is a good example for teaching?
>
> I need the first example to be very simple, yet it needs
> to suggest to be useful and related to applications of
> the language.
>
> Are there any other good examples of classes, that are
>
> - small and simple
> - not already part of the standard library
> - not requiring special knowledge of a field
> - looking somewhat natural and useful
>
> ?

Here's a simple example I just wrote that performs a clearly useful
encapsulation of the Fibonacci sequence. Any student can understand
the sequence, and how hiding the details simplifies the client code in
main(). The constructor performs an important function, and it shows
the use of const versus non-const. I felt that using operator
overloads (++ and operator ()) weren't appropriate. I took some
liberty with whitespace, showing how when something is short and
trivial, one might use fewer newlines.

#include <iostream>

class Fibonacci {
int a, b;
public:
Fibonacci();
int value() const { return a; }
void next();
};

Fibonacci::Fibonacci() : a( 0 ), b( 1 ) { }

void Fibonacci::next()
{
int fib = a + b;
a = b;
b = fib;
}

int main()
{
Fibonacci f;
for ( int n = 10; n--; )
{
std::cout << f.value() << ',';
f.next();
}
std::cout << '\n';
return 0;
}


== 5 of 9 ==
Date: Sun, Apr 26 2009 3:47 pm
From: ram@zedat.fu-berlin.de (Stefan Ram)


Ian Collins <ian-news@hotmail.com> writes:
>> #include <iostream>
>> #include <ostream>
>>
>> class Account
>> { private:
>> double balance_;
>> public:
>> Account( double const balance );
>> double balance(); };
>>
>> ::Account::Account( double const balance )
>> { this->balance_ = balance; }
>>
>> double ::Account::balance()
>> { return this->balance_; }
>>
>> int main()
>> { Account acct( 100 );
>> ::std::cout << acct.::Account::balance() << '\n';
>> ::std::cout << acct.balance() << '\n'; }
>>
>I assume the layout was to compress the code for Usenet?

The above layout contains 4 blank lines,
separating the 5 major parts of the source:

- include directives
- a class specifier
- a member function definition
- another member function definition and
- a function definition

If I would add additional empty lines within
each of these parts, those 4 top-most separators
would not stand out in the prominent way the do now.

So this is some kind of global scope view.

If I would show only the class specifier, I might
have used vertical spacing for this, maybe like:

class Account
{
private:
double balance_;

public:
Account( double const balance );
double balance(); };

So, maybe I do not consider formatting to be static, but to be
dynamic. The format used by me in the OP was focused on the
large-scale structure of the source code. If I would have to
edit a function definition, I might start by »unpacking« it,
that is, by inserting some vertical space to see more of the
smaller-scale structure. I assume that readers will adapt the
layout to their current need. I do not deem the layout chosen
by me to be best for all purposes.

== 6 of 9 ==
Date: Sun, Apr 26 2009 4:08 pm
From: ram@zedat.fu-berlin.de (Stefan Ram)


Ian Collins <ian-news@hotmail.com> writes:
>>public:
>>Account( double const balance );
>>double balance(); };
>No too big a deal here, but in general geters are a design smell.

Yes, but I do not see a getter here. Let me explain why:

I have quoted the public interface of the class above.

It misses an important feature: documentation.

So I will add that document now in the way the names suggest:

- The constructor initializes a new account with
an opening balance as the argument.

- The function »balance« returns the current balance
of the account.

No mentioning of private fields in the documentation.

So a client/caller/reader of this interface can not know
whether this function returns the value of a private field or
obtains the balance using some other means. He does not know
which fields an object of this class has. Therefore, I do not
deem »balance« to be a getter, just a non-void function.

I would see a getter, if the documentation would read instead:

- Each object of this class has a field named »balance_«.
The function »balance« returns the value of this field.

(Admittedly, my code does not have documentation, so both
interpretations are possible. But the first one was intended.)

== 7 of 9 ==
Date: Sun, Apr 26 2009 4:18 pm
From: Ian Collins


Stefan Ram wrote:
> Ian Collins <ian-news@hotmail.com> writes:
>>> public:
>>> Account( double const balance );
>>> double balance(); };
>> No too big a deal here, but in general geters are a design smell.
>
> Yes, but I do not see a getter here. Let me explain why:
>
> I have quoted the public interface of the class above.
>
> It misses an important feature: documentation.
>
> So I will add that document now in the way the names suggest:
>
> - The constructor initializes a new account with
> an opening balance as the argument.
>
> - The function »balance« returns the current balance
> of the account.
>
> No mentioning of private fields in the documentation.
>
> So a client/caller/reader of this interface can not know
> whether this function returns the value of a private field or
> obtains the balance using some other means. He does not know
> which fields an object of this class has. Therefore, I do not
> deem »balance« to be a getter, just a non-void function.

In that case, call it something like calculateBalance.

--
Ian Collins


== 8 of 9 ==
Date: Sun, Apr 26 2009 4:56 pm
From: ram@zedat.fu-berlin.de (Stefan Ram)


Ian Collins <ian-news@hotmail.com> writes:
>In that case, call it something like calculateBalance.

I deem that to be ugly. I still follow the advice Rob Pike
gave 20 years ago:

»Procedure names should reflect what they do;
function names should reflect what they return.«

Rob Pike; »Notes on Programming in C«; February 21, 1989

http://www.lysator.liu.se/c/pikestyle.html

Also, this is consistent with ISO/IEC 14882:2003(E), where in
<cmath>, the function is named »::std::sin«, not »::std::calculateSin«.

Also, either »calculate« has no meaning at all, or
»calculateBalance« is /more/ transparent than »balance«,
because it leaks the implementation detail that the result of
this call is »calculated« - while »balance« alone is
completely opaque, yielding no information whatsoever about
the implementation, just stating what is returned.
And exposing implementation details is exactly why getters
are being criticized.

== 9 of 9 ==
Date: Sun, Apr 26 2009 5:17 pm
From: Ian Collins


Stefan Ram wrote:
> Ian Collins <ian-news@hotmail.com> writes:
>> In that case, call it something like calculateBalance.
>
> I deem that to be ugly. I still follow the advice Rob Pike
> gave 20 years ago:
>
> »Procedure names should reflect what they do;
> function names should reflect what they return.«
>
In the context of C++, what is a function and what is a procedure?

--
Ian Collins


==============================================================================

You received this message because you are subscribed to the Google Groups "comp.lang.c++"
group.

To post to this group, visit http://groups.google.com/group/comp.lang.c++?hl=en

To unsubscribe from this group, send email to comp.lang.c+++unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c++/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com/?hl=en

No comments:

Post a Comment