eolian-cxx: Renamed parameters_cxx_list -> constructor_parameters_list

This commit is contained in:
Savio Sena 2014-07-24 15:49:54 -03:00
parent cc04dff0b9
commit 90f46e36f2
2 changed files with 13 additions and 1 deletions

View File

@ -135,7 +135,7 @@ operator<<(std::ostream& out, constructors const& x)
<< (ctor.params.size() > 0 ? ", " : "")
<< "efl::eo::parent_type _p = (efl::eo::parent = nullptr))" << endl
<< tab(2) << ": " << class_name(x._cls.name)
<< "(_c" << (it - first) << "(" << parameters_cxx_list(ctor.params)
<< "(_c" << (it - first) << "(" << constructor_parameters_list(ctor.params)
<< (ctor.params.size() > 0 ? ", " : "")
<< "_p))" << endl
<< tab(1) << "{}" << endl << endl;

View File

@ -153,6 +153,18 @@ parameters_cxx_list
inline std::ostream&
operator<<(std::ostream& out, parameters_cxx_list const& x)
{
struct
constructor_parameters_list
{
parameters_container_type const& _params;
constructor_parameters_list(parameters_container_type const& params)
: _params(params)
{}
};
inline std::ostream&
operator<<(std::ostream& out, constructor_parameters_list const& x)
{
auto first = x._params.cbegin(),
last = x._params.cend();