Add =, ==, and != for Dynamic_Objects

closes #251
This commit is contained in:
Jason Turner
2016-03-12 12:44:05 -07:00
parent 16ffbca6d6
commit d5ae30191d
3 changed files with 59 additions and 3 deletions

View File

@@ -82,6 +82,10 @@ namespace chaiscript
}
}
bool has_attr(const std::string &t_attr_name) const {
return m_attrs.find(t_attr_name) != m_attrs.end();
}
Boxed_Value &get_attr(const std::string &t_attr_name)
{
return m_attrs[t_attr_name];
@@ -105,7 +109,6 @@ namespace chaiscript
return get_attr(t_method_name);
}
std::map<std::string, Boxed_Value> get_attrs() const
{
return m_attrs;