mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 12:35:43 +08:00
refs #369, smaller changes
* rendered attribute in CSimulatedAircraft * Formatting * contains in CPropertyIndex * CAircraftModel, new type
This commit is contained in:
@@ -93,6 +93,16 @@ namespace BlackMisc
|
||||
//! Shif existing indexes to right and insert given index at front
|
||||
void prepend(int newLeftIndex);
|
||||
|
||||
//! Contains index?
|
||||
bool contains(int index) const;
|
||||
|
||||
//! Compare with index given by enum
|
||||
template<class EnumType> bool contains(EnumType ev) const
|
||||
{
|
||||
static_assert(std::is_enum<EnumType>::value, "Argument must be an enum");
|
||||
return contains(static_cast<int>(ev));
|
||||
}
|
||||
|
||||
//! First element casted to given type, usually then PropertIndex enum
|
||||
template<class CastType> CastType frontCasted() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user