40LIBNUML_CPP_NAMESPACE_BEGIN
65 NUMLList (
unsigned int level,
unsigned int version);
162 virtual const NMBase*
get (
unsigned int n)
const;
189 virtual const NMBase*
get (
const std::string& sid)
const;
205 virtual NMBase*
get (
const std::string& sid);
221 void clear (
bool doDelete =
true);
259 unsigned int size ()
const;
406 virtual void writeElements (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
416 virtual void readAttributes (
const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes& attributes);
428 virtual void writeAttributes (LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream& stream)
const;
435LIBNUML_CPP_NAMESPACE_END
441LIBNUML_CPP_NAMESPACE_BEGIN
447LIBNUML_CPP_NAMESPACE_END
NUMLTypeCode_t
An enumeration of NUML types to help identify NUML objects at runtime.
Definition NUMLTypeCodes.h:34
NMBase(const std::string &id="", const std::string &name="")
Only subclasses may create NMBase objects.
Definition NMBase.cpp:68
This represents the numl document that contains all information.
Definition NUMLDocument.h:107
virtual NUMLTypeCode_t getTypeCode() const
Get the type code of the objects contained in this SedListOf.
Definition NUMLList.cpp:350
virtual const NMBase * get(unsigned int n) const
Get an item from the list.
Definition NUMLList.cpp:156
void appendAndOwn(NMBase *item)
Adds item to the end of this NUMLList.
Definition NUMLList.cpp:144
void clear(bool doDelete=true)
Removes all items in this NUMLList object.
Definition NUMLList.cpp:219
virtual void setParentNUMLObject(NMBase *sb)
Sets the parent NUML object of this NUML object.
Definition NUMLList.cpp:313
std::vector< NMBase * > mItems
Definition NUMLList.h:430
virtual void writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write their XML attributes to the XMLOutputStream.
Definition NUMLList.cpp:441
virtual NUMLTypeCode_t getItemTypeCode() const
Get the type code of the objects contained in this NUMLList.
Definition NUMLList.cpp:361
NUMLList()
Definition NUMLList.cpp:45
NUMLList & operator=(const NUMLList &rhs)
Assignment operator for NUMLList.
Definition NUMLList.cpp:90
unsigned int size() const
Get the size of this NUMLList.
Definition NUMLList.cpp:268
void append(const NMBase *item)
Adds item to the end of this NUMLList.
Definition NUMLList.cpp:133
NUMLList(unsigned int level, unsigned int version)
Creates a new NUMLList using the given NUML level and version values.
Definition NUMLList.cpp:28
virtual NMBase * clone() const
Creates and returns a deep copy of this NUMLList.
Definition NUMLList.cpp:122
virtual NMBase * remove(unsigned int n)
Removes the nth item from this NUMLList items and returns a pointer to it.
Definition NUMLList.cpp:233
virtual void setNUMLDocument(NUMLDocument *d)
Sets the parent NUMLDocument of this NUML object.
Definition NUMLList.cpp:302
virtual void readAttributes(const LIBSBML_CPP_NAMESPACE_QUALIFIER XMLAttributes &attributes)
Subclasses should override this method to read values from the given XMLAttributes set into their spe...
Definition NUMLList.cpp:410
virtual void writeElements(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write out their contained NUML objects as XML elements.
Definition NUMLList.cpp:397
virtual bool accept(NUMLVisitor &v) const
Accepts the given NUMLVisitor.
Definition NUMLList.cpp:108
virtual const std::string & getElementName() const
Returns the XML element name of this object, which for NUMLList, is always "listOf".
Definition NUMLList.cpp:372
namespace class
Definition NUMLNamespaces.h:47
Implementation of the Visitor design pattern, for operations on NUML objects.
Definition NUMLVisitor.h:73
#define BEGIN_C_DECLS
Definition extern.h:112
#define LIBNUML_EXTERN
Begin svn Header.
Definition extern.h:104
#define END_C_DECLS
Definition extern.h:113