![]() |
ATLAS Offline Software
|
#include <IndexSet.h>
Public Member Functions | |
| IndexSet () | |
| default constructor: the number of indices is set to 0 | |
| IndexSet (const unsigned int &r_nb_indices) | |
| constructor: the number of indices is set to r_nb_indices | |
| IndexSet (const unsigned int &r_nb_indices, const std::vector< int > &r_index) | |
| constructor: the number of indices is set to r_nb_indices, the vector r_index contains the indices | |
| unsigned int | size () const |
| get the number of indices | |
| void | resize (const unsigned int &r_size) |
| resize the index set to r_size; the index store is preserved as far as possible | |
| int | operator[] (const unsigned int &r_k) |
| ::::::::::::::::::::::: | |
| int | operator[] (const unsigned int &r_k) const |
| access to the indices stored in the class, 0 <= r_k < size(); WARNING: no test on the index is performed | |
| void | sort () |
| sort the indices in ascending order | |
| bool | operator== (const IndexSet &r_index_set) const |
| bool | operator!= (const IndexSet &r_index_set) const |
| comparison of two index sets; two index sets are considered equal if they are of the same size and their indices are the same at the same position [. | |
Private Member Functions | |
| void | init () |
| void | init (const unsigned int &r_nb_indices) |
| void | init (const unsigned int &r_nb_indices, const std::vector< int > &r_index) |
Private Attributes | |
| unsigned int | m_nb_indices |
| std::vector< int > | m_index |
Definition at line 40 of file IndexSet.h.
|
inline |
default constructor: the number of indices is set to 0
Definition at line 57 of file IndexSet.h.
|
inline |
constructor: the number of indices is set to r_nb_indices
Definition at line 60 of file IndexSet.h.
|
inline |
constructor: the number of indices is set to r_nb_indices, the vector r_index contains the indices
Definition at line 63 of file IndexSet.h.
|
private |
Definition at line 27 of file IndexSet.cxx.
|
private |
Definition at line 38 of file IndexSet.cxx.
|
private |
Definition at line 50 of file IndexSet.cxx.
comparison of two index sets; two index sets are considered equal if they are of the same size and their indices are the same at the same position [.
]
Definition at line 164 of file IndexSet.cxx.
Definition at line 148 of file IndexSet.cxx.
| int IndexSet::operator[] | ( | const unsigned int & | r_k | ) |
| int IndexSet::operator[] | ( | const unsigned int & | r_k | ) | const |
access to the indices stored in the class, 0 <= r_k < size(); WARNING: no test on the index is performed
Definition at line 129 of file IndexSet.cxx.
| void IndexSet::resize | ( | const unsigned int & | r_size | ) |
resize the index set to r_size; the index store is preserved as far as possible
Definition at line 90 of file IndexSet.cxx.
| unsigned int IndexSet::size | ( | ) | const |
| void IndexSet::sort | ( | ) |
sort the indices in ascending order
Definition at line 137 of file IndexSet.cxx.
|
private |
Definition at line 44 of file IndexSet.h.
|
private |
Definition at line 43 of file IndexSet.h.