本文整理汇总了C#中Atom.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# Atom.ToString方法的具体用法?C# Atom.ToString怎么用?C# Atom.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Atom
的用法示例。
在下文中一共展示了Atom.ToString方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: test
public test(Atom[] args)
{
Post("Test.ctor "+args.ToString());
// save args
this.args = args;
// AddInlet(s_list,new PureData.Symbol("list2"));
AddInlet();
AddInlet(ref farg);
AddInlet();
AddOutletAnything();
}
示例2: getDomain
/**
* Process a qualifier and returns the result. This methods simply bridges
* the Atom qualifier to the XPath expression, and the returned Vector of
* XML nodes into a Set of Constants. When the method encounters the atom
* equal to m_timeSymbol, it returns the current system time (in
* seconds) as the only domain element.
*
* @param p
* @return
*/
public HashSet<Atom> getDomain(Atom p)
{
HashSet<Atom> aOut = new HashSet<Atom>();
if (LTLFOWatcher.m_timeSymbol.Equals(p))
{
// We are processing the special "time" variable: its
// domain has 1 value: the current time in SECONDS
aOut.Add(new Constant(((float)(Stopwatch.GetTimestamp())).ToString()));
return aOut;
}
string path = p.ToString();
List<XMLDocument> values = m_xd.evaluateXPath(m_prependPath + path);
foreach (XMLDocument xd in values)
{
aOut.Add(new Constant(xd.getText()));
}
return aOut;
}
示例3: set
protected virtual void set(int ix,Symbol s,Atom[] l)
{
Post("Test-SET "+l.ToString());
Outlet(0,new Symbol("set"),l);
}
示例4: list
protected virtual void list(Atom[] l)
{
Post("Test-LIST "+l.ToString());
Outlet(0,l);
}
示例5: MyAny1
protected virtual void MyAny1(int ix,Symbol s,Atom[] l)
{
Post(ix.ToString()+": Test-ANY1 "+l.ToString());
}
示例6: MyAnything
protected virtual void MyAnything(int ix,Symbol s,Atom[] l)
{
Post(ix.ToString()+": Test-("+s.ToString()+") "+l.ToString());
Outlet(0,s,l);
}