libsbml.Model.getListOfCompartmentTypes C# (CSharp) Method

getListOfCompartmentTypes() public method

public getListOfCompartmentTypes ( ) : ListOfCompartmentTypes
return ListOfCompartmentTypes
        public ListOfCompartmentTypes getListOfCompartmentTypes()
        {
            IntPtr cPtr = libsbmlPINVOKE.Model_getListOfCompartmentTypes__SWIG_0(swigCPtr);
            ListOfCompartmentTypes ret = (cPtr == IntPtr.Zero) ? null : new ListOfCompartmentTypes(cPtr, false);
            return ret;
        }

Usage Example

 public void test_CompartmentType_parent_create()
 {
     Model m = new Model(2,4);
       CompartmentType ct = m.createCompartmentType();
       ListOf lo = m.getListOfCompartmentTypes();
       assertTrue( lo == m.getCompartmentType(0).getParentSBMLObject() );
       assertTrue( lo == ct.getParentSBMLObject() );
       assertTrue( m == lo.getParentSBMLObject() );
 }
All Usage Examples Of libsbml.Model::getListOfCompartmentTypes
Model