#ifndef MT1Q2_H #define MT1Q2_H ///////////////////////////////////////////// // MT2Q2.h - Scope class #include #include class Scope { public: std::string& name() { return _name; } std::string& type() { return _type; } size_t& complexity() { return _complexity; } static bool more(const Scope* pS1, const Scope* pS2); private: std::string _name = "unknown"; std::string _type = "unknown"; size_t _complexity = 0; }; inline bool Scope::more(const Scope* pS1, const Scope* pS2) { Scope s1Test = *pS1; Scope s2Test = *pS2; return s1Test.complexity() > s2Test.complexity(); } #endif