MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.GraphEdgeId Class Reference
+ Inheritance diagram for mrmeshpy.GraphEdgeId:

Public Member Functions

bool __bool__ (self)
 
bool __eq__ (self, GraphEdgeId b)
 
GraphEdgeId __iadd__ (self, int a)
 
None __init__ (self)
 
None __init__ (self, int i)
 
None __init__ (self, GraphEdgeId arg0)
 
int __int__ (self)
 
GraphEdgeId __isub__ (self, int a)
 
bool __ne__ (self, GraphEdgeId b)
 
str __repr__ (self)
 
int get (self)
 
bool operator (self, GraphEdgeId b)
 
GraphEdgeId operator (self)
 
GraphEdgeId operatorminusminus (self)
 
bool valid (self)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
None __init__ (*args, **kwargs)
 
GraphEdgeId operator (*args, **kwargs)
 
GraphEdgeId operator (*args, **kwargs)
 
GraphEdgeId operator (*args, **kwargs)
 
GraphEdgeId operatorminusminus (*args, **kwargs)
 

Detailed Description

Generated from:  MR::GraphEdgeId
Aliases:  Vector_GraphEdgeId_GraphEdgeId.const_reference, Graph.EdgeId, TypedBitSet_GraphEdgeId_IndexType, Vector_GraphEdgeId_GraphEdgeId.value_type, Vector_GraphEdgeId_GraphEdgeId.reference

stores index of some element, it is made as template class to avoid mixing faces, edges and vertices

Constructor & Destructor Documentation

◆ __init__() [1/5]

None mrmeshpy.GraphEdgeId.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/5]

None mrmeshpy.GraphEdgeId.__init__ ( * args,
** kwargs )
static

◆ __init__() [3/5]

None mrmeshpy.GraphEdgeId.__init__ ( self)

◆ __init__() [4/5]

None mrmeshpy.GraphEdgeId.__init__ ( self,
int i )
Allow constructing from `int` and other integral types.
This constructor is written like this instead of a plain `Id(int)`, because we also wish to disable construction
  from other unrelated `Id<U>` specializations, which themselves have implicit conversions to `int`.
We could also achieve that using `template <typename U> Id(Id<U>) = delete;`, but it turns out that that causes issues
  for the `EdgeId::operator UndirectedEdgeId` below. There, while `UndirectedEdgeId x = EdgeId{};` compiles with this approach,
  but `UndirectedEdgeId x(EdgeId{});` doesn't. So to allow both forms, this constructor must be written this way, as a template.
The `= int` is there only to make the bindings emit this constructor, I don't think it affects anything else.

Reimplemented in mrmeshpy.NoDefInit_GraphEdgeId, mrmeshpy.NoDefInit_GraphEdgeId, and mrmeshpy.NoDefInit_GraphEdgeId.

◆ __init__() [5/5]

None mrmeshpy.GraphEdgeId.__init__ ( self,
GraphEdgeId arg0 )

Member Function Documentation

◆ __bool__()

bool mrmeshpy.GraphEdgeId.__bool__ ( self)

◆ __eq__()

bool mrmeshpy.GraphEdgeId.__eq__ ( self,
GraphEdgeId b )

◆ __iadd__()

GraphEdgeId mrmeshpy.GraphEdgeId.__iadd__ ( self,
int a )

◆ __int__()

int mrmeshpy.GraphEdgeId.__int__ ( self)

◆ __isub__()

GraphEdgeId mrmeshpy.GraphEdgeId.__isub__ ( self,
int a )

◆ __ne__()

bool mrmeshpy.GraphEdgeId.__ne__ ( self,
GraphEdgeId b )

◆ __repr__()

str mrmeshpy.GraphEdgeId.__repr__ ( self)

Reimplemented in mrmeshpy.NoDefInit_GraphEdgeId.

◆ get()

int mrmeshpy.GraphEdgeId.get ( self)

◆ operator() [1/5]

GraphEdgeId mrmeshpy.GraphEdgeId.operator ( * args,
** kwargs )
static

◆ operator() [2/5]

GraphEdgeId mrmeshpy.GraphEdgeId.operator ( * args,
** kwargs )
static

◆ operator() [3/5]

GraphEdgeId mrmeshpy.GraphEdgeId.operator ( * args,
** kwargs )
static

◆ operator() [4/5]

GraphEdgeId mrmeshpy.GraphEdgeId.operator ( self)

◆ operator() [5/5]

bool mrmeshpy.GraphEdgeId.operator ( self,
GraphEdgeId b )

◆ operatorminusminus() [1/2]

GraphEdgeId mrmeshpy.GraphEdgeId.operatorminusminus ( * args,
** kwargs )
static

◆ operatorminusminus() [2/2]

GraphEdgeId mrmeshpy.GraphEdgeId.operatorminusminus ( self)

◆ valid()

bool mrmeshpy.GraphEdgeId.valid ( self)

The documentation for this class was generated from the following file: