|
HDK
|
#include <MaterialXCore/Export.h>#include <MaterialXCore/Traversal.h>#include <MaterialXCore/Util.h>#include <MaterialXCore/Value.h>
Include dependency graph for Element.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Element |
| class | TypedElement |
| class | ValueElement |
| class | Token |
| class | CommentElement |
| class | NewlineElement |
| class | GenericElement |
| class | StringResolver |
| class | ElementEquivalenceOptions |
| class | ExceptionOrphanedElement |
Typedefs | |
| using | ElementPtr = shared_ptr< Element > |
| A shared pointer to an Element. More... | |
| using | ConstElementPtr = shared_ptr< const Element > |
| A shared pointer to a const Element. More... | |
| using | TypedElementPtr = shared_ptr< TypedElement > |
| A shared pointer to a TypedElement. More... | |
| using | ConstTypedElementPtr = shared_ptr< const TypedElement > |
| A shared pointer to a const TypedElement. More... | |
| using | ValueElementPtr = shared_ptr< ValueElement > |
| A shared pointer to a ValueElement. More... | |
| using | ConstValueElementPtr = shared_ptr< const ValueElement > |
| A shared pointer to a const ValueElement. More... | |
| using | TokenPtr = shared_ptr< Token > |
| A shared pointer to a Token. More... | |
| using | ConstTokenPtr = shared_ptr< const Token > |
| A shared pointer to a const Token. More... | |
| using | CommentElementPtr = shared_ptr< CommentElement > |
| A shared pointer to a CommentElement. More... | |
| using | ConstCommentElementPtr = shared_ptr< const CommentElement > |
| A shared pointer to a const CommentElement. More... | |
| using | NewlineElementPtr = shared_ptr< NewlineElement > |
| A shared pointer to a NewlineElement. More... | |
| using | ConstNewlineElementPtr = shared_ptr< const NewlineElement > |
| A shared pointer to a const NewlineElement. More... | |
| using | GenericElementPtr = shared_ptr< GenericElement > |
| A shared pointer to a GenericElement. More... | |
| using | ConstGenericElementPtr = shared_ptr< const GenericElement > |
| A shared pointer to a const GenericElement. More... | |
| using | StringResolverPtr = shared_ptr< StringResolver > |
| A shared pointer to a StringResolver. More... | |
| using | ElementVec = vector< ElementPtr > |
| A vector of elements. More... | |
| using | ElementMap = std::unordered_map< string, ElementPtr > |
| A hash map from strings to elements. More... | |
| using | ElementPredicate = std::function< bool(ConstElementPtr)> |
| A standard function taking an ElementPtr and returning a boolean. More... | |
Functions | |
| MX_CORE_API bool | targetStringsMatch (const string &target1, const string &target2) |
| MX_CORE_API string | prettyPrint (ConstElementPtr elem) |
Base and generic element classes
Definition in file Element.h.
| using CommentElementPtr = shared_ptr<CommentElement> |
A shared pointer to a CommentElement.
| using ConstCommentElementPtr = shared_ptr<const CommentElement> |
A shared pointer to a const CommentElement.
| using ConstElementPtr = shared_ptr<const Element> |
| using ConstGenericElementPtr = shared_ptr<const GenericElement> |
A shared pointer to a const GenericElement.
| using ConstNewlineElementPtr = shared_ptr<const NewlineElement> |
A shared pointer to a const NewlineElement.
| using ConstTokenPtr = shared_ptr<const Token> |
| using ConstTypedElementPtr = shared_ptr<const TypedElement> |
A shared pointer to a const TypedElement.
| using ConstValueElementPtr = shared_ptr<const ValueElement> |
A shared pointer to a const ValueElement.
| using ElementMap = std::unordered_map<string, ElementPtr> |
| using ElementPredicate = std::function<bool(ConstElementPtr)> |
| using ElementPtr = shared_ptr<Element> |
| using ElementVec = vector<ElementPtr> |
| using GenericElementPtr = shared_ptr<GenericElement> |
A shared pointer to a GenericElement.
| using NewlineElementPtr = shared_ptr<NewlineElement> |
A shared pointer to a NewlineElement.
| using StringResolverPtr = shared_ptr<StringResolver> |
A shared pointer to a StringResolver.
| using TypedElementPtr = shared_ptr<TypedElement> |
A shared pointer to a TypedElement.
| using ValueElementPtr = shared_ptr<ValueElement> |
A shared pointer to a ValueElement.
| MX_CORE_API string prettyPrint | ( | ConstElementPtr | elem | ) |
Pretty print the given element tree, calling asString recursively on each element in depth-first order.
| MX_CORE_API bool targetStringsMatch | ( | const string & | target1, |
| const string & | target2 | ||
| ) |
Given two target strings, each containing a string array of target names, return true if they have any targets in common. An empty target string matches all targets.