ATLAS Offline Software
Loading...
Searching...
No Matches
TestClassPrimitives Class Reference

#include <TestClassPrimitives.h>

Collaboration diagram for TestClassPrimitives:

Public Member Functions

 TestClassPrimitives ()
 ~TestClassPrimitives ()
void setNonZero ()
bool operator== (const TestClassPrimitives &rhs) const
bool operator!= (const TestClassPrimitives &rhs) const
std::ostream & streamOut (std::ostream &os) const

Public Attributes

bool m_bool
char m_char
unsigned char m_uchar
signed char m_schar
short m_short
unsigned short m_ushort
signed short m_sshort
short int m_shortint
unsigned short int m_ushortint
signed short int m_sshortint
int m_int
unsigned int m_uint
signed int m_sint
signed m_s
unsigned m_u
long m_long
unsigned long m_ulong
signed long m_slong
long int m_longint
unsigned long int m_ulongint
signed long int m_slongint
float m_float
double m_double

Detailed Description

Definition at line 10 of file TestClassPrimitives.h.

Constructor & Destructor Documentation

◆ TestClassPrimitives()

TestClassPrimitives::TestClassPrimitives ( )
inline

Definition at line 49 of file TestClassPrimitives.h.

49 :
50 m_bool( false ),
51 m_char( 0 ),
52 m_uchar( 0 ),
53 m_schar( 0 ),
54 m_short( 0 ),
55 m_ushort( 0 ),
56 m_sshort( 0 ),
57 m_shortint( 0 ),
58 m_ushortint( 0 ),
59 m_sshortint( 0 ),
60 m_int( 0 ),
61 m_uint( 0 ),
62 m_sint( 0 ),
63 m_s( 0 ),
64 m_u( 0 ),
65 m_long( 0 ),
66 m_ulong( 0 ),
67 m_slong( 0 ),
68 m_longint( 0 ),
69 m_ulongint( 0 ),
70 m_slongint( 0 ),
71 m_float( 0 ),
72 m_double( 0 )
73{}
signed short int m_sshortint
unsigned long int m_ulongint
unsigned short int m_ushortint
signed long int m_slongint

◆ ~TestClassPrimitives()

TestClassPrimitives::~TestClassPrimitives ( )
inline

Definition at line 14 of file TestClassPrimitives.h.

14{}

Member Function Documentation

◆ operator!=()

bool TestClassPrimitives::operator!= ( const TestClassPrimitives & rhs) const
inline

Definition at line 162 of file TestClassPrimitives.h.

163{
164 return ( ( (*this) == rhs ) ? false : true );
165}

◆ operator==()

bool TestClassPrimitives::operator== ( const TestClassPrimitives & rhs) const
inline

Definition at line 133 of file TestClassPrimitives.h.

134{
135 return
136 ( m_bool == rhs.m_bool &&
137 m_char == rhs.m_char &&
138 m_uchar == rhs.m_uchar &&
139 m_schar == rhs.m_schar &&
140 m_short == rhs.m_short &&
141 m_ushort == rhs.m_ushort &&
142 m_sshort == rhs.m_sshort &&
143 m_shortint == rhs.m_shortint &&
144 m_ushortint == rhs.m_ushortint &&
145 m_sshortint == rhs.m_sshortint &&
146 m_int == rhs.m_int &&
147 m_uint == rhs.m_uint &&
148 m_sint == rhs.m_sint &&
149 m_s == rhs.m_s &&
150 m_u == rhs.m_u &&
151 m_long == rhs.m_long &&
152 m_ulong == rhs.m_ulong &&
153 m_slong == rhs.m_slong &&
154 m_longint == rhs.m_longint &&
155 m_ulongint == rhs.m_ulongint &&
156 m_slongint == rhs.m_slongint &&
157 m_float == rhs.m_float &&
158 m_double == rhs.m_double );
159}

◆ setNonZero()

void TestClassPrimitives::setNonZero ( )
inline

Definition at line 76 of file TestClassPrimitives.h.

77{
78 m_bool = true;
79 m_char = 1;
80 m_uchar = 2;
81 m_schar = 3;
82 m_short = 4;
83 m_ushort = 5;
84 m_sshort = 6;
85 m_shortint = 7;
86 m_ushortint = 8;
87 m_sshortint = 9;
88 m_int = 10;
89 m_uint = 11;
90 m_sint = 12;
91 m_s = 13;
92 m_u = 14;
93 m_long = 15;
94 m_ulong = 16;
95 m_slong = 17;
96 m_longint = 18;
97 m_ulongint = 19;
98 m_slongint = 20;
99 m_float = 21;
100 m_double = 22;
101}

◆ streamOut()

std::ostream & TestClassPrimitives::streamOut ( std::ostream & os) const
inline

Definition at line 104 of file TestClassPrimitives.h.

105{
106 os << "m_bool = " << static_cast<int>( m_bool ) << std::endl
107 << "m_char = " << static_cast<int>( m_char ) << std::endl
108 << "m_uchar = " << static_cast<int>( m_uchar ) << std::endl
109 << "m_schar = " << static_cast<int>( m_schar ) << std::endl
110 << "m_short = " << m_short << std::endl
111 << "m_ushort = " << m_ushort << std::endl
112 << "m_sshort = " << m_sshort << std::endl
113 << "m_shortint = " << m_shortint << std::endl
114 << "m_ushortint = " << m_ushortint << std::endl
115 << "m_sshortint = " << m_sshortint << std::endl
116 << "m_int = " << m_int << std::endl
117 << "m_uint = " << m_uint << std::endl
118 << "m_sint = " << m_sint << std::endl
119 << "m_s = " << m_s << std::endl
120 << "m_u = " << m_u << std::endl
121 << "m_long = " << m_long << std::endl
122 << "m_ulong = " << m_ulong << std::endl
123 << "m_slong = " << m_slong << std::endl
124 << "m_longint = " << m_longint << std::endl
125 << "m_ulongint = " << m_ulongint << std::endl
126 << "m_slongint = " << m_slongint << std::endl
127 << "m_float = " << m_float << std::endl
128 << "m_double = " << m_double;
129 return os;
130}

Member Data Documentation

◆ m_bool

bool TestClassPrimitives::m_bool

Definition at line 21 of file TestClassPrimitives.h.

◆ m_char

char TestClassPrimitives::m_char

Definition at line 22 of file TestClassPrimitives.h.

◆ m_double

double TestClassPrimitives::m_double

Definition at line 43 of file TestClassPrimitives.h.

◆ m_float

float TestClassPrimitives::m_float

Definition at line 42 of file TestClassPrimitives.h.

◆ m_int

int TestClassPrimitives::m_int

Definition at line 31 of file TestClassPrimitives.h.

◆ m_long

long TestClassPrimitives::m_long

Definition at line 36 of file TestClassPrimitives.h.

◆ m_longint

long int TestClassPrimitives::m_longint

Definition at line 39 of file TestClassPrimitives.h.

◆ m_s

signed TestClassPrimitives::m_s

Definition at line 34 of file TestClassPrimitives.h.

◆ m_schar

signed char TestClassPrimitives::m_schar

Definition at line 24 of file TestClassPrimitives.h.

◆ m_short

short TestClassPrimitives::m_short

Definition at line 25 of file TestClassPrimitives.h.

◆ m_shortint

short int TestClassPrimitives::m_shortint

Definition at line 28 of file TestClassPrimitives.h.

◆ m_sint

signed int TestClassPrimitives::m_sint

Definition at line 33 of file TestClassPrimitives.h.

◆ m_slong

signed long TestClassPrimitives::m_slong

Definition at line 38 of file TestClassPrimitives.h.

◆ m_slongint

signed long int TestClassPrimitives::m_slongint

Definition at line 41 of file TestClassPrimitives.h.

◆ m_sshort

signed short TestClassPrimitives::m_sshort

Definition at line 27 of file TestClassPrimitives.h.

◆ m_sshortint

signed short int TestClassPrimitives::m_sshortint

Definition at line 30 of file TestClassPrimitives.h.

◆ m_u

unsigned TestClassPrimitives::m_u

Definition at line 35 of file TestClassPrimitives.h.

◆ m_uchar

unsigned char TestClassPrimitives::m_uchar

Definition at line 23 of file TestClassPrimitives.h.

◆ m_uint

unsigned int TestClassPrimitives::m_uint

Definition at line 32 of file TestClassPrimitives.h.

◆ m_ulong

unsigned long TestClassPrimitives::m_ulong

Definition at line 37 of file TestClassPrimitives.h.

◆ m_ulongint

unsigned long int TestClassPrimitives::m_ulongint

Definition at line 40 of file TestClassPrimitives.h.

◆ m_ushort

unsigned short TestClassPrimitives::m_ushort

Definition at line 26 of file TestClassPrimitives.h.

◆ m_ushortint

unsigned short int TestClassPrimitives::m_ushortint

Definition at line 29 of file TestClassPrimitives.h.


The documentation for this class was generated from the following file: