ILGPU  0.9.0
ILGPU.IR.NodeId Struct Reference

Represents a node id. More...

Inheritance diagram for ILGPU.IR.NodeId:

Public Member Functions

bool Equals (NodeId other)
 Returns true if the given id is equal to this id. More...
 
int CompareTo (NodeId other)
 Compares this id to the given one. More...
 
override bool Equals (object obj)
 Returns true if the given object is equal to this id. More...
 
override int GetHashCode ()
 Returns the hash code of this id. More...
 
override string ToString ()
 Returns the string representation of this id. More...
 

Static Public Member Functions

static NodeId CreateNew ()
 Creates a new unique node id. More...
 
static implicit operator long (NodeId nodeId)
 Converts the given node id into its underlying long value. More...
 
static bool operator== (NodeId first, NodeId second)
 Returns true if the first and the second id are the same. More...
 
static bool operator!= (NodeId first, NodeId second)
 Returns true if the first and the second id are not the same. More...
 
static bool operator< (NodeId first, NodeId second)
 Returns true if the first id is smaller than the second one. More...
 
static bool operator<= (NodeId first, NodeId second)
 Returns true if the first id is smaller than or equal to the second one. More...
 
static bool operator> (NodeId first, NodeId second)
 Returns true if the first id is greater than the second one. More...
 
static bool operator>= (NodeId first, NodeId second)
 Returns true if the first id is greater than or equal to the second one. More...
 

Static Public Attributes

static readonly NodeId Empty = new NodeId(-1)
 Represents the empty node id. More...
 

Properties

long Value [get]
 Returns the encapsulated value. More...
 

Detailed Description

Represents a node id.

Member Function Documentation

int ILGPU.IR.NodeId.CompareTo ( NodeId  other)

Compares this id to the given one.

Parameters
otherThe object to compare to.
Returns
The comparison result.
static NodeId ILGPU.IR.NodeId.CreateNew ( )
static

Creates a new unique node id.

Returns
A new unique node id.
bool ILGPU.IR.NodeId.Equals ( NodeId  other)

Returns true if the given id is equal to this id.

Parameters
otherThe other id.
Returns
True, if the given id is equal to this id.
override bool ILGPU.IR.NodeId.Equals ( object  obj)

Returns true if the given object is equal to this id.

Parameters
objThe other object.
Returns
True, if the given object is equal to this id.
override int ILGPU.IR.NodeId.GetHashCode ( )

Returns the hash code of this id.

Returns
The hash code of this id.
static implicit ILGPU.IR.NodeId.operator long ( NodeId  nodeId)
static

Converts the given node id into its underlying long value.

Parameters
nodeIdThe node id.
static bool ILGPU.IR.NodeId.operator!= ( NodeId  first,
NodeId  second 
)
static

Returns true if the first and the second id are not the same.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first and the second id are not the same.
static bool ILGPU.IR.NodeId.operator< ( NodeId  first,
NodeId  second 
)
static

Returns true if the first id is smaller than the second one.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first id is smaller than the second one.
static bool ILGPU.IR.NodeId.operator<= ( NodeId  first,
NodeId  second 
)
static

Returns true if the first id is smaller than or equal to the second one.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first id is smaller than or equal to the second one.
static bool ILGPU.IR.NodeId.operator== ( NodeId  first,
NodeId  second 
)
static

Returns true if the first and the second id are the same.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first and the second id are the same.
static bool ILGPU.IR.NodeId.operator> ( NodeId  first,
NodeId  second 
)
static

Returns true if the first id is greater than the second one.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first id is greater than the second one.
static bool ILGPU.IR.NodeId.operator>= ( NodeId  first,
NodeId  second 
)
static

Returns true if the first id is greater than or equal to the second one.

Parameters
firstThe first id.
secondThe second id.
Returns
True, if the first id is greater than or equal to the second one.
override string ILGPU.IR.NodeId.ToString ( )

Returns the string representation of this id.

Returns
The string representation of this id.

Member Data Documentation

readonly NodeId ILGPU.IR.NodeId.Empty = new NodeId(-1)
static

Represents the empty node id.

Property Documentation

long ILGPU.IR.NodeId.Value
get

Returns the encapsulated value.


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