Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <AttributeSet.h>
Classes | |
struct | AttrGetterFactory |
Public Member Functions | |
Placeholder (const unsigned pos, const AttributeSet &attrs) | |
boost::python::object | get (const std::string &name) const |
Private Attributes | |
unsigned | m_pos |
AttributeSet | m_attrs |
Specialization of Placeholder for object-like variables. Note that, unlike other placeholders, this is used only during the evaluation. The final tree uses AttrGetter instances
Definition at line 85 of file AttributeSet.h.
|
inline |
Constructor
name | Name of the Placeholder. It will be used to retrieve later the value assigned to it. |
attrs | Acceptable attribute names, with an instance of the acceptable type |
Definition at line 94 of file AttributeSet.h.
|
inline |
Unfortunately we have to return directly a python object wrapping the appropiate AttrGetter
name | Parameter name |
UnrecoverableError | If the name is not a known parameter. Fallback to Python interpretation will not help. |
It uses a boost visitor to generate the right AttrGetter depending on the value stored on the prototype object passed to the constructor
Definition at line 107 of file AttributeSet.h.
References Pyston::Placeholder< T >::m_pos.
|
private |
Definition at line 115 of file AttributeSet.h.
|
private |
Definition at line 114 of file AttributeSet.h.