Share via


PortSet(T0, T1, T2) Members

Microsoft Robotics Class Reference

The PortSet< (Of < ( <'T0, T1, T2> ) > ) > type exposes the following members.

Constructors

  Name Description
Public method PortSet< (Of < ( <'T0, T1, T2> ) > ) >() () () ()
Constructs a PortSet using individual Port

Methods

  Name Description
Protected method AllocatePort< (Of < <' (TYPE> ) > > )
Allocates a Port instance of the specified type
(Inherited from PortSet.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Post(T0)
Enqueues a message instance
Public method Post(T1)
Enqueues a message instance
Public method Post(T2)
Enqueues a message instance
Public method PostUnknownType
Untyped post of a message.
(Inherited from PortSet.)
Public method Test< (Of < <' (T> ) > > )
Atomically removes a message from the port, or returns null if none present
(Inherited from PortSet.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public method TryPostUnknownType
Attempts unsafe (untyped) post of a message instance.

Remarks

Use to avoid possible exception thrown if message type is incompatible with the port
(Inherited from PortSet.)

Operators

  Name Description
Public operatorStatic member Implicit Widening Implicit Implicit Implicit(PortSet< (Of < <' (T0, T1, T2> ) > > ) to T2)
Invoke the Test method to extract an item of this type
Public operatorStatic member Implicit Widening Implicit Implicit Implicit(PortSet< (Of < <' (T0, T1, T2> ) > > ) to Port< (Of < <' (T1> ) > > ))
Convert to the 1th PortSet

Fields

  Name Description
Protected field ModeInternal
PortSet operation mode
(Inherited from PortSet.)
Protected field PortsTable
Table of typed ports
(Inherited from PortSet.)
Protected field SharedPortInternal
Shared port instance
(Inherited from PortSet.)
Protected field Types
Types supported by this port set
(Inherited from PortSet.)

Properties

  Name Description
Public property Item
Returns the port instance used to store items of specified type
(Inherited from PortSet.)
Public property Mode
Port operation mode
(Inherited from PortSet.)
Public property P0
Returns the port 0th port in this collection.

Remarks

Index is 0-based.
Public property P1
Returns the port 1th port in this collection.

Remarks

Index is 0-based.
Public property P2
Returns the port 2th port in this collection.

Remarks

Index is 0-based.
Public property Ports
Array of single queue ports for each generic type in this port instance

Remarks

If the mode of operation is PortSetMode.SharedPort, the single shared port instance is returned
(Inherited from PortSet.)
Public property SharedPort
Shared port instance for all generic type arguments of this instance

Remarks

Valid if the mode of operation is PortSetMode.SharedPort, null otherwise
(Inherited from PortSet.)

See Also

PortSet< (Of < ( <'T0, T1, T2> ) > ) > Class

Microsoft.Ccr.Core Namespace