Panda3D
Loading...
Searching...
No Matches
interrogateMakeSeq.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 interrogateMakeSeq.I
10 * @author drose
11 * @date 2009-09-15
12 */
13
14/**
15 *
16 */
17INLINE InterrogateMakeSeq::
18InterrogateMakeSeq(InterrogateModuleDef *def) :
20{
21 _length_getter = 0;
22 _element_getter = 0;
23}
24
25/**
26 *
27 */
28INLINE InterrogateMakeSeq::
29InterrogateMakeSeq(const InterrogateMakeSeq &copy) {
30 (*this) = copy;
31}
32
33/**
34 *
35 */
36INLINE void InterrogateMakeSeq::
37operator = (const InterrogateMakeSeq &copy) {
38 InterrogateComponent::operator = (copy);
39 _scoped_name = copy._scoped_name;
40 _comment = copy._comment;
41 _length_getter = copy._length_getter;
42 _element_getter = copy._element_getter;
43}
44
45/**
46 *
47 */
48INLINE bool InterrogateMakeSeq::
49has_scoped_name() const {
50 return !_scoped_name.empty();
51}
52
53/**
54 *
55 */
56INLINE const std::string &InterrogateMakeSeq::
57get_scoped_name() const {
58 return _scoped_name;
59}
60
61/**
62 *
63 */
64INLINE bool InterrogateMakeSeq::
65has_comment() const {
66 return !_comment.empty();
67}
68
69/**
70 *
71 */
72INLINE const std::string &InterrogateMakeSeq::
73get_comment() const {
74 return _comment;
75}
76
77/**
78 *
79 */
80INLINE FunctionIndex InterrogateMakeSeq::
81get_length_getter() const {
82 return _length_getter;
83}
84
85/**
86 *
87 */
88INLINE FunctionIndex InterrogateMakeSeq::
89get_element_getter() const {
90 return _element_getter;
91}
92
93INLINE std::ostream &
94operator << (std::ostream &out, const InterrogateMakeSeq &make_seq) {
95 make_seq.output(out);
96 return out;
97}
98
99INLINE std::istream &
100operator >> (std::istream &in, InterrogateMakeSeq &make_seq) {
101 make_seq.input(in);
102 return in;
103}
The base class for things that are part of the interrogate database.
Represents a synthetic method created via the MAKE_SEQ() macro.
void input(std::istream &in)
Reads the data file as previously formatted by output().
void output(std::ostream &out) const
Formats the InterrogateMakeSeq data for output to a data file.