/usr/include/sbml/packages/comp/sbml/ReplacedElement.h is in libsbml5-dev 5.13.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 | /**
* @file ReplacedElement.h
* @brief Definition of ReplacedElement, the SBase derived class of replacedElements package.
* @author Lucian Smith
*
*<!---------------------------------------------------------------------------
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SBML, and the latest version of libSBML.
*
* Copyright (C) 2013-2016 jointly by the following organizations:
* 1. California Institute of Technology, Pasadena, CA, USA
* 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
* 3. University of Heidelberg, Heidelberg, Germany
*
* Copyright 2011-2012 jointly by the following organizations:
* 1. California Institute of Technology, Pasadena, CA, USA
* 2. EMBL European Bioinformatics Institute (EMBL-EBI), Hinxton, UK
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation. A copy of the license agreement is provided
* in the file named "LICENSE.txt" included with this software distribution
* and also available online as http://sbml.org/software/libsbml/license.html
* ------------------------------------------------------------------------ -->
*
* @class ReplacedElement
* @sbmlbrief{comp} Indicates an object replaces another.
*
* The ReplacedElement class was introduced by the SBML Level 3 @ref
* comp (“comp”) package to allow submodel elements to be
* replaced, but still allow references to those elements to be valid. A
* ReplacedElement object is essentially a pointer to a submodel object that
* should be considered 'replaced'. The object holding the ReplacedElement
* instance is the one doing the replacing; the object pointed to by the
* ReplacedElement object is the object being replaced.
*
* A replacement implies that dependencies involving the replaced object
* must be updated: all references to the replaced object elsewhere in the
* model are taken to refer to the replacement object instead. For
* example, if one species replaces another, then any reference to the
* original species in mathematical formulas, or lists of reactants or
* products or modifiers in reactions, or initial assignments, or any other
* SBML construct, are taken to refer to the replacement species, with its
* value possibly modified by either this object's "conversionFactor"
* attribute or the relevant submodel's conversion factors. Moreover, any
* annotations that refer to the
* replaced species' "metaid" value must be made to refer to the
* replacement species' "metaid" value instead; and anything else
* that referred either to an object identifier (i.e., attributes such as
* the "id" attribute whose types inherit from the SId
* primitive data type) or the meta identifier (i.e., the "metaid"
* attribute or any other attribute that inherits from the ID primitive
* data type) must be made to refer to the replacement species object
* instead.
*
* It is worth noting that local parameters (inside Reaction objects) pose an
* interesting edge case for these rules. In order to determine which element
* is pointed to by a <code><cn></code> element within the
* <code><math></code> element of a KineticLaw object, it is necessary
* to examine the local parameters of that kinetic law's parent Reaction
* object. Whether the <code><cn></code> element is considered to
* point to something new, then, depends on whether it pointed to the local
* parameter and whether that local parameter was replaced, even if the text
* of the element matched the SId value of another element in the model.
* Note that local parameters may only effectively be replaced by global
* parameters, since references to its SId are only valid from within the
* Reaction element to which it belongs.
*
* When referencing an element within the Submodel pointed to by the
* "submodelRef" attribute (defined in libSBML in the Replacing class),
* any of the four attributes inherited from
* SBaseRef for the purpose may be used (portRef, idRef, unitRef, or
* metaIdRef), or a new optional attribute "deletion" may be used. This
* attribute must be the identifier of a Deletion
* object in the parent Model of the ReplacedElement (i.e., the value of
* some Deletion object's "id" attribute). When "deletion" is
* set, it means the ReplacedElement object is actually an annotation to
* indicate that the replacement object replaces something deleted
* from a submodel. The use of the "deletion" attribute overrides
* the use of the attributes inherited from SBaseRef: instead of using,
* e.g., "portRef" or "idRef", the ReplacedElement instance
* sets "deletion" to the identifier of the Deletion object. In
* addition, the referenced Deletion must be a child of the Submodel
* referenced by the "submodelRef" attribute.
*
* The use of ReplacedElement objects to refer to deletions has no effect
* on the composition of models or the mathematical properties of the
* result. It serves instead to help record the decision-making process
* that lead to a given model. It can be particularly useful for
* visualization purposes, as well as to serve as scaffolding where other
* types of annotations can be added using the normal Annotation
* subcomponents available on all SBase objects in SBML.
*
* As with the Submodel class, it may be that the units of the replaced
* element may not match the units of the replacement element. In this case,
* the optional "conversionFactor" attribute may be used. This attribute, if
* present, defines how to transform or rescale the replaced object's value
* so that it is appropriate for the new contexts in which the object
* appears. This attribute takes a value of type SIdRef, and
* the value must refer to a Parameter object instance defined in the
* model. This parameter then acts as a conversion factor.
*
* The value of the conversion factor should be defined such that a single
* unit of the replaced element multiplied by the conversion factor should
* equal a single unit of the replacement element, and the units of the
* conversion factor should be commensurate with that transformation. The
* referenced Parameter may be non-constant, particularly if a Species is
* replaced by a Species with a different "hasOnlySubstanceUnits"
* attribute value, thus changing amount to concentration, or visa versa.
*/
#ifndef ReplacedElement_H__
#define ReplacedElement_H__
#include <sbml/common/extern.h>
#include <sbml/common/sbmlfwd.h>
#include <sbml/packages/comp/common/compfwd.h>
#ifdef __cplusplus
#include <string>
#include <sbml/SBase.h>
#include <sbml/ListOf.h>
#include <sbml/packages/comp/extension/CompExtension.h>
#include <sbml/packages/comp/sbml/Replacing.h>
LIBSBML_CPP_NAMESPACE_BEGIN
class LIBSBML_EXTERN ReplacedElement : public Replacing
{
protected:
/** @cond doxygenLibsbmlInternal */
std::string mDeletion;
/** @endcond */
public:
/**
* Creates a new ReplacedElement with the given level, version, and package
* version.
*
* @param level the SBML Level
* @param version the Version within the SBML Level
* @param pkgVersion the version of the package
*/
ReplacedElement(unsigned int level = CompExtension::getDefaultLevel(),
unsigned int version = CompExtension::getDefaultVersion(),
unsigned int pkgVersion = CompExtension::getDefaultPackageVersion());
/**
* Creates a new ReplacedElement with the given CompPkgNamespaces object.
*
* @param compns the namespace to use
*/
ReplacedElement(CompPkgNamespaces* compns);
/**
* Copy constructor.
*/
ReplacedElement(const ReplacedElement& source);
/**
* Assignment operator.
*/
ReplacedElement& operator=(const ReplacedElement& source);
/**
* Creates and returns a deep copy of this ReplacedElement object.
*
* @return a (deep) copy of this ReplacedElement object
*/
virtual ReplacedElement* clone () const;
/**
* Destructor.
*/
virtual ~ReplacedElement ();
/**
* Returns the value of the "conversionFactor" attribute of this ReplacedElement.
*
* @return the value of the "conversionFactor" attribute of this ReplacedElement.
*/
virtual const std::string& getConversionFactor () const;
/**
* Predicate returning @c true or @c false depending on whether this
* ReplacedElement's "conversionFactor" attribute has been set.
*
* @return @c true if this ReplacedElement's "conversionFactor" attribute has been set,
* otherwise @c false is returned.
*/
virtual bool isSetConversionFactor () const;
/**
* Sets the value of the "conversionFactor" attribute of this ReplacedElement.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}
*/
virtual int setConversionFactor (const std::string& id);
/**
* Unsets the value of the "conversionFactor" attribute of this ReplacedElement.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*/
virtual int unsetConversionFactor ();
/**
* Returns the value of the "deletion" attribute of this ReplacedElement.
*
* @return the value of the "deletion" attribute of this ReplacedElement.
*/
virtual const std::string& getDeletion () const;
/**
* Predicate returning @c true or @c false depending on whether this
* SBaseRef's "deletion" attribute has been set.
*
* @return @c true if this ReplacedElement's "deletion" attribute has been set,
* otherwise @c false is returned.
*/
virtual bool isSetDeletion () const;
/**
* Sets the value of the "deletion" attribute of this ReplacedElement.
*
* This method fails if the id is not a valid syntax for an SIdRef (@sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}), or if the SBaseRef already
* points to an element of the submodel using a different interface (@sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}). A ReplacedElement must use exactly
* one method to point to a submodel element: deletion, port, idRef,
* unitRef, or metaIdRef.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*/
virtual int setDeletion (const std::string& id);
/**
* Unsets the value of the "deletion" attribute of this ReplacedElement.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*/
virtual int unsetDeletion ();
/**
* Returns the XML element name of
* this SBML object.
*
* @return the name of this element, as a text string.
*/
virtual const std::string& getElementName () const ;
/**
* Returns how many elements are being referred to by this ReplacedElement. A
* valid ReplacedElement will have exactly one. Possible referents are deletion,
* port, idRef, unitRef, and metaIdRef.
*
* @return integer value between 0 and 5: the number of different ways this
* element points to its referent.
*/
virtual int getNumReferents() const;
/**
* Returns the libSBML type code of this object instance.
*
* @copydetails doc_what_are_typecodes
*
* @return the SBML type code for this object:
* @sbmlconstant{SBML_COMP_REPLACEDELEMENT, SBMLCompTypeCode_t}
*
* @copydetails doc_warning_typecodes_not_unique
*
* @see getElementName()
* @see getPackageName()
*/
virtual int getTypeCode () const;
/**
* @copydoc doc_renamesidref_common
*/
virtual void renameSIdRefs(const std::string& oldid, const std::string& newid);
/**
* Finds the SBase object this ReplacedElement object points to, if any.
*
*/
virtual SBase* getReferencedElementFrom(Model* model);
/** @cond doxygenLibsbmlInternal */
/**
* Subclasses should override this method to write out their contained
* SBML objects as XML elements. Be sure to call your parents
* implementation of this method as well. For example:
*
* SBase::writeElements(stream);
* mReactants.write(stream);
* mProducts.write(stream);
* ...
*/
virtual void writeElements (XMLOutputStream& stream) const;
/** @endcond */
/** @cond doxygenLibsbmlInternal */
/**
* Accepts the given SBMLVisitor.
*
* @return the result of calling <code>v.visit()</code>, which indicates
* whether or not the Visitor would like to visit the SBML object's next
* sibling object (if available).
*/
virtual bool accept (SBMLVisitor& v) const;
/** @endcond */
protected:
/** @cond doxygenLibsbmlInternal */
/**
* Subclasses should override this method to get the list of
* expected attributes.
* This function is invoked from corresponding readAttributes()
* function.
*/
virtual void addExpectedAttributes(ExpectedAttributes& attributes);
/** @endcond */
/** @cond doxygenLibsbmlInternal */
/**
* Subclasses should override this method to read values from the given
* XMLAttributes set into their specific fields. Be sure to call your
* parents implementation of this method as well.
*/
virtual void readAttributes (const XMLAttributes& attributes,
const ExpectedAttributes& expectedAttributes);
/** @endcond */
/** @cond doxygenLibsbmlInternal */
/**
* Subclasses should override this method to write their XML attributes
* to the XMLOutputStream. Be sure to call your parents implementation
* of this method as well. For example:
*
* SBase::writeAttributes(stream);
* stream.writeAttribute( "conversionFactor", mConversionFactor );
* ...
*/
virtual void writeAttributes (XMLOutputStream& stream) const;
/** @endcond */
/**
* Updates all IDs and references to those IDs, as well as performing all
* necessary conversions based on the conversion factors. Does not actually
* remove the now-redundant element! The elements to be removed is instead
* added to 'toremove', allowing one to remove the element carefully
* to prevent double-deletion of elements, and to allow the correct
* interpretation of 'nested' replacements and deletions.
*
* The 'removed' argument is present to ensure that the replaced element was
* not already removed, which would make it impossible to check it for its
* old IDs. In normal comp flattening, 'removed' will only contain comp elements,
* which should usually not be replaced, only deleted.
*/
virtual int performReplacementAndCollect(std::set<SBase*>* removed, std::set<SBase*>* toremove);
friend class CompModelPlugin;
};
LIBSBML_CPP_NAMESPACE_END
#endif /* __cplusplus */
#ifndef SWIG
LIBSBML_CPP_NAMESPACE_BEGIN
BEGIN_C_DECLS
/**
* Creates a new ReplacedElement_t structure using the given SBML @p level
* and @p version values.
*
* @param level an unsigned int, the SBML Level to assign to this
* ReplacedElement_t
* @param version an unsigned int, the SBML Version to assign to this
* ReplacedElement_t
* @param pkgVersion an unsigned int, the SBML 'Qual' package Version to assign to this
* ReplacedElement_t
*
* @return a pointer to the newly created ReplacedElement_t structure.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
ReplacedElement_t *
ReplacedElement_create(unsigned int level, unsigned int version,
unsigned int pkgVersion);
/**
* Frees the given ReplacedElement_t structure.
*
* @param re the ReplacedElement_t structure to free.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
void
ReplacedElement_free(ReplacedElement_t * re);
/**
* Returns a copy of the given ReplacedElement_t structure.
*
* @param re the ReplacedElement_t structure to copy.
*
* @return a (deep) copy of the ReplacedElement_t.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
ReplacedElement_t *
ReplacedElement_clone(ReplacedElement_t * re);
/**
* Takes a ReplacedElement_t structure and returns its submodelRef.
*
* @param re the ReplacedElement_t whose submodelRef is sought.
*
* @return the submodelRef of the given ReplacedElement_t, as a pointer to a string.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
char *
ReplacedElement_getSubmodelRef(ReplacedElement_t * re);
/**
* Takes a ReplacedElement_t structure and returns its deletion.
*
* @param re the ReplacedElement_t whose deletion is sought.
*
* @return the deletion of the given ReplacedElement_t, as a pointer to a string.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
char *
ReplacedElement_getDeletion(ReplacedElement_t * re);
/**
* Takes a ReplacedElement_t structure and returns its conversionFactor.
*
* @param re the ReplacedElement_t whose conversionFactor is sought.
*
* @return the conversionFactor of the given ReplacedElement_t, as a pointer to a string.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
char *
ReplacedElement_getConversionFactor(ReplacedElement_t * re);
/**
* Predicate returning @c true or @c false depending on whether the given
* ReplacedElement_t structure's submodelRef is set.
*
* @param re the ReplacedElement_t structure to query
*
* @return @c non-zero (true) if the "submodelRef" attribute of the given
* ReplacedElement_t structure is set, zero (false) otherwise.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_isSetSubmodelRef(ReplacedElement_t * re);
/**
* Predicate returning @c true or @c false depending on whether the given
* ReplacedElement_t structure's deletion is set.
*
* @param re the ReplacedElement_t structure to query
*
* @return @c non-zero (true) if the "deletion" attribute of the given
* ReplacedElement_t structure is set, zero (false) otherwise.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_isSetDeletion(ReplacedElement_t * re);
/**
* Predicate returning @c true or @c false depending on whether the given
* ReplacedElement_t structure's conversionFactor is set.
*
* @param re the ReplacedElement_t structure to query
*
* @return @c non-zero (true) if the "conversionFactor" attribute of the given
* ReplacedElement_t structure is set, zero (false) otherwise.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_isSetConversionFactor(ReplacedElement_t * re);
/**
* Sets the submodelRef of the given ReplacedElement_t to a copy of @p submodelRef.
*
* @param re the ReplacedElement_t structure to set
* @param submodelRef the submodelRef to assign to the given ReplacedElement_t's "submodelRef" attribute.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}
*
* @note Using this function with the name set to NULL is equivalent to
* unsetting the "submodelRef" attribute.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_setSubmodelRef(ReplacedElement_t * re, const char * submodelRef);
/**
* Sets the deletion of the given ReplacedElement_t to a copy of @p deletion.
*
* @param re the ReplacedElement_t structure to set
* @param deletion the deletion to assign to the given ReplacedElement_t's "deletion" attribute.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}
*
* @note Using this function with the name set to NULL is equivalent to
* unsetting the "deletion" attribute.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_setDeletion(ReplacedElement_t * re, const char * deletion);
/**
* Sets the conversionFactor of the given ReplacedElement_t to a copy of @p conversionFactor.
*
* @param re the ReplacedElement_t structure to set
* @param conversionFactor the conversionFactor to assign to the given ReplacedElement_t's "conversionFactor" attribute.
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_INVALID_ATTRIBUTE_VALUE, OperationReturnValues_t}
*
* @note Using this function with the name set to NULL is equivalent to
* unsetting the "conversionFactor" attribute.
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_setConversionFactor(ReplacedElement_t * re, const char * conversionFactor);
/**
* Unsets the "submodelRef" attribute of the given ReplacedElement_t structure.
*
* @param re the ReplacedElement_t structure to unset
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_unsetSubmodelRef(ReplacedElement_t * re);
/**
* Unsets the "deletion" attribute of the given ReplacedElement_t structure.
*
* @param re the ReplacedElement_t structure to unset
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_unsetDeletion(ReplacedElement_t * re);
/**
* Unsets the "conversionFactor" attribute of the given ReplacedElement_t structure.
*
* @param re the ReplacedElement_t structure to unset
*
* @copydetails doc_returns_success_code
* @li @sbmlconstant{LIBSBML_OPERATION_SUCCESS, OperationReturnValues_t}
* @li @sbmlconstant{LIBSBML_OPERATION_FAILED, OperationReturnValues_t}
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_unsetConversionFactor(ReplacedElement_t * re);
/**
* Predicate returning @c true or @c false depending on whether
* all the required attributes for the given ReplacedElement_t structure
* have been set.
*
* @note The required attributes for a ReplacedElement_t structure are:
* @li useValuesfromTriggerTime ( L3 onwards )
*
* @memberof ReplacedElement_t
*/
LIBSBML_EXTERN
int
ReplacedElement_hasRequiredAttributes(ReplacedElement_t * re);
END_C_DECLS
LIBSBML_CPP_NAMESPACE_END
#endif /* !SWIG */
#endif /* ReplacedElement_H__ */
|