Panda3D
Loading...
Searching...
No Matches
sampleClass.cxx
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 sampleClass.cxx
10 * @author drose
11 * @date 2000-06-10
12 */
13
14#include "sampleClass.h"
15
16TypeHandle SampleClass::_type_handle;
17
18/**
19 *
20 */
21SampleClass::
22SampleClass() {
23}
24
25/**
26 * A few sentences describing what public_method is supposed to do and why
27 * you'd want to call it.
28 */
31 switch (_private_data_member) {
32 case NE_case_one:
33 return 0;
34
35 case NE_case_two:
36 return _flag;
37
38 default:
39 return -1;
40 }
41}
42
43/**
44 * A few sentences describing what protected_method is supposed to do.
45 */
46bool SampleClass::
47protected_method() {
48 if (_flag > 0) {
49 _flag--;
50 return false;
51 } else {
52 return true;
53 }
54}
55
56/**
57 * A few sentences describing what private_method is supposed to do.
58 */
59void SampleClass::
60private_method() {
61}
int public_method()
A few sentences describing what public_method is supposed to do and why you'd want to call it.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.