Fairport
v1.0.38
|
Defines a transform from a subnode_info to an actual node object. More...
#include <node.h>
Public Member Functions | |
subnode_transform_info (const std::tr1::shared_ptr< node_impl > &parent) | |
Initialize this functor with the container node involved. | |
node | operator() (const subnode_info &info) const |
Given a subnode_info, construct a subnode. |
Defines a transform from a subnode_info to an actual node object.
Nodes actually contain a collection of subnode_info objects, not a collection of subnodes. In order to provide the friendly facade of nodes appearing to have a collection of subnodes, we define this transform. It is used later with the boost iterator library to define a proxy iterator for the subnodes of a node.
fairport::subnode_transform_info::subnode_transform_info | ( | const std::tr1::shared_ptr< node_impl > & | parent | ) | [inline] |
fairport::node fairport::subnode_transform_info::operator() | ( | const subnode_info & | info | ) | const [inline] |
Given a subnode_info, construct a subnode.
[in] | info | The info about the subnode |