Mercurial > emacs
annotate test/cedet/tests/testfriends.cpp @ 112453:06719a229a46 default tip
* calc/calc.el (calc-default-power-reference-level)
(calc-default-field-reference-level): New variables.
* calc/calc-units.el (math-standard-units): Add dB and Np.
(math-logunits): New variable.
(math-extract-logunits, math-logcombine, calcFunc-luplus)
(calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level)
(calcFunc-fieldlevel, calcFunc-powerlevel, calc-level): New
functions.
(math-find-base-units-rec): Add entry for ln(10).
* calc/calc-help.el (calc-u-prefix-help): Add logarithmic help.
(calc-ul-prefix-help): New function.
* calc/calc-ext.el (calc-init-extensions): Autoload new units
functions. Add keybindings for new units functions.
| author | Jay Belanger <jay.p.belanger@gmail.com> |
|---|---|
| date | Sun, 23 Jan 2011 23:08:04 -0600 |
| parents | ef719132ddfa |
| children |
| rev | line source |
|---|---|
| 104494 | 1 // Test parsing of friends and how they are used in completion. |
| 2 /* | |
| 3 >> Thanks Damien Profeta for the nice example. | |
| 4 > | |
| 5 > I paste a small example. | |
| 6 > It would be great if friend can be well parsed and even greater if | |
| 7 > class B can access to all the members of A. | |
| 8 */ | |
| 9 | |
| 10 class Af // %2% ( ( "testfriends.cpp" ) ( "Af" "B::testB" ) ) | |
| 11 { | |
| 12 public: | |
| 13 int pubVar; | |
| 14 private: | |
| 15 int privateVar; | |
| 16 | |
| 17 friend class B; | |
| 18 | |
| 19 }; | |
| 20 | |
| 21 class B | |
| 22 { | |
| 23 public: | |
| 24 int testB(); | |
| 25 int testAB(); | |
| 26 | |
| 27 }; | |
| 28 | |
| 29 | |
| 30 int B::testB() { | |
| 31 Af classA; | |
| 32 classA.//-1- | |
| 33 ; //#1# ( "privateVar" "pubVar" ) | |
| 34 } | |
| 35 | |
| 36 int B::testAB() { // %1% ( ( "testfriends.cpp" ) ( "B" "B::testAB" ) ) | |
| 37 } | |
| 105377 | 38 |
