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