Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef VIENNADATA_CONFIG_OBJECT_IDENTIFIER_HPP
00014 #define VIENNADATA_CONFIG_OBJECT_IDENTIFIER_HPP
00015
00016 #include "viennadata/forwards.h"
00017
00023 namespace viennadata
00024 {
00025 namespace config
00026 {
00048 template <typename ObjectType>
00049 struct object_identifier
00050 {
00051 typedef pointer_based_id tag;
00052 typedef const ObjectType * id_type;
00053
00055 static id_type get(ObjectType const & obj) { return &obj; }
00056 };
00057
00058
00059 }
00060 }
00061
00062
00063 #endif
00064