Panda3D
 All Classes Functions Variables Enumerations
paramNodePath.I
1 // Filename: paramNodePath.I
2 // Created by: rdb (25Feb15)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: ParamNodePath::Constructor
18 // Access: Published
19 // Description: Creates a new ParamNodePath storing the given
20 // node path object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE ParamNodePath::
23 ParamNodePath(const NodePath &node_path) :
24  _node_path(node_path)
25 {
26 }
27 
28 #ifdef USE_MOVE_SEMANTICS
29 ////////////////////////////////////////////////////////////////////
30 // Function: ParamNodePath::Move Constructor
31 // Access: Published
32 // Description: Creates a new ParamNodePath storing the given
33 // node path object.
34 ////////////////////////////////////////////////////////////////////
35 INLINE ParamNodePath::
36 ParamNodePath(NodePath &&node_path) NOEXCEPT :
37  _node_path(move(node_path))
38 {
39 }
40 #endif // USE_MOVE_SEMANTICS
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: ParamNodePath::get_value_type
44 // Access: Published, Virtual
45 // Description: Returns NodePath::get_class_type().
46 ////////////////////////////////////////////////////////////////////
48 get_value_type() const {
49  return NodePath::get_class_type();
50 }
51 
52 ////////////////////////////////////////////////////////////////////
53 // Function: ParamNodePath::get_value
54 // Access: Published
55 // Description: Retrieves the NodePath stored in the parameter.
56 ////////////////////////////////////////////////////////////////////
57 INLINE const NodePath &ParamNodePath::
58 get_value() const {
59  return _node_path;
60 }
virtual TypeHandle get_value_type() const
Returns NodePath::get_class_type().
Definition: paramNodePath.I:48
const NodePath & get_value() const
Retrieves the NodePath stored in the parameter.
Definition: paramNodePath.I:58
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165