Refactor ICG

Hey buddy. I wanted to tell you this before you heard it from someone
else...

I refactored ICG.

Now, it's gonna look a little scary at first. But I promise you'll like
it when you get used to it. It'll be fine. You can trust me. #341
This commit is contained in:
Derek Bankieris
2016-10-28 14:37:12 -05:00
parent ba75f6ff37
commit ef1405c3be
22 changed files with 365 additions and 1009 deletions

View File

@ -17,26 +17,3 @@ void EnumValues::setHasDefinition( bool in ) {
bool EnumValues::getHasDefinition() {
return has_definition ;
}
std::ostream & operator << (std::ostream & os , EnumValues & ev ) {
os << " name = " << ev.name << std::endl ;
os << " file_name = " << ev.file_name << std::endl ;
os << " namespaces =" ;
ConstructValues::NamespaceIterator it ;
for ( it = ev.namespace_begin() ; it != ev.namespace_end() ; it++ ) {
os << " " << *it ;
}
os << std::endl ;
os << " parent classes =" ;
for ( it = ev.container_class_begin() ; it != ev.container_class_end() ; it++ ) {
os << " " << *it ;
}
os << std::endl ;
EnumValues::NameValueIterator eit ;
for ( eit = ev.begin() ; eit != ev.end() ; eit++ ) {
os << " " << (*eit).first << " " << (*eit).second << std::endl ;
}
return os ;
}