ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/addin/outil/src/hypergraphlib_graphobject.h
Revision: 1156
Committed: Thu Jun 13 22:02:48 2024 UTC (14 months, 2 weeks ago) by francois
Content type: text/plain
File size: 1776 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1156 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// hypergraphlib_graphobject.h
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:54:00 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283 #ifndef GRAPHOBJECT_H
23     #define GRAPHOBJECT_H
24    
25     #include <map>
26    
27 francois 481 #include "hypergraphlib_platform.h"
28 francois 283
29     namespace HypergraphLib {
30     class Graph;
31     class HYPERGRAPHLIB_ITEM GraphObject {
32     public:
33     GraphObject ( const Graph *__owner, const int __id);
34     GraphObject ( const GraphObject &, const Graph * __owner);
35     int Id() const;
36     const Graph * Owner() const;
37     void * GetUserData () const;
38     void SetUserData (void *);
39     void * GetUserData(unsigned i) const;
40     void SetUserData(unsigned i, void *);
41     protected:
42     const Graph *_owner;
43     const int _id;
44     std::map < int, void* > _userData;
45     friend class Graph;
46     };
47    
48    
49    
50     } // end namespace HypergraphLib
51    
52     #endif // GRAPHOBJECT_H
53