Changed some value_t method names

- simplify -> simplified
 - cast -> casted

This is to differentiate them from in_place_cast and in_place_simplify.
This commit is contained in:
John Wiegley 2009-02-16 04:00:01 -04:00
parent 4de2f50818
commit aa69b273de
2 changed files with 4 additions and 4 deletions

View file

@ -237,10 +237,10 @@ void export_value()
.def("__str__", py_dump_relaxed)
.def("__repr__", py_dump)
.def("cast", &value_t::cast)
.def("casted", &value_t::casted)
.def("in_place_cast", &value_t::in_place_cast)
.def("simplify", &value_t::simplify)
.def("simplified", &value_t::simplified)
.def("in_place_simplify", &value_t::in_place_simplify)
// jww (2009-02-07): Allow annotating, and retrieving annotations

View file

@ -731,14 +731,14 @@ public:
* in_place_cast
* in_place_simplify
*/
value_t cast(type_t cast_type) const {
value_t casted(type_t cast_type) const {
value_t temp(*this);
temp.in_place_cast(cast_type);
return temp;
}
void in_place_cast(type_t cast_type);
value_t simplify() const {
value_t simplified() const {
value_t temp = *this;
temp.in_place_simplify();
return temp;