interned_string(const interned_string& o)
{raw_ = o.raw_;}
+ /// Assignment operator.
+ ///
+ /// @param o the other instance to assign to the current one.
+ interned_string&
+ operator=(const interned_string& o)
+ {
+ raw_ = o.raw_;
+ return *this;
+ }
+
/// Test if the current instance of @ref interned_string is empty.
///
/// @return true iff the currentisntance of @ref interned_string is
loc_manager_(l.loc_manager_)
{}
+ /// Assignment operator of the location.
+ ///
+ /// @param l the location to assign to the current one.
+ location&
+ operator=(const location& l)
+ {
+ value_ = l.value_;
+ loc_manager_ = l.loc_manager_;
+ return *this;
+ }
+
/// Default constructor for the @ref location type.
location()
: value_(), loc_manager_()
enumerator(const enumerator&);
+ enumerator&
+ operator=(const enumerator&);
+
bool
operator==(const enumerator& other) const;
other.get_enum_type()))
{}
+/// Assignment operator of the @ref enum_type_decl::enumerator type.
+///
+/// @param o
+enum_type_decl::enumerator&
+enum_type_decl::enumerator::operator=(const enumerator& o)
+{
+ priv_->env_ = o.get_environment();
+ priv_->name_ = o.get_name();
+ priv_->value_ = o.get_value();
+ priv_->enum_type_ = o.get_enum_type();
+ return *this;
+}
/// Equality operator
///
/// @param other the enumerator to compare to the current instance of