Container structure (filter, pipeline). More...
#include <UniformsLoader.hpp>
Public Member Functions | |
| void | softCopy (const Node &cpy, bool appendNewNodes=true, bool appendNewResources=true, bool removeAbsentNodes=true, bool removeAbsentResources=true) |
| Perform a soft copy from another node (copy the existing data, with possible filters). More... | |
| void | softCopy (const Node &cpy, LoadingFilter loadingFilter) |
| Perform a soft copy from another node (copy the existing data, with possible filters). More... | |
| const std::string & | getName (void) const |
| Get the name of the node. More... | |
| bool | isFilter (void) const |
| Get the name of the resource. More... | |
| bool | isPipeline (void) const |
| Test if a Node is a pipeline (either the node is empty or it has sub-nodes only). More... | |
| bool | empty (void) const |
| Test if a Node is a filter (either the node is empty or it has resources only). More... | |
| void | clear (void) |
| Removes all resources and sub-nodes from this node. | |
| bool | hasModifications (void) const |
| Test if this branch contains modified variables. More... | |
| void | clearModifiedFlags (bool value=false) |
| Go through all sub-nodes and change any Resource::modified flag. More... | |
| int | getNumSubNodes (void) const |
| Get the number of sub-nodes. More... | |
| std::vector< std::string > | getSubNodesNamesList (void) const |
| Get a list of the name of all sub-nodes. More... | |
| bool | subNodeExists (const std::string &nodeName) const |
| Test if a sub-node exist. More... | |
| const Node & | subNode (const std::string &nodeName) const |
| Access a sub-node by its name. More... | |
| Node & | subNode (const std::string &nodeName) |
| Access a sub-node by its name. More... | |
| void | eraseNode (const std::string &nodeName) |
| Remove a node by its name or raise an exception if any error occurs. More... | |
| NodeConstIterator | nodeBegin (void) const |
| Get the 'begin' iterator on the sub-nodes list. More... | |
| NodeConstIterator | nodeEnd (void) const |
| Get the 'end' iterator on the sub-nodes list. More... | |
| NodeConstIterator | findNode (const std::string &nodeName) const |
| Find node. More... | |
| NodeIterator | nodeBegin (void) |
| Get the 'begin' iterator on the sub-nodes list. More... | |
| NodeIterator | nodeEnd (void) |
| Get the 'end' iterator on the sub-nodes list. More... | |
| NodeIterator | findNode (const std::string &nodeName) |
| Find node. More... | |
| int | getNumResources (void) const |
| Get the number of resources. More... | |
| std::vector< std::string > | getResourcesNamesList (void) const |
| Get a list of the name of all resources. More... | |
| bool | resourceExists (const std::string &resourceName) const |
| Test if a resource exist. More... | |
| const Resource & | resource (const std::string &resourceName) const |
| Access a resource by its name. More... | |
| Resource & | resource (const std::string &resourceName) |
| Access a resource by its name. More... | |
| void | eraseResource (const std::string &resourceName) |
| Remove a resource by its name or raise an exception if any error occurs. More... | |
| ResourceConstIterator | resourceBegin (void) const |
| Get the 'begin' iterator on the resources list. More... | |
| ResourceConstIterator | resourceEnd (void) const |
| Get the 'end' iterator on the resources list. More... | |
| ResourceConstIterator | findResource (const std::string &resourceName) const |
| Find resource. More... | |
| ResourceIterator | resourceBegin (void) |
| Get the 'begin' iterator on the resources list. More... | |
| ResourceIterator | resourceEnd (void) |
| Get the 'end' iterator on the resources list. More... | |
| ResourceIterator | findResource (const std::string &resourceName) |
| Find resource. More... | |
Container structure (filter, pipeline).
| void UniformsLoader::Node::clearModifiedFlags | ( | bool | value = false | ) |
Go through all sub-nodes and change any Resource::modified flag.
| value | The new value to set for the flags (true, will set all the subsequent modified flags to true). |
| bool UniformsLoader::Node::empty | ( | void | ) | const |
| void UniformsLoader::Node::eraseNode | ( | const std::string & | nodeName | ) |
Remove a node by its name or raise an exception if any error occurs.
| nodeName | The name of the targeted node. |
| void UniformsLoader::Node::eraseResource | ( | const std::string & | resourceName | ) |
Remove a resource by its name or raise an exception if any error occurs.
| resourceName | The name of the targeted resource. |
| UniformsLoader::NodeConstIterator UniformsLoader::Node::findNode | ( | const std::string & | nodeName | ) | const |
Find node.
| nodeName | Name of the targeted node. |
| UniformsLoader::NodeIterator UniformsLoader::Node::findNode | ( | const std::string & | nodeName | ) |
Find node.
| nodeName | Name of the targeted node. |
| UniformsLoader::ResourceConstIterator UniformsLoader::Node::findResource | ( | const std::string & | resourceName | ) | const |
Find resource.
| resourceName | Name of the targeted resource. |
| UniformsLoader::ResourceIterator UniformsLoader::Node::findResource | ( | const std::string & | resourceName | ) |
Find resource.
| resourceName | Name of the targeted resource. |
| const std::string & UniformsLoader::Node::getName | ( | void | ) | const |
Get the name of the node.
| int UniformsLoader::Node::getNumResources | ( | void | ) | const |
Get the number of resources.
| int UniformsLoader::Node::getNumSubNodes | ( | void | ) | const |
Get the number of sub-nodes.
| std::vector< std::string > UniformsLoader::Node::getResourcesNamesList | ( | void | ) | const |
Get a list of the name of all resources.
| std::vector< std::string > UniformsLoader::Node::getSubNodesNamesList | ( | void | ) | const |
Get a list of the name of all sub-nodes.
| bool UniformsLoader::Node::hasModifications | ( | void | ) | const |
Test if this branch contains modified variables.
| bool UniformsLoader::Node::isFilter | ( | void | ) | const |
Get the name of the resource.
| bool UniformsLoader::Node::isPipeline | ( | void | ) | const |
| UniformsLoader::NodeConstIterator UniformsLoader::Node::nodeBegin | ( | void | ) | const |
Get the 'begin' iterator on the sub-nodes list.
| UniformsLoader::NodeIterator UniformsLoader::Node::nodeBegin | ( | void | ) |
Get the 'begin' iterator on the sub-nodes list.
| UniformsLoader::NodeConstIterator UniformsLoader::Node::nodeEnd | ( | void | ) | const |
Get the 'end' iterator on the sub-nodes list.
| UniformsLoader::NodeIterator UniformsLoader::Node::nodeEnd | ( | void | ) |
Get the 'end' iterator on the sub-nodes list.
| const UniformsLoader::Resource & UniformsLoader::Node::resource | ( | const std::string & | resourceName | ) | const |
Access a resource by its name.
| resourceName | The name of the targeted resource. |
| UniformsLoader::Resource & UniformsLoader::Node::resource | ( | const std::string & | resourceName | ) |
Access a resource by its name.
| resourceName | The name of the targeted resource. |
| UniformsLoader::ResourceConstIterator UniformsLoader::Node::resourceBegin | ( | void | ) | const |
Get the 'begin' iterator on the resources list.
| UniformsLoader::ResourceIterator UniformsLoader::Node::resourceBegin | ( | void | ) |
Get the 'begin' iterator on the resources list.
| UniformsLoader::ResourceConstIterator UniformsLoader::Node::resourceEnd | ( | void | ) | const |
Get the 'end' iterator on the resources list.
| UniformsLoader::ResourceIterator UniformsLoader::Node::resourceEnd | ( | void | ) |
Get the 'end' iterator on the resources list.
| bool UniformsLoader::Node::resourceExists | ( | const std::string & | resourceName | ) | const |
Test if a resource exist.
| resourceName | The name of the targeted resource. |
| void UniformsLoader::Node::softCopy | ( | const Node & | cpy, |
| bool | appendNewNodes = true, |
||
| bool | appendNewResources = true, |
||
| bool | removeAbsentNodes = true, |
||
| bool | removeAbsentResources = true |
||
| ) |
Perform a soft copy from another node (copy the existing data, with possible filters).
| cpy | The node to be copied (the source). |
| appendNewNodes | If true, nodes existing in the source but not in this will be added to this. |
| appendNewResources | If true, resources existing in the source but not in this will be added to this. |
| removeAbsentNodes | If true, remove the nodes existing in this but not in the source. |
| removeAbsentResources | If true, remove the resources existing in this but not in the source. |
| void UniformsLoader::Node::softCopy | ( | const Node & | cpy, |
| LoadingFilter | loadingFilter | ||
| ) |
Perform a soft copy from another node (copy the existing data, with possible filters).
The nodes existing in this but not in the source will not be modified.
| cpy | The node to be copied (the source). |
| loadingFilter | Select a specific method of loading. |
| const UniformsLoader::Node & UniformsLoader::Node::subNode | ( | const std::string & | nodeName | ) | const |
Access a sub-node by its name.
| nodeName | The name of the targeted node. |
| UniformsLoader::Node & UniformsLoader::Node::subNode | ( | const std::string & | nodeName | ) |
Access a sub-node by its name.
| nodeName | The name of the targeted node. |
| bool UniformsLoader::Node::subNodeExists | ( | const std::string & | nodeName | ) | const |
Test if a sub-node exist.
| nodeName | The name of the targeted node. |
1.8.8