aGrUM  0.16.0
arcGraphPart_tpl.h
Go to the documentation of this file.
1 
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
30 
31 // to ease parsing by IDE
33 
34 namespace gum {
35 
36  template < typename VAL >
37  INLINE ArcProperty< VAL > ArcGraphPart::arcsProperty(VAL (*f)(const Arc&),
38  Size size) const {
39  return __arcs.hashMap(f, size);
40  }
41 
42  template < typename VAL >
43  INLINE ArcProperty< VAL > ArcGraphPart::arcsProperty(const VAL& val,
44  Size size) const {
45  return __arcs.hashMap(val, size);
46  }
47 
49  template < typename VAL >
50  INLINE List< VAL > ArcGraphPart::listMapArcs(VAL (*f)(const Arc&)) const {
51  return __arcs.listMap(f);
52  }
53 
54 } /* namespace gum */
55 
56 #endif // DOXYGEN_SHOULD_SKIP_THIS
ArcProperty< VAL > arcsProperty(VAL(*f)(const Arc &), Size size=0) const
a method to create a hashMap of VAL from a set of arcs (using for every arc, say x, the VAL f(x))
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
HashTable< Key, NewKey, NewAlloc > hashMap(NewKey(*f)(const Key &), Size capacity=0) const
Creates a hashtable of NewKey from the set.
Definition: set_tpl.h:838
List< NewKey, NewAlloc > listMap(NewKey(*f)(const Key &)) const
A method to create a List of NewKey from the set.
Definition: set_tpl.h:884
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48
List< VAL > listMapArcs(VAL(*f)(const Arc &)) const
a method to create a list of VAL from a set of arcs (using for every arc, say x, the VAL f(x)) ...
Set< Arc > __arcs
the set of all the arcs contained within the ArcGraphPart
Definition: arcGraphPart.h:269