![]() |
Gorgon Game Engine
|
This class allows embedded types to become scripting types that are passed around as values. More...
Public Member Functions | |
MappedValueType (const std::string &name, const std::string &help) | |
MappedValueType (const std::string &name, const std::string &help, const T_ &def) | |
virtual void | Assign (Data &l, const Data &r) const override |
template<class ... P_> | |
void | MapConstructor (ParameterList params) |
virtual Data | Parse (const std::string &str) const override |
Parses a string into this data. This function is allowed to throw. More... | |
virtual std::string | ToString (const Data &data) const override |
Converts a data of this type to string. More... | |
Protected Member Functions | |
template<class O_ > | |
std::enable_if< std::is_copy_constructible< O_ >::value, void >::type | addcopyconst () |
template<class O_ > | |
std::enable_if<!std::is_copy_constructible< O_ >::value, void >::type | addcopyconst () |
bool | compare (const Data &l, const Data &r) const override |
virtual void | deleteobject (const Data &obj) const override |
This class allows embedded types to become scripting types that are passed around as values.
This class requires T_ to be copy constructable.
MappedValueType | ( | const std::string & | name, |
const std::string & | help, | ||
const T_ & | def | ||
) |
MappedValueType | ( | const std::string & | name, |
const std::string & | help | ||
) |
|
protected |
References Gorgon::Scripting::MapFunction().
|
protected |
References Data::GetValue().
|
overrideprotectedvirtual |
References ASSERT, Data::IsConstant(), Data::IsReference(), and Data::ReferenceValue().
void MapConstructor | ( | ParameterList | params | ) |
References ASSERT, and Gorgon::Scripting::MapFunction().
|
overridevirtual |
Parses a string into this data. This function is allowed to throw.
References Gorgon::Resource::GID::Data.
|
overridevirtual |
Converts a data of this type to string.
This function should never throw, if there is no data to display, recommended this play is either [ EMPTY ], or Typename #id
References Data::GetValue().