|
synfig-core
1.0.3
|
A searchable value_node list container. More...
#include <valuenode.h>
Public Member Functions | |
| ValueNodeList () | |
| ValueNode::Handle | find (const String &name, bool might_fail) |
| Finds the ValueNode in the list with the given name. | |
| ValueNode::ConstHandle | find (const String &name, bool might_fail) const |
| Finds the ValueNode in the list with the given name. | |
| bool | erase (ValueNode::Handle value_node) |
| Removes the value_node from the list. | |
| bool | add (ValueNode::Handle value_node) |
| bool | count (const String &id) const |
| ValueNode::Handle | surefind (const String &name) |
| Similar to find, but will create a placeholder value_node if it cannot be found. | |
| void | audit () |
| Removes any value_nodes with reference counts of 1. | |
| int | placeholder_count () const |
| Placeholder Count. | |
A searchable value_node list container.
Used by Canvas class to access to the exported value nodes.
| ValueNodeList::ValueNodeList | ( | ) |
| ValueNode::Handle ValueNodeList::find | ( | const String & | name, |
| bool | might_fail | ||
| ) |
Finds the ValueNode in the list with the given name.
References synfig::ValueNode::breakpoint().
Referenced by add(), synfig::Canvas::add_value_node(), synfig::Canvas::find_value_node(), and surefind().
| ValueNode::ConstHandle ValueNodeList::find | ( | const String & | name, |
| bool | might_fail | ||
| ) | const |
Finds the ValueNode in the list with the given name.
References synfig::ValueNode::breakpoint().
| bool ValueNodeList::erase | ( | ValueNode::Handle | value_node | ) |
Removes the value_node from the list.
Referenced by synfig::Canvas::remove_value_node().
| bool ValueNodeList::add | ( | ValueNode::Handle | value_node | ) |
References find().
Referenced by synfig::Canvas::add_value_node().
| ValueNode::Handle ValueNodeList::surefind | ( | const String & | name | ) |
Similar to find, but will create a placeholder value_node if it cannot be found.
References synfig::PlaceholderValueNode::create(), and find().
Referenced by synfig::Canvas::surefind_value_node().
| void ValueNodeList::audit | ( | ) |
Removes any value_nodes with reference counts of 1.
|
inline |
Placeholder Count.
1.8.1.2