Torque2D Reference
Public Member Functions | List of all members
Path Class Reference

Experimental and untested: represents a "path" to access a node. More...

#include <value.h>

Public Member Functions

 Path (const std::string &path, const PathArgument &a1=PathArgument(), const PathArgument &a2=PathArgument(), const PathArgument &a3=PathArgument(), const PathArgument &a4=PathArgument(), const PathArgument &a5=PathArgument())
 
const Valueresolve (const Value &root) const
 
Value resolve (const Value &root, const Value &defaultValue) const
 
Valuemake (Value &root) const
 Creates the "path" to access the specified node and returns a reference on the node. More...
 

Detailed Description

Experimental and untested: represents a "path" to access a node.

Syntax:

Constructor & Destructor Documentation

Path ( const std::string &  path,
const PathArgument a1 = PathArgument(),
const PathArgument a2 = PathArgument(),
const PathArgument a3 = PathArgument(),
const PathArgument a4 = PathArgument(),
const PathArgument a5 = PathArgument() 
)

Member Function Documentation

Value & make ( Value root) const

Creates the "path" to access the specified node and returns a reference on the node.

const Value & resolve ( const Value root) const
Value resolve ( const Value root,
const Value defaultValue 
) const

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