.TH UNIVERSAL 2 "13 May 1991" "Demeter" "Demeter Software" .SH NAME Universal \- methods attached to class Universal .SH DESCRIPTION .TP 10 virtual char *get_type(); Returns a character string whose value is the name of the class of the receiving object. .TP virtual void set_data_member( int index,Universal* value ); Generically sets the value of the part given by .I index in the receiving object. .TP virtual int number_of_parts(); Returns a count of both immediate and inherited parts in the receiving object. .TP virtual int num_of_imm_parts(); Returns a count of the immediate parts in the receiving object. .TP virtual Universal *get_data_member( int index ); Generically accesses the part given by .I index in the receiving object. .TP Universal *g_parse( char* filename ); Parses the text in file .I filename and fills in the receiving object. .TP Universal *g_parse( char* filename,char* cdfile ); Parses the text in file .I filename using grammar in file .I cdfile and fills in the receiving object. .TP virtual int g_equal( Universal* ); Performs deep comparison of the receiving object with another object and returns the result. .TP virtual Universal* g_copy(); Returns identical deep copy of the receiving object. .TP virtual void g_draw(); Displays detailed structure of the receiving object on the screen. .TP void g_displayAsTree( ostream& = cout ); Displays the receiving tree object in object graph notation. .TP void Universal::g_delete( char* fileName ); Recursively deletes a subgraph, described in .I fileName , of the receiving object graph. .TP char* g_code(); Generates C++ code to create an instance of an object identical to the receiver. .TP int g_check( char* className = NULL ); Checks whether the receiver is a legal object of class .I className. If .I className is not provided, the start symbol of the class dictionary is used. .TP void g_print(); Prints receiver object out to screen. .TP void g_print( char* outfilename ); Prints receiver object out to file .I filename. .TP void g_print( Universal* grammarobject,char* outfilename ); Prints receiver object out to file .I filename interpreting .I grammarobject. .LP .SH SEE ALSO g_check(2), g_code(2), g_copy(2), g_delete(2), g_displayAsTree(2), g_draw(2), g_equal(2), g_parse(2), g_print(2)