Panda3D
panda
src
doc
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
16
TypeHandle
SampleClass::_type_handle;
17
18
/**
19
*
20
*/
21
SampleClass::
22
SampleClass() {
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
*/
29
int
SampleClass::
30
public_method
() {
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
*/
46
bool
SampleClass::
47
protected_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
*/
59
void
SampleClass::
60
private_method() {
61
}
SampleClass::public_method
int public_method()
A few sentences describing what public_method is supposed to do and why you'd want to call it.
Definition:
sampleClass.cxx:30
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
sampleClass.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sat Jan 11 2020 15:14:48 for Panda3D by
1.8.17