refs #369, smaller changes

* rendered attribute in CSimulatedAircraft
* Formatting
* contains in CPropertyIndex
* CAircraftModel, new type
This commit is contained in:
Klaus Basan
2015-02-05 23:50:44 +01:00
parent 366721d9ad
commit 89424647aa
7 changed files with 45 additions and 6 deletions

View File

@@ -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
{