-/*
- * TypeDescription.cpp
- *
- * Created on: Sep 4, 2012
- * Author: holy
- */
-
#include "TypeDescription.h"
#include <algorithm>
} else {
fields.insert(std::make_pair(n, f));
}
+ if (f.IsReferenced() || f.IsAggregate()) {
+ link = true;
+ }
}
bool TypeDescription::HasField(const std::string &name) const {
}
+int TypeDescription::GetMaxSize() {
+ int max = 0;
+ for (map<int, TypeDescription>::const_iterator
+ i(typeDescriptions.begin()),
+ end(typeDescriptions.end());
+ i != end; ++i) {
+ if (i->second.Size() > max) {
+ max = i->second.Size();
+ }
+ }
+ return max;
+}
+
+
void TypeDescription::WriteSourceWiki(std::ostream &out) {
vector<string> types;
for (map<int, TypeDescription>::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {