[Property Map] given a function/functor, how to construct readable property map?

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I have graph structure using custom datatypes. An edge weight can be calculated by calling some function. I want to call the dag shortest path algorithm and pass it a property map that uses the function to compute edge weights on the fly. I consulted the Boost 1.47 documentation for property map. I find identity or std::map adaptors, but did not find any reference to using functions or functors. Do I miss anything? Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: keyserver x-hkp://pool.sks-keyservers.net iEYEARECAAYFAk9o2GwACgkQhAOUmAZhnmpdAwCfc38fjB2cZC/ZYzv7Y8+GXdTr IXgAnjoJh5ZKoxFkNTAK5Ye0DeOkuQY0 =8xTO -----END PGP SIGNATURE-----

On Tue, 20 Mar 2012, Frank Birbacher wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi!
I have graph structure using custom datatypes. An edge weight can be calculated by calling some function. I want to call the dag shortest path algorithm and pass it a property map that uses the function to compute edge weights on the fly. I consulted the Boost 1.47 documentation for property map. I find identity or std::map adaptors, but did not find any reference to using functions or functors. Do I miss anything?
There's an unofficial function_property_map that has been posted on the Boost-users list, such as at http://comments.gmane.org/gmane.comp.lib.boost.user/54397; it really should be put into Boost proper but hasn't yet. -- Jeremiah Willcock

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Am 20.03.12 20:23, schrieb Jeremiah Willcock:
it really should be put into Boost proper but hasn't yet.
I started working on it. Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: keyserver x-hkp://pool.sks-keyservers.net iEYEARECAAYFAk9o5LMACgkQhAOUmAZhnmqb9gCfbqqJU6vCT5EvVJ5gEwqld3Ie 594An0mw4Svae2tQnmfdjFbrTyDINPoq =e4WA -----END PGP SIGNATURE-----

Frank Bleacher
Hi!
Am 20.03.12 20:23, schrieb Jeremiah Willcock:
it really should be put into Boost proper but hasn't yet.
I started working on it.
I have an implementation here [1] which takes care of functors returning references and tries to get a proper value_type and should handle operator()() const as well. It depends on C++11, but that should be resolvable if you explicitly specify the type of the key argument. HTH, Philipp Moeller [1] : https://github.com/bo0ts/property_map_extensions/blob/master/function_proper...

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! Am 21.03.12 09:40, schrieb Philipp Moeller:
I have an implementation here [1] [snip] [1] : https://github.com/bo0ts/property_map_extensions/blob/master/function_proper...
Do
you publish it under the Boost License? Frank PS: I've begun work by defining a boost::function to be a property map all by itself. Does this sound like a good idea? To me it sounds pretty reasonable. -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: keyserver x-hkp://pool.sks-keyservers.net iEYEARECAAYFAk9qWwwACgkQhAOUmAZhnmqxLgCfXPJXo+clUaaRli91QuiUHnU3 4W0Ani54SBDqR1afOyyiHTGUzZoTOQ9u =1Spx -----END PGP SIGNATURE-----

Frank Birbacher
Hi!
Am 21.03.12 09:40, schrieb Philipp Moeller:
I have an implementation here [1] [snip] [1] : https://github.com/bo0ts/property_map_extensions/blob/master/function_proper...
Do
you publish it under the Boost License?
Sounds good. I'll tack on the copyright notice as soon as I can.
Frank PS: I've begun work by defining a boost::function to be a property map all by itself. Does this sound like a good idea? To me it sounds pretty reasonable.
That sounds good if the dynamic case is needed. Although my function_property_map can also adapt a boost::function to a property map. -- Philipp Moeller GeometryFactory

When I try to use the date time class in Visual Studio 10, I get the following error LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_48.lib' Is there anything I can do to fix this? bruce

Bruce, Make sure the path (relative or absolute) to \boost_1_48_0\stage\lib is in your project's Properties/Configuration properties/VC++ Directories/Library directories. Hth Sjur :-)
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Dr. Bruce Elenbogen Sent: 21. mars 2012 20:32 To: boost-users@lists.boost.org Subject: [Boost-users] date-time class
When I try to use the date time class in Visual Studio 10, I get the following error LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100- mt-gd-1_48.lib' Is there anything I can do to fix this? bruce _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

You have to build the library first. Check it out on boost website.
On 22 Mar, 2012, at 3:33, "Dr. Bruce Elenbogen"
When I try to use the date time class in Visual Studio 10, I get the following error LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_48.lib' Is there anything I can do to fix this? bruce _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On 03/21/2012 08:31 PM, Dr. Bruce Elenbogen wrote:
When I try to use the date time class in Visual Studio 10, I get the following error LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-gd-1_48.lib' Is there anything I can do to fix this?
Mostly, you can use the header only parts of the library. Therefore, you have to define <define>BOOST_DATE_TIME_NO_LIB in the requirements in your Jamfile. This prevents the auto-linking of the date_time library. I think this is also possible with an appropriate preprocessor statement, but I do not know exactly how this works. Otherwise, you have to build the library and link against it.
participants (7)
-
Dr. Bruce Elenbogen
-
Frank Birbacher
-
Hazrat Pradipta Ranjali
-
Jeremiah Willcock
-
Karsten Ahnert
-
Philipp Moeller
-
Sjur Kolberg