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 & operator=(const NMBase &orig)
Assignment operator for NMBase.
Definition NMBase.cpp:168
virtual NUMLTypeCode_t getTypeCode() const
Returns the libnuml type code for this object.
Definition NMBase.cpp:624
virtual const std::string & getElementName() const =0
Returns the XML element name of this object.
virtual bool accept(NUMLVisitor &v) const =0
Accepts the given NUMLVisitor for this instance of NMBase.
virtual NMBase * clone() const =0
Creates and returns a deep copy of this NMBase object.
NMBase(const std::string &id="", const std::string &name="")
Only subclasses may create NMBase objects.
Definition NMBase.cpp:68
virtual void setNUMLDocument(NUMLDocument *d)
Sets the parent NUMLDocument of this NUML object.
Definition NMBase.cpp:435
virtual void setParentNUMLObject(NMBase *sb)
Sets the parent NUML object of this NUML object.
Definition NMBase.cpp:486
virtual void writeAttributes(LIBSBML_CPP_NAMESPACE_QUALIFIER XMLOutputStream &stream) const
Subclasses should override this method to write their XML attributes to the XMLOutputStream.
Definition NMBase.cpp:2160
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 NMBase.cpp:2135
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 NMBase.cpp:1694
This represents the numl document that contains all information.
Definition NUMLDocument.h:107
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
std::vector< NMBase * > mItems
Definition NUMLList.h:430
virtual NUMLTypeCode_t getItemTypeCode() const
Get the type code of the objects contained in this NUMLList.
Definition NUMLList.cpp:361
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 * remove(unsigned int n)
Removes the nth item from this NUMLList items and returns a pointer to it.
Definition NUMLList.cpp:233
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