Base for lists with indirect addressing, templated on the list contents type and the addressing type. Storage for both values and addressing is held outside of the class. More...
Classes | |
class | const_iterator |
class | iterator |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef label | size_type |
typedef label | difference_type |
typedef Addr | addressing_type |
Public Member Functions | |
IndirectListBase ()=delete | |
IndirectListBase (const UList< T > &values, const Addr &addr) | |
label | size () const noexcept |
bool | empty () const noexcept |
const UList< T > & | values () const noexcept |
UList< T > & | values () noexcept |
const Addr & | addressing () const noexcept |
bool | uniform () const |
const T & | first () const |
T & | first () |
const T & | last () const |
T & | last () |
label | fcIndex (const label i) const |
label | rcIndex (const label i) const |
const T & | fcValue (const label i) const |
T & | fcValue (const label i) |
const T & | rcValue (const label i) const |
T & | rcValue (const label i) |
label | find (const T &val, label pos=0) const |
label | rfind (const T &val, label pos=-1) const |
bool | found (const T &val, label pos=0) const |
List< T > | operator() () const |
T & | operator[] (const label i) |
const T & | operator[] (const label i) const |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
void | operator= (const UList< T > &rhs) |
void | operator= (const IndirectListBase< T, Addr > &rhs) |
template<class AnyAddr > | |
void | operator= (const IndirectListBase< T, AnyAddr > &rhs) |
iterator | begin () |
iterator | end () |
const_iterator | cbegin () const |
const_iterator | cend () const |
const_iterator | begin () const |
const_iterator | end () const |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Public Attributes | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
Protected Member Functions | |
template<class ListType > | |
void | copyList (const ListType &rhs) |
Base for lists with indirect addressing, templated on the list contents type and the addressing type. Storage for both values and addressing is held outside of the class.
Definition at line 52 of file IndirectListBase.H.
typedef T value_type |
Definition at line 77 of file IndirectListBase.H.
Definition at line 80 of file IndirectListBase.H.
Definition at line 86 of file IndirectListBase.H.
typedef label size_type |
Definition at line 92 of file IndirectListBase.H.
typedef label difference_type |
Definition at line 95 of file IndirectListBase.H.
typedef Addr addressing_type |
Definition at line 101 of file IndirectListBase.H.
|
delete |
|
inline |
Definition at line 58 of file IndirectListBaseI.H.
|
inlineprotected |
Definition at line 25 of file IndirectListBaseI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inlinenoexcept |
Definition at line 121 of file IndirectListBase.H.
Referenced by List< vectorField >::append(), DynamicList< Foam::FixedList< scalar, 3 > >::append(), bitSet::bitSet(), UList< Foam::wordRe >::deepCopy(), List< vectorField >::operator=(), PackedList< 2 >::PackedList(), LLTMatrix< Type >::solve(), Foam::ListListOps::subSizes(), and IndirectListBase< T, Addr >::writeList().
|
inlinenoexcept |
Definition at line 127 of file IndirectListBase.H.
Definition at line 133 of file IndirectListBase.H.
Definition at line 139 of file IndirectListBase.H.
|
inlinenoexcept |
Definition at line 145 of file IndirectListBase.H.
Definition at line 71 of file IndirectListBaseI.H.
References T.
Referenced by IndirectListBase< T, Addr >::writeList().
|
inline |
Definition at line 120 of file IndirectListBaseI.H.
|
inline |
|
inline |
Definition at line 133 of file IndirectListBaseI.H.
|
inline |
|
inline |
Definition at line 106 of file IndirectListBaseI.H.
|
inline |
Definition at line 113 of file IndirectListBaseI.H.
|
inline |
Definition at line 146 of file IndirectListBaseI.H.
|
inline |
Definition at line 153 of file IndirectListBaseI.H.
|
inline |
Definition at line 160 of file IndirectListBaseI.H.
|
inline |
Definition at line 167 of file IndirectListBaseI.H.
Foam::label find | ( | const T & | val, |
label | pos = 0 |
||
) | const |
Definition at line 25 of file IndirectListBase.C.
References List_CONST_ACCESS, Foam::pos(), and T.
Foam::label rfind | ( | const T & | val, |
label | pos = -1 |
||
) | const |
Definition at line 53 of file IndirectListBase.C.
References List_CONST_ACCESS, Foam::pos(), and T.
Definition at line 96 of file IndirectListBaseI.H.
References Foam::ListOps::find(), and Foam::pos().
|
inline |
Definition at line 177 of file IndirectListBaseI.H.
|
inline |
Definition at line 194 of file IndirectListBaseI.H.
|
inline |
Definition at line 202 of file IndirectListBaseI.H.
|
inline |
Definition at line 209 of file IndirectListBaseI.H.
|
inline |
Definition at line 220 of file IndirectListBaseI.H.
References Foam::Zero.
Definition at line 232 of file IndirectListBaseI.H.
|
inline |
Definition at line 242 of file IndirectListBaseI.H.
|
inline |
Definition at line 253 of file IndirectListBaseI.H.
|
inline |
Definition at line 336 of file IndirectListBase.H.
References UList::cbegin().
Referenced by bitSet::bitSet(), HashSet< word, Hash< word > >::HashSet(), HashSet< word, Hash< word > >::insert(), bitSet::set(), HashSet< word, Hash< word > >::unset(), and bitSet::unset().
|
inline |
Definition at line 342 of file IndirectListBase.H.
References UList::cend().
Referenced by bitSet::bitSet(), HashSet< word, Hash< word > >::HashSet(), HashSet< word, Hash< word > >::insert(), bitSet::set(), HashSet< word, Hash< word > >::unset(), and bitSet::unset().
|
inline |
Definition at line 351 of file IndirectListBase.H.
References UList::cbegin().
Referenced by IndirectListBase< T, Addr >::begin().
|
inline |
Definition at line 357 of file IndirectListBase.H.
References UList::cend().
Referenced by IndirectListBase< T, Addr >::end().
|
inline |
Definition at line 363 of file IndirectListBase.H.
References IndirectListBase< T, Addr >::cbegin().
|
inline |
Definition at line 369 of file IndirectListBase.H.
References IndirectListBase< T, Addr >::cend().
Foam::Ostream & writeList | ( | Ostream & | os, |
const label | shortLen = 0 |
||
) | const |
Definition at line 31 of file IndirectListBaseIO.C.
References FUNCTION_NAME, Foam::nl, os(), IndirectListBase< T, Addr >::size(), T, and IndirectListBase< T, Addr >::uniform().
Referenced by Foam::operator<<().
const typedef T* const_pointer |
Definition at line 83 of file IndirectListBase.H.
const typedef T& const_reference |
Definition at line 89 of file IndirectListBase.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.