1

typedef bool Bool;
Class Description
{
public:
inline Bool IsTypeA() const { return IsType(TYPE_A); }
inline Bool IsTypeB() const { return IsType(TYPE_B); }
inline Bool IsTypeC() const { return IsType(TYPE_C); }
Bool IsType(DescriptionType T) const { return (T == Type()); }
DescriptionType Type() const { return m_Type; }

private:
DescriptionType m_Type;
}

I can't make this shit up

Comments
  • 1
    What.
  • 0
    @Root Calling 3 functions to get the type
    it is bloating the class with functions. just to get the type.

    why not GetType()

    so you can do in de code
    if(Description.GetType() == TYPE_A)
Add Comment