Panda3D
paramNodePath.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file paramNodePath.I
10  * @author rdb
11  * @date 2015-02-25
12  */
13 
14 /**
15  * Creates a new ParamNodePath storing the given node path object.
16  */
17 INLINE ParamNodePath::
18 ParamNodePath(const NodePath &node_path) :
19  _node_path(node_path)
20 {
21 }
22 
23 /**
24  * Creates a new ParamNodePath storing the given node path object.
25  */
26 INLINE ParamNodePath::
27 ParamNodePath(NodePath &&node_path) noexcept :
28  _node_path(std::move(node_path))
29 {
30 }
31 
32 /**
33  * Returns NodePath::get_class_type().
34  */
36 get_value_type() const {
37  return NodePath::get_class_type();
38 }
39 
40 /**
41  * Retrieves the NodePath stored in the parameter.
42  */
43 INLINE const NodePath &ParamNodePath::
44 get_value() const {
45  return _node_path;
46 }
const NodePath & get_value() const
Retrieves the NodePath stored in the parameter.
Definition: paramNodePath.I:44
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:161
virtual TypeHandle get_value_type() const
Returns NodePath::get_class_type().
Definition: paramNodePath.I:36