userland irrVariant useful?
Posted: Mon Mar 16, 2009 8:18 pm
hi,
i have a created a patch which should make the Attributesystem more maintainable. To archive this i created a Variant class. My question is:
Do you think that a user-land irrVariant will make some thinks easier?
Some advantages:
-the IAttributes.h+.cpp could be made templated and this will increase maintainability and decrease the filesize combined with a apichange extremely
-a Variant could be used for every GUIElement which enables the user to select something. Inplace of a ID a userpointer could be stored but the Variant wont be as fast as a directly stored userpointer/IReferenceCounted (may be we could add directly stored userpointers anyway )
So may be give me some feedback if i should elaborate that class or if i should go ahead to another topic.
i have a created a patch which should make the Attributesystem more maintainable. To archive this i created a Variant class. My question is:
Do you think that a user-land irrVariant will make some thinks easier?
Some advantages:
-the IAttributes.h+.cpp could be made templated and this will increase maintainability and decrease the filesize combined with a apichange extremely
-a Variant could be used for every GUIElement which enables the user to select something. Inplace of a ID a userpointer could be stored but the Variant wont be as fast as a directly stored userpointer/IReferenceCounted (may be we could add directly stored userpointers anyway )
So may be give me some feedback if i should elaborate that class or if i should go ahead to another topic.