|
|
|
|||||
|
Issue with Icecs 3.3.0
Hello,
It seems that Dictionaries are not well generated with ice 3.3.0. See what I got : Code:
public static _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> read(IceInternal.BasicStream is__)
{
int sz__ = is__.readSize();
_System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress> r__ = new _System.Collections.Generic.Dictionary<castor.UnderlyingCrossCorrelationKey, castor.CorrelationStress>();
for(int i__ = 0; i__ < sz__; ++i__)
{
castor.UnderlyingCrossCorrelationKey k__;
v__ = new castor.UnderlyingCrossCorrelationKey();
k__.read__(is__);
is__.readObject(new Patcher__("::castor::CorrelationStress", r__, k__));
}
return r__;
}
See another example : Code:
public static _System.Collections.Generic.Dictionary<castor.CrossKey, double> read(IceInternal.BasicStream is__)
{
int sz__ = is__.readSize();
_System.Collections.Generic.Dictionary<castor.CrossKey, double> r__ = new _System.Collections.Generic.Dictionary<castor.CrossKey, double>();
for(int i__ = 0; i__ < sz__; ++i__)
{
castor.CrossKey k__;
v__ = new castor.CrossKey();
k__.read__(is__);
double v__;
v__ = is__.readDouble();
r__[k__] = v__;
}
return r__;
}
|
|
|||||
|
Here's an example :
Code:
module Test
{
struct Key
{
long Key1;
long Key2;
};
dictionary<Key, double> Dict;
}; // module Test
Code:
public static _System.Collections.Generic.Dictionary<Test.Key, double> read(IceInternal.BasicStream is__)
{
int sz__ = is__.readSize();
_System.Collections.Generic.Dictionary<Test.Key, double> r__ = new _System.Collections.Generic.Dictionary<Test.Key, double>();
for(int i__ = 0; i__ < sz__; ++i__)
{
Test.Key k__;
v__ = new Test.Key();
k__.read__(is__);
double v__;
v__ = is__.readDouble();
r__[k__] = v__;
}
return r__;
}
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| icecs.dll and Mono | kwaclaw | Comments | 1 | 11-15-2007 08:28 PM |
| ICECS error in in Windows XP Sp2 | lifejoy | Help Center | 9 | 08-24-2006 03:53 AM |
| Build issue with ICECS 3.1.0 | lkw | Bug Reports | 2 | 07-18-2006 11:19 PM |
| a misstake for IceCS-2.0.0 vs.net2003 solution? | lkw | Bug Reports | 3 | 01-04-2005 07:45 PM |
| Question about the IceCS generate.exe | damingyipai | Help Center | 3 | 08-12-2004 10:18 PM |