#include <bitPATTERN.h>
Definition at line 12 of file bitPATTERN.h.
◆ bitPATTERN() [1/2]
| bitPATTERN::bitPATTERN |
( |
const std::string & | name, |
|
|
const PATTERNidentity & | id, |
|
|
int | size ) |
Definition at line 9 of file bitPATTERN.cxx.
9 :
13{
16}
const std::string & name() const
RPCtrigDataObject(int, const std::string &)
const RPCdigit ** m_digits
◆ bitPATTERN() [2/2]
| bitPATTERN::bitPATTERN |
( |
const bitPATTERN & | pattern | ) |
|
◆ ~bitPATTERN()
| bitPATTERN::~bitPATTERN |
( |
| ) |
|
◆ any()
| bool bitPATTERN::any |
( |
void | | ) |
const |
Definition at line 78 of file bitPATTERN.cxx.
79{
81 {
83 }
84 return false;
85}
◆ dump()
| void bitPATTERN::dump |
( |
uint32_t & | first_32_pattern, |
|
|
uint32_t & | second_32_pattern ) const |
Definition at line 220 of file bitPATTERN.cxx.
222{
223 first_32_pattern = 0x0;
224 second_32_pattern = 0x0;
225
227
228 for (
int i=0;
i<32; ++
i)
229 {
230 if (
m_digits[i]) first_32_pattern |= (0x1<<
i);
231 }
232
234 {
235 for (
int i=32;
i<64; ++
i)
236 {
237 if (
m_digits[i]) second_32_pattern |= (0x1<<(
i-32));
238 }
239 }
240}
◆ id()
◆ name()
| const std::string & BaseObject::name |
( |
| ) |
const |
|
inlineinherited |
◆ number()
| int RPCtrigDataObject::number |
( |
void | | ) |
const |
|
inlineinherited |
◆ operator&()
Definition at line 103 of file bitPATTERN.cxx.
104{
107
109 {
111 }
112
114}
bitPATTERN(const std::string &, const PATTERNidentity &, int)
◆ operator&=()
Definition at line 117 of file bitPATTERN.cxx.
118{
121 {
123 }
124 return *this;
125}
◆ operator<()
| bool bitPATTERN::operator< |
( |
const bitPATTERN & | pattern | ) |
|
◆ operator<<()
Definition at line 190 of file bitPATTERN.cxx.
192{
193 if(num <= 0) return *this;
195 return *this;
196}
◆ operator=()
◆ operator>>()
Definition at line 199 of file bitPATTERN.cxx.
200{
201 if(num <= 0) return *this;
203 return *this;
204}
◆ operator[]()
| const RPCdigit * bitPATTERN::operator[] |
( |
int | bit | ) |
const |
◆ operator^()
Definition at line 159 of file bitPATTERN.cxx.
160{
163
165 {
168 {
170 else result.set(pattern[i],i);
171 }
172 }
173
175}
◆ operator^=()
Definition at line 178 of file bitPATTERN.cxx.
179{
182 {
186 }
187 return *this;
188}
◆ operator|()
Definition at line 128 of file bitPATTERN.cxx.
129{
132
134 {
136 {
138 else result.set(pattern[i],i);
139 }
140 }
141
143}
◆ operator|=()
Definition at line 146 of file bitPATTERN.cxx.
147{
150 {
153 }
154 return *this;
155}
◆ Print()
| void bitPATTERN::Print |
( |
std::ostream & | stream, |
|
|
bool | detail ) const |
|
virtual |
Reimplemented from BaseObject.
Definition at line 243 of file bitPATTERN.cxx.
244{
246
249
251 {
254 }
255
256
258
259 if(detail )
260 {
261 stream <<
"gives input to " <<
id() << endl;
263 {
265 {
266 stream <<
"bit " <<
i <<
" raised by:" << endl;
267 (*this)[
i]->Print(stream,
false);
268 }
269 }
270 }
271}
const PATTERNidentity & id(void) const
◆ PrintElement()
| void RPCtrigDataObject::PrintElement |
( |
std::ostream & | , |
|
|
std::string | , |
|
|
bool | ) const |
|
inlineinherited |
◆ reset()
| void bitPATTERN::reset |
( |
void | | ) |
|
◆ set()
| void bitPATTERN::set |
( |
const RPCdigit * | digit, |
|
|
int | bit ) |
◆ set_number()
| void RPCtrigDataObject::set_number |
( |
int | number | ) |
|
|
inherited |
◆ shift_left()
| void bitPATTERN::shift_left |
( |
void | | ) |
|
|
private |
◆ shift_right()
| void bitPATTERN::shift_right |
( |
void | | ) |
|
|
private |
◆ size()
| int bitPATTERN::size |
( |
void | | ) |
const |
|
inline |
◆ tag()
◆ test()
| bool bitPATTERN::test |
( |
int | bit | ) |
const |
Definition at line 88 of file bitPATTERN.cxx.
89{
90 if(bit >=
m_size || bit < 0)
return false;
92 else return false;
93}
◆ unset()
| void bitPATTERN::unset |
( |
int | bit | ) |
|
◆ m_digits
◆ m_id
◆ m_name
| std::string BaseObject::m_name |
|
privateinherited |
◆ m_number
| int RPCtrigDataObject::m_number |
|
privateinherited |
◆ m_size
◆ m_tag
The documentation for this class was generated from the following files: