Logo Search packages:      
Sourcecode: wims version File versions  Download package

void fr::ove::openmath::jome::model::Node::addChild ( Node  child  )  [inline, inherited]

Adds a child to the instance.
The child added is the last of the list.

Parameters:
child the child to add.

Definition at line 163 of file Node.java.

References fr::ove::openmath::jome::model::Node::adjustRank(), fr::ove::openmath::jome::model::Node::children, and fr::ove::openmath::jome::model::Node::setFather().

Referenced by fr::ove::openmath::jome::model::NaryOperator2::addElement(), fr::ove::openmath::jome::model::Node::changeRank(), fr::ove::openmath::jome::model::Differentiation::computeOrder(), fr::ove::openmath::jome::model::Icon::createLinear(), fr::ove::openmath::jome::ctrlview::bidim::FormulaDisplay::getFtsSelection(), fr::ove::openmath::jome::model::processor::WidthProcessor::iconify(), fr::ove::openmath::jome::model::processor::DepthProcessor::iconify(), insert(), fr::ove::openmath::jome::model::UnaryPostfixedOperator::insert(), fr::ove::openmath::jome::model::UnaryPlus::insert(), fr::ove::openmath::jome::model::UnaryOperator::insert(), fr::ove::openmath::jome::model::UnaryMinus::insert(), fr::ove::openmath::jome::model::Substraction::insert(), fr::ove::openmath::jome::model::NaryOperator2::insert(), fr::ove::openmath::jome::model::NaryOperator::insert(), fr::ove::openmath::jome::model::Icon::insert(), fr::ove::openmath::jome::model::Constant::insert(), fr::ove::openmath::jome::model::Bracket::insert(), fr::ove::openmath::jome::model::BinaryOperator::insert(), fr::ove::openmath::jome::model::Addition::insert(), and fr::ove::openmath::jome::model::Icon::uniconify().

                                     {
        if (children == null)
            children = new Vector(0, 1);
            
        children.addElement(child);
        child.setFather(this);
        adjustRank();
    }


Generated by  Doxygen 1.6.0   Back to index