model_server/dd/src/ddict.h.cxx
// given a dd element for a data member or a member function
// (method), return the class which declares the member
given a dd element for a data member or a member function
(method), return the class which declares the member
given a dd element for a data member or a member function ( method ) return the class which declares the member
ddElementPtr ddElement::member_get_class() {
	Initialize(ddElement::member_get_class);
	ddElementPtr p = this;
	ddElementPtr using_class = NULL;
	if (p && p->get_kind() == DD_FIELD) {
		p = checked_cast(ddElement, p->get_parent());
		if (p) {
			using_class = p;
		}
	} else {
		if (p->get_kind() == DD_FUNC_DECL) {
			using_class = p->method_get_class();
		}
	}
	return using_class;
}
ddElementPtr ddElement :: member_get_class ( ) { Initialize ( ddElement :: member_get_class ) ; ddElementPtr p = this ; ddElementPtr using_class = NULL ; if ( p && p -> get_kind ( ) == DD_FIELD ) { p = checked_cast ( ddElement , p -> get_parent ( ) ) ; if ( p ) { using_class = p ; } } else { if ( p -> get_kind ( ) == DD_FUNC_DECL ) { using_class = p -> method_get_class ( ) ; } } return using_class ; }
given a dd element for a data member or a member function
(method), return the class which declares the member
given a dd element for a data member or a member function ( method ) return the class which declares the member