diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-09 17:30:06 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-09 17:30:06 +0100 |
commit | eb864f65356468a023abe9462a1aa5805d3ee5ef (patch) | |
tree | 6ddd44cd0e6b3621aa0b1d4fdf7d4bc4c53991c1 /src/core/model/Domain.hpp | |
parent | 85a4bb306a648964ddbf166e88e3263ace293768 (diff) | |
parent | fbaad57be8ddf3f90eb13551cc7eb18674b3efa2 (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/model/Domain.hpp')
-rw-r--r-- | src/core/model/Domain.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index db3b9e6..24199b1 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -515,6 +515,16 @@ public: * FieldDescriptor is not registered at this Descriptor. */ ssize_t getFieldDescriptorIndex(Handle<FieldDescriptor> fd) const; + /** + * Returns the FieldDescriptor with the given name. + * + * @param name the name of a FieldDescriptor. + + * @return the FieldDescriptor with the given name or a nullptr if no + * such FieldDescriptor was found. + */ + Rooted<FieldDescriptor> getFieldDescriptor( + const std::string &name = DEFAULT_FIELD_NAME) const; /** * This returns true if this Descriptor has a FieldDescriptor with the |