#include <PDGCodeList.h>
Public Member Functions | |
PDGCodeList (bool allowdup=false) | |
PDGCodeList (size_type n, bool allowdup=false) | |
PDGCodeList (const PDGCodeList &list) | |
~PDGCodeList () | |
void | push_back (int pdg_code) |
void | insert (iterator pos, size_type n, const int &x) |
bool | CheckPDGCode (int pdg_code) const |
PDG code checks used by PDGCodeList. More... | |
bool | ExistsInPDGLibrary (int pdg_code) const |
bool | ExistsInPDGCodeList (int pdg_code) const |
void | Copy (const PDGCodeList &list) |
copy / print More... | |
void | Print (ostream &stream) const |
bool | DuplEntriesAllowed (void) const |
check state More... | |
PDGCodeList & | operator= (const PDGCodeList &list) |
overloaded operators More... | |
Private Attributes | |
bool | fAllowDuplicateEntries |
allow duplicate entries in the list? More... | |
Friends | |
ostream & | operator<< (ostream &stream, const PDGCodeList &list) |
Additional Inherited Members | |
Public Attributes inherited from vector< int > | |
void * | data |
size_t | size |
size_t | allocsize |
unsigned | typesize |
A list of PDG codes.
May 13, 2005
Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org
Definition at line 32 of file PDGCodeList.h.
PDGCodeList::PDGCodeList | ( | bool | allowdup = false | ) |
Definition at line 35 of file PDGCodeList.cxx.
PDGCodeList::PDGCodeList | ( | size_type | n, |
bool | allowdup = false |
||
) |
Definition at line 41 of file PDGCodeList.cxx.
PDGCodeList::PDGCodeList | ( | const PDGCodeList & | list | ) |
Definition at line 47 of file PDGCodeList.cxx.
PDGCodeList::~PDGCodeList | ( | ) |
Definition at line 53 of file PDGCodeList.cxx.
bool PDGCodeList::CheckPDGCode | ( | int | pdg_code | ) | const |
PDG code checks used by PDGCodeList.
Definition at line 71 of file PDGCodeList.cxx.
void PDGCodeList::Copy | ( | const PDGCodeList & | list | ) |
copy / print
Definition at line 145 of file PDGCodeList.cxx.
|
inline |
check state
Definition at line 56 of file PDGCodeList.h.
bool PDGCodeList::ExistsInPDGCodeList | ( | int | pdg_code | ) | const |
Definition at line 103 of file PDGCodeList.cxx.
bool PDGCodeList::ExistsInPDGLibrary | ( | int | pdg_code | ) | const |
Definition at line 93 of file PDGCodeList.cxx.
void PDGCodeList::insert | ( | iterator | pos, |
size_type | n, | ||
const int & | x | ||
) |
Definition at line 63 of file PDGCodeList.cxx.
PDGCodeList & PDGCodeList::operator= | ( | const PDGCodeList & | list | ) |
overloaded operators
Definition at line 158 of file PDGCodeList.cxx.
void PDGCodeList::Print | ( | ostream & | stream | ) | const |
Definition at line 120 of file PDGCodeList.cxx.
void PDGCodeList::push_back | ( | int | pdg_code | ) |
override the vector<int> insertion methods to explicitly check for PDG code validity and that no PDG code is listed more than once
Definition at line 58 of file PDGCodeList.cxx.
|
friend |
Definition at line 28 of file PDGCodeList.cxx.
|
private |
allow duplicate entries in the list?
Definition at line 64 of file PDGCodeList.h.