Ejemplo n.º 1
0
void UnionMetaClass::walk_referenced_meta_classes(MetaClassApplier *x) {
    AggregateMetaClass::walk_referenced_meta_classes(x);
    suif_vector<FieldDescription*>::iterator it = _union_fields->begin(), end = _union_fields->end();
    FieldDescription* fieldDescription;
    for ( ; it != end ; it++ ) {
        fieldDescription = *it;
        const MetaClass* currentType = fieldDescription->get_meta_class();
	(*x)(const_cast<MetaClass*>(currentType));
        }
    }
Ejemplo n.º 2
0
const MetaClass* UnionIterator::current_meta_class() const {
  return  _is_valid ? _current_field_description->get_meta_class() : 0;
}