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

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Generated from:  MR::NodeId
Aliases:  TypedBitSet_NodeId_IndexType, Vector_NodeId_NodeId.reference, Vector_NodeId_NodeId.value_type, Vector_NodeId_NodeId.const_reference

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

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

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

◆ __init__() [3/4]

◆ __init__() [4/4]

None mrmeshpy.NodeId.__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.

Reimplemented in mrmeshpy.NoDefInit_NodeId, mrmeshpy.NoDefInit_NodeId, mrmeshpy.NoInitNodeId, mrmeshpy.NoInitNodeId, and mrmeshpy.NoInitNodeId.

Member Function Documentation

◆ __add__() [1/3]

NodeId mrmeshpy.NodeId.__add__ ( self,
int a )

◆ __add__() [2/3]

NodeId mrmeshpy.NodeId.__add__ ( self,
int a )

◆ __add__() [3/3]

NodeId mrmeshpy.NodeId.__add__ ( self,
int a )

◆ __bool__()

bool mrmeshpy.NodeId.__bool__ ( self)

◆ __eq__()

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

◆ __iadd__()

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

◆ __int__()

int mrmeshpy.NodeId.__int__ ( self)

◆ __isub__()

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

◆ __ne__()

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

◆ __repr__()

str mrmeshpy.NodeId.__repr__ ( self)

◆ get()

int mrmeshpy.NodeId.get ( self)

◆ operator() [1/5]

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

◆ operator() [2/5]

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

◆ operator() [3/5]

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

◆ operator() [4/5]

◆ operator() [5/5]

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

◆ operatorminusminus() [1/2]

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

◆ operatorminusminus() [2/2]

NodeId mrmeshpy.NodeId.operatorminusminus ( self)

◆ valid()

bool mrmeshpy.NodeId.valid ( self)

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