aGrUM  0.16.0
PRMObject_inl.h
Go to the documentation of this file.
1 
30 namespace gum {
31  namespace prm {
32 
33  // Returns the name of this object.
34  INLINE
35  const std::string& PRMObject::name() const { return __name; }
36 
37  // Returns the name of this object.
38  INLINE
39  void PRMObject::name(const std::string& name) { __name = name; }
40 
41  // To PRMObject are equal if they have the same name (which is unique).
42  INLINE
43  bool PRMObject::operator==(const PRMObject& obj) const {
44  return __name == obj.name();
45  }
46 
47  // To PRMObject are equal if they have the same name (which is unique).
48  INLINE
49  bool PRMObject::operator!=(const PRMObject& obj) const {
50  return __name != obj.name();
51  }
52 
53  } /* namespace prm */
54 } /* namespace gum */
bool operator!=(const PRMObject &obj) const
To PRMObject are equal if they have the same name (which is unique).
Definition: PRMObject_inl.h:49
const std::string & name() const
Returns the name of this object.
Definition: PRMObject_inl.h:35
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
bool operator==(const PRMObject &obj) const
To PRMObject are equal if they have the same name (which is unique).
Definition: PRMObject_inl.h:43
Abstract base class for any element defined in a PRM.
Definition: PRMObject.h:56
std::string __name
Definition: PRMObject.h:200