pyaims 6.0.0
graph.h
Go to the documentation of this file.
1/* This software and supporting documentation are distributed by
2 * Institut Federatif de Recherche 49
3 * CEA/NeuroSpin, Batiment 145,
4 * 91191 Gif-sur-Yvette cedex
5 * France
6 *
7 * This software is governed by the CeCILL-B license under
8 * French law and abiding by the rules of distribution of free software.
9 * You can use, modify and/or redistribute the software under the
10 * terms of the CeCILL-B license as circulated by CEA, CNRS
11 * and INRIA at the following URL "http://www.cecill.info".
12 *
13 * As a counterpart to the access to the source code and rights to copy,
14 * modify and redistribute granted by the license, users are provided only
15 * with a limited warranty and the software's author, the holder of the
16 * economic rights, and the successive licensors have only limited
17 * liability.
18 *
19 * In this respect, the user's attention is drawn to the risks associated
20 * with loading, using, modifying and/or developing or reproducing the
21 * software by the user in light of its specific status of free software,
22 * that may mean that it is complicated to manipulate, and that also
23 * therefore means that it is reserved for developers and experienced
24 * professionals having in-depth computer knowledge. Users are therefore
25 * encouraged to load and test the software's suitability as regards their
26 * requirements in conditions enabling the security of their systems and/or
27 * data to be ensured and, more generally, to use and operate it in the
28 * same conditions as regards security.
29 *
30 * The fact that you are presently reading this means that you have had
31 * knowledge of the CeCILL-B license and that you accept its terms.
32 */
33
34#ifndef PYAIMS_GRAPH_GRAPH_H
35#define PYAIMS_GRAPH_GRAPH_H
36
37#ifndef PYAIMS_RCPTR_Graph_DEFINED
38#define PYAIMS_RCPTR_Graph_DEFINED
39#include <cartobase/smart/rcptr.h>
40class Graph;
42#endif
43
44inline PyObject* pyaimsConvertFrom_GraphP( void * a )
45{
46 return sipConvertFromType( a, sipFindType( "Graph" ), 0 );
47}
48
49
50inline void* pyaimsConvertTo_GraphP( PyObject * o )
51{
52 int isErr = 0;
53 return sipConvertToType( o, sipFindType( "Graph" ), 0, 0, 0, &isErr );
54}
55
56
57inline int pyaimsGraphP_Check( PyObject* o )
58{
59 return sipCanConvertToType( o, sipFindType( "Graph" ),
60 SIP_NOT_NONE | SIP_NO_CONVERTORS );
61}
62
63// ---
64
65inline PyObject* pyaimsConvertFrom_GraphR( void * a )
66{
67 return sipConvertFromType( a, sipFindType( "rc_ptr_Graph" ), 0 );
68}
69
70
71inline void* pyaimsConvertTo_GraphR( PyObject * o )
72{
73 int isErr = 0;
74 return sipConvertToType( o, sipFindType( "rc_ptr_Graph" ), 0, 0, 0, &isErr );
75}
76
77
78inline int pyaimsGraphR_Check( PyObject* o )
79{
80 return sipCanConvertToType( o, sipFindType( "rc_ptr_Graph" ),
81 SIP_NOT_NONE | SIP_NO_CONVERTORS );
82}
83
84// ---
85
86inline PyObject* pyaimsConvertFrom_VertexP( void * a )
87{
88 return sipConvertFromType( a, sipFindType( "Vertex" ), 0 );
89}
90
91
92inline void* pyaimsConvertTo_VertexP( PyObject * o )
93{
94 int isErr = 0;
95 return sipConvertToType( o, sipFindType( "Vertex" ), 0, 0, 0, &isErr );
96}
97
98
99inline int pyaimsVertexP_Check( PyObject* o )
100{
101 return sipCanConvertToType( o, sipFindType( "Vertex" ),
102 SIP_NOT_NONE | SIP_NO_CONVERTORS );
103}
104
105
106inline PyObject* pyaimsConvertFrom_EdgeP( void * a )
107{
108 return sipConvertFromType( a, sipFindType( "Edge" ), 0 );
109}
110
111
112inline void* pyaimsConvertTo_EdgeP( PyObject * o )
113{
114 int isErr = 0;
115 return sipConvertToType( o, sipFindType( "Edge" ), 0, 0, 0, &isErr );
116}
117
118
119inline int pyaimsEdgeP_Check( PyObject* o )
120{
121 return sipCanConvertToType( o, sipFindType( "Edge" ),
122 SIP_NOT_NONE | SIP_NO_CONVERTORS );
123}
124
125
126#endif
127
int pyaimsGraphR_Check(PyObject *o)
Definition graph.h:78
void * pyaimsConvertTo_GraphR(PyObject *o)
Definition graph.h:71
int pyaimsEdgeP_Check(PyObject *o)
Definition graph.h:119
PyObject * pyaimsConvertFrom_GraphR(void *a)
Definition graph.h:65
PyObject * pyaimsConvertFrom_EdgeP(void *a)
Definition graph.h:106
void * pyaimsConvertTo_EdgeP(PyObject *o)
Definition graph.h:112
carto::rc_ptr< Graph > rc_ptr_Graph
Definition graph.h:41
void * pyaimsConvertTo_GraphP(PyObject *o)
Definition graph.h:50
PyObject * pyaimsConvertFrom_GraphP(void *a)
Definition graph.h:44
void * pyaimsConvertTo_VertexP(PyObject *o)
Definition graph.h:92
PyObject * pyaimsConvertFrom_VertexP(void *a)
Definition graph.h:86
int pyaimsGraphP_Check(PyObject *o)
Definition graph.h:57
int pyaimsVertexP_Check(PyObject *o)
Definition graph.h:99