ATLAS Offline Software
Loading...
Searching...
No Matches
bitPATTERN.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef BITPATTERN_H
6#define BITPATTERN_H
7
11
13{
14 private:
16 int m_size;
18
19 void shift_left(void);
20 void shift_right(void);
21
22 public:
23 bitPATTERN(const std::string&,const PATTERNidentity&,int);
24 bitPATTERN(const bitPATTERN&);
26
28
29 void set(const RPCdigit*,int);
30 void unset(int);
31 void reset(void);
32
33 bool any(void) const;
34 bool test(int) const;
35
36 bool operator<(const bitPATTERN&);
37
38 const RPCdigit* operator[](int) const;
39 const PATTERNidentity& id(void) const {return m_id;}
40
41 int size(void) const {return m_size;}
42
43 bitPATTERN operator& (const bitPATTERN&) const;
45 bitPATTERN operator| (const bitPATTERN&) const;
47 bitPATTERN operator^ (const bitPATTERN&) const;
51
52 void dump(uint32_t&, uint32_t&) const;
53
54 void Print(std::ostream&,bool detail) const;
55};
56
57template <class X> X& operator<<(X& stream,const bitPATTERN& data)
58{
59 std::ostringstream display;
60 data.Print(display,false);
61 stream << display.str();
62 return stream;
63}
64
65#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
X & operator<<(X &stream, const bitPATTERN &data)
Definition bitPATTERN.h:57
RPCtrigDataObject(int, const std::string &)
bitPATTERN(const std::string &, const PATTERNidentity &, int)
Definition bitPATTERN.cxx:9
const PATTERNidentity & id(void) const
Definition bitPATTERN.h:39
bitPATTERN & operator<<(int)
void set(const RPCdigit *, int)
void reset(void)
void Print(std::ostream &, bool detail) const
bool test(int) const
bool operator<(const bitPATTERN &)
bitPATTERN & operator|=(const bitPATTERN &)
bitPATTERN & operator=(const bitPATTERN &)
void shift_right(void)
void unset(int)
const RPCdigit ** m_digits
Definition bitPATTERN.h:17
bool any(void) const
int size(void) const
Definition bitPATTERN.h:41
PATTERNidentity m_id
Definition bitPATTERN.h:15
bitPATTERN & operator>>(int)
void shift_left(void)
bitPATTERN operator&(const bitPATTERN &) const
bitPATTERN operator^(const bitPATTERN &) const
bitPATTERN & operator^=(const bitPATTERN &)
bitPATTERN operator|(const bitPATTERN &) const
bitPATTERN & operator&=(const bitPATTERN &)
const RPCdigit * operator[](int) const
-event-from-file