![]() |
Gorgon Game Engine
|
This class represents a static constant. More...
Public Member Functions | |
Constant (const std::string &name, const std::string &help, Data value) | |
virtual Data | Get () const override final |
Returns the value of this static member. More... | |
virtual MemberType | GetMemberType () const override final |
Returns the type of this member. More... | |
const Type & | GetType () const |
Returns the type of the constant. More... | |
![]() | |
StaticMember (const std::string &name, const std::string &help) | |
bool | IsInstanceable () const |
Whether this member can be used to instantiate an object. More... | |
virtual bool | IsInstanceMember () const override final |
Returns if this member is an instance member. More... | |
![]() | |
Member (const std::string &name, const std::string &help) | |
virtual | ~Member () |
std::string | GetHelp () const |
Returns the help string. Help strings may contain markdown notation. More... | |
std::string | GetName () const |
Returns the name of this member. More... | |
const Member * | GetOwner () const |
std::string | GetQualifiedName () const |
Returns the namespace qualified name of this member. More... | |
Protected Attributes | |
Data | value |
![]() | |
std::string | help |
Help string of the datamember. More... | |
std::string | name |
The name of the datamember. More... | |
const Member * | parent |
Additional Inherited Members | |
![]() | |
enum | MemberType { RegularType, EventType, EnumType, Namespace, DataMember, Function, Constant } |
Possible member types. More... | |
![]() | |
virtual void | SetParent (const Member &parent) |
Changes the parent of the member. More... | |
This class represents a static constant.
Its value is fixed after its construction
References ASSERT, Data::IsValid(), Data::MakeConstant(), and Constant::value.
|
finaloverridevirtual |
Returns the value of this static member.
For types and functions, this function returns type and function objects.
Implements StaticMember.
References Constant::value.
|
finaloverridevirtual |
const Type& GetType | ( | ) | const |
Returns the type of the constant.
References Data::GetType(), and Constant::value.
|
protected |