"Visualzier 명령"의 두 판 사이의 차이
jjuiddong
1번째 줄: | 1번째 줄: | ||
http://mariusbancila.ro/blog/2007/04/06/tweaking-autoexpdat-for-custom-types-in-vs2005/ | http://mariusbancila.ro/blog/2007/04/06/tweaking-autoexpdat-for-custom-types-in-vs2005/ | ||
− | // code | + | Visualzier 예제 |
+ | |||
+ | // code | ||
template < typename T > | template < typename T > | ||
class foo | class foo | ||
10번째 줄: | 12번째 줄: | ||
T Z; | T Z; | ||
foo(T x, T y, T z): X(x), Y(y), Z(z) {} | foo(T x, T y, T z): X(x), Y(y), Z(z) {} | ||
− | }; | + | }; |
− | + | ||
//autoexp.dat | //autoexp.dat | ||
foo< * > { | foo< * > { | ||
23번째 줄: | 24번째 줄: | ||
", Z=", | ", Z=", | ||
[$c.Z, X] | [$c.Z, X] | ||
− | + | ) | |
− | + | ) | |
− | + | children | |
− | + | ( | |
− | + | #( | |
− | + | X: [$c.X, X], | |
− | + | Y: [$c.Y, X], | |
− | + | Z: [$c.Z, X], | |
− | + | [sum]: [$c.X + $c.Y + $c.Z, d] | |
− | + | ) | |
− | + | ) | |
− | } | + | } |
2013년 3월 30일 (토) 13:15 판
http://mariusbancila.ro/blog/2007/04/06/tweaking-autoexpdat-for-custom-types-in-vs2005/
Visualzier 예제
// code template < typename T > class foo { public: T X; T Y; T Z; foo(T x, T y, T z): X(x), Y(y), Z(z) {} }; //autoexp.dat foo< * > { preview ( #( "X=", [$c.X, X], ", Y=", [$c.Y, X], ", Z=", [$c.Z, X] ) ) children ( #( X: [$c.X, X], Y: [$c.Y, X], Z: [$c.Z, X], [sum]: [$c.X + $c.Y + $c.Z, d] ) ) }