PolyLink
A library to allow manipulation of geometry from within Mathematica
All Classes Namespaces Files Functions Variables Properties
PolyLink.KernelOperation Struct Reference
Inheritance diagram for PolyLink.KernelOperation:
PolyLink.IKernelOperation

Public Member Functions

 KernelOperation (IKernelLink kernel, string command)
 
void CheckArgs< T > (IEnumerable< T > args)
 
KernelOperation Format (params object[] args)
 Formats the KernelOperation using String.Format(string, args) More...
 
KernelOperation Bracket (params object[] args)
 Treats the command like the head of a Mathematica function and sets args to be its arguments. More...
 
KernelOperation Bracket< T > (IEnumerable< T > args)
 Treats the command like the head of a Mathematica function and sets args to be its arguments. More...
 
object EvalObject ()
 Evaluates the Command to a .NET object, which can be cast as a double, int, boolean, etc. More...
 
Expr Eval ()
 Evaluates the Command to a Mathematica expression. More...
 
Func< Expr, Expr > EvalFunc ()
 Converts this Command to a re-usable function which takes in and gives out Mathematica Expressions. More...
 
KernelOperation FullSimplify ()
 Performs a FullSimplify[] Mathematica operation upon the Command. More...
 

Properties

string Command [get]
 
IKernelLink Kernel [get]
 

Detailed Description

Definition at line 104 of file KernelDispatch.cs.

Constructor & Destructor Documentation

PolyLink.KernelOperation.KernelOperation ( IKernelLink  kernel,
string  command 
)

Definition at line 109 of file KernelDispatch.cs.

Member Function Documentation

KernelOperation PolyLink.KernelOperation.Bracket ( params object[]  args)

Treats the command like the head of a Mathematica function and sets args to be its arguments.

Parameters
argsArguments to a function
Returns
A new KernelOperation with the arguments in place

Implements PolyLink.IKernelOperation.

Definition at line 139 of file KernelDispatch.cs.

KernelOperation PolyLink.KernelOperation.Bracket< T > ( IEnumerable< T >  args)

Treats the command like the head of a Mathematica function and sets args to be its arguments.

Parameters
argsA collection of argumetns to go into the function
Returns
A new KernelOperation with the arguments in place

Implements PolyLink.IKernelOperation.

Definition at line 145 of file KernelDispatch.cs.

void PolyLink.KernelOperation.CheckArgs< T > ( IEnumerable< T >  args)

Definition at line 125 of file KernelDispatch.cs.

Expr PolyLink.KernelOperation.Eval ( )

Evaluates the Command to a Mathematica expression.

Implements PolyLink.IKernelOperation.

Definition at line 169 of file KernelDispatch.cs.

Func<Expr, Expr> PolyLink.KernelOperation.EvalFunc ( )

Converts this Command to a re-usable function which takes in and gives out Mathematica Expressions.

Implements PolyLink.IKernelOperation.

Definition at line 179 of file KernelDispatch.cs.

object PolyLink.KernelOperation.EvalObject ( )

Evaluates the Command to a .NET object, which can be cast as a double, int, boolean, etc.

Implements PolyLink.IKernelOperation.

Definition at line 154 of file KernelDispatch.cs.

KernelOperation PolyLink.KernelOperation.Format ( params object[]  args)

Formats the KernelOperation using String.Format(string, args)

Parameters
argsA set of objects to be formatted into the command
Returns
A new formatted command.

Implements PolyLink.IKernelOperation.

Definition at line 133 of file KernelDispatch.cs.

KernelOperation PolyLink.KernelOperation.FullSimplify ( )

Performs a FullSimplify[] Mathematica operation upon the Command.

Implements PolyLink.IKernelOperation.

Definition at line 191 of file KernelDispatch.cs.

Property Documentation

string PolyLink.KernelOperation.Command
get

Definition at line 116 of file KernelDispatch.cs.

IKernelLink PolyLink.KernelOperation.Kernel
get

Definition at line 121 of file KernelDispatch.cs.


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