MeVisLab Toolbox Reference
|
Base object class DiscList. More...
#include <mlDiscList.h>
Public Member Functions | |
DiscList () | |
~DiscList () override | |
MLssize_t | getNum () const |
returns the number of contained Discs | |
void | getValue (MLssize_t index, Disc &obj) const |
get Disc at given index | |
Disc | getValue (MLssize_t index) const |
get Disc at given index | |
Disc * | getPtr (MLssize_t index=-1) |
get Pointer to Disc at given index, if index is -1, last element is given | |
void | addValue (const Disc &obj) |
add Disc at end of list | |
void | setValue (MLssize_t index, const Disc &obj) |
set value at index | |
void | removeValue (MLssize_t index=-1) |
remove Disc from list, if index is -1, last element is removed | |
void | clear () |
clear all entries | |
void | print (const char *txt) |
debug print | |
Public Member Functions inherited from ml::Base | |
Base () | |
Constructor. | |
virtual | ~Base () |
Destructor. | |
virtual Base * | deepCopy () const |
Set addStateToTree version number that can be accessed via getAddStateVersion() | |
bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
Check if this object's type is equal to or derived from one of the types given in the argument. | |
virtual bool | isRefCountedBase () const |
Returns if the instance is derived from RefCountedBase. | |
virtual std::string | detailString () const |
Return a string describing this object. | |
virtual bool | implementsPersistence (PersistenceInterface) const |
Override this method to declare which persistence interfaces are implemented by your derived class. | |
virtual std::string | persistentState () const |
Returns a string describing the object's internal state. | |
virtual void | setPersistentState (const std::string &state) |
Restores the object's internal state from a string that had been previously generated using persistentState() . | |
virtual void | addStateToTree (TreeNode *) const |
Attaches the object state as children of the given parent node. | |
virtual void | readStateFromTree (TreeNode *) |
Reads the object state from the children of the given parent node. | |
virtual void | writeTo (AbstractPersistenceOutputStream *) const |
Write the objects state to the data stream object. | |
virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Read the objects state from the data stream object. | |
Additional Inherited Members | |
Public Types inherited from ml::Base | |
enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
This enum describes the different persistence interfaces available. More... | |
Definition at line 32 of file mlDiscList.h.
|
inline |
Definition at line 35 of file mlDiscList.h.
|
inlineoverride |
Definition at line 36 of file mlDiscList.h.
void ml::DiscList::clear | ( | ) |
clear all entries
MLssize_t ml::DiscList::getNum | ( | ) | const |
returns the number of contained Discs
get Pointer to Disc at given index, if index is -1, last element is given
remove Disc from list, if index is -1, last element is removed