PST File Format SDK v0.4
Loading...
Searching...
No Matches
pstsdk::subnode_transform_info Class Reference

Defines a transform from a subnode_info to an actual node object. More...

#include <node.h>

+ Collaboration diagram for pstsdk::subnode_transform_info:

Public Member Functions

 subnode_transform_info (const std::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.
 

Detailed Description

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.

Definition at line 237 of file node.h.

Constructor & Destructor Documentation

◆ subnode_transform_info()

pstsdk::subnode_transform_info::subnode_transform_info ( const std::shared_ptr< node_impl > &  parent)
inline

Initialize this functor with the container node involved.

Parameters
[in]parentThe containing node

Definition at line 242 of file node.h.

Member Function Documentation

◆ operator()()

pstsdk::node pstsdk::subnode_transform_info::operator() ( const subnode_info info) const
inline

Given a subnode_info, construct a subnode.

Parameters
[in]infoThe info about the subnode
Returns
A constructed node

Definition at line 869 of file node.h.


The documentation for this class was generated from the following file: