Interface of a list that manages user data. More...
#include <arcane/utils/IUserDataList.h>
Public Member Functions | |
| virtual | ~IUserDataList () |
| Frees resources. | |
| virtual void | setData (const String &name, IUserData *ud)=0 |
| Sets the user data associated with the name name. | |
| virtual IUserData * | data (const String &name, bool allow_null=false) const =0 |
| Data associated with name. | |
| virtual void | removeData (const String &name, bool allow_null=false)=0 |
| Removes the data associated with the name name. | |
| virtual void | clear ()=0 |
| Removes all user data. | |
Interface of a list that manages user data.
Definition at line 37 of file IUserDataList.h.
|
inlinevirtual |
Frees resources.
Definition at line 42 of file IUserDataList.h.
|
pure virtual |
Removes all user data.
This is equivalent to calling removeData() for all user data.
Implemented in Arcane::UserDataList.
|
pure virtual |
Data associated with name.
An exception is thrown if allow_null is false and no data is associated with name. If allow_null is true and no data is associated, a null pointer is returned.
Implemented in Arcane::UserDataList.
Referenced by Arcane::ICartesianMesh::getReference().
|
pure virtual |
Removes the data associated with the name name.
An exception is thrown if allow_null is false and no data is associated with name.
Implemented in Arcane::UserDataList.
Sets the user data associated with the name name.
No data should already be associated with name, otherwise an exception is thrown.
Implemented in Arcane::UserDataList.
Referenced by Arcane::ICartesianMesh::getReference().