1 #include "promotionmanager.h"
3 void PromotionManager::setPromotion(IType
* from
, IType
* to
)
5 m_promotions
[from
] = to
;
6 m_depromotions
[to
] = from
;
9 const IType
* PromotionManager::getPromotion(const IType
* p
) const
11 return m_promotions
[p
];
14 const IType
* PromotionManager::getDepromotion(const IType
* p
) const
16 return m_depromotions
[p
];