libsbml.Model.getListOfConstraints C# (CSharp) Method

getListOfConstraints() public method

public getListOfConstraints ( ) : ListOfConstraints
return ListOfConstraints
        public ListOfConstraints getListOfConstraints()
        {
            IntPtr cPtr = libsbmlPINVOKE.Model_getListOfConstraints__SWIG_0(swigCPtr);
            ListOfConstraints ret = (cPtr == IntPtr.Zero) ? null : new ListOfConstraints(cPtr, false);
            return ret;
        }

Usage Example

 public void test_Constraint_parent_create()
 {
     Model m = new Model(2,4);
       Constraint ct = m.createConstraint();
       ListOf lo = m.getListOfConstraints();
       assertTrue( lo == m.getConstraint(0).getParentSBMLObject() );
       assertTrue( lo == ct.getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbml.Model::getListOfConstraints
Model