template<class X, class Y = float>
class CGen {
};
class C : public CGen<int> {
};
using TC = CGen<C, string>;
thomas.beale wrote:ATTRIBUTES
...I should have some drop-down somewhere that only gives me DV_ORDERED and descendants as possibilities.
thomas.beale wrote:Now, I think you would be 99.999% safe assuming a maximum of two generic parameters - but two is common, e.g. Hash <T, K>.
thomas.beale wrote:PROPERTIES
Let's say I draw a property line from CONTACT to DV_INTERVAL; maybe the tool prevents me from doing this.
thomas.beale wrote:I have to create a type with the right binding, i.e. DV_INTERVAL<DV_DATE_TIME>, linked by <<binding>> to DV_INTERVAL<T>. Then I do a normal link from CONTACT to that. I think all you need to do here is to a) prevent a link going to a generic class from a non-generic class and b) enable the addition of bound classes with one or more of the generic parameters bound (remember, in general, they don't all have to be bound - you could define Hash<T, String> which would be Hash tables with string keys).
Return to Change requests / Demandes d'évolution
Users browsing this forum: No registered users and 2 guests