A 1D vector of objects of type <T> with a fixed length <N>. More...
Classes | |
struct | Hash |
struct | hasher |
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef T * | iterator |
typedef label | size_type |
typedef label | difference_type |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
FixedList ()=default | |
FixedList (const T &val) | |
FixedList (const Foam::zero) | |
FixedList (const T list[N]) | |
FixedList (const FixedList< T, N > &list) | |
FixedList (FixedList< T, N > &&list) | |
FixedList (std::initializer_list< T > list) | |
FixedList (const UList< T > &list) | |
template<unsigned AnyNum> | |
FixedList (const FixedList< T, AnyNum > &list, const FixedList< label, N > &indices) | |
FixedList (const UList< T > &list, const FixedList< label, N > &indices) | |
FixedList (const SLList< T > &list) | |
FixedList (Istream &is) | |
autoPtr< FixedList< T, N > > | clone () const |
const T * | cdata () const noexcept |
T * | data () noexcept |
const char * | cdata_bytes () const noexcept |
char * | data_bytes () noexcept |
T & | first () noexcept |
const T & | first () const noexcept |
T & | last () noexcept |
const T & | last () const noexcept |
label | fcIndex (const label i) const |
const T & | fcValue (const label i) const |
T & | fcValue (const label i) |
label | rcIndex (const label i) const |
const T & | rcValue (const label i) const |
T & | rcValue (const label i) |
void | checkStart (const label start) const |
void | checkSize (const label size) const |
void | checkIndex (const label i) const |
bool | uniform () const |
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 |
void | resize (const label n) |
void | resize_nocopy (const label n) |
void | setSize (const label n) |
void | fill (const T &val) |
void | fill (const Foam::zero) |
void | moveFirst (const label i) |
void | moveLast (const label i) |
void | swapFirst (const label i) |
void | swapLast (const label i) |
void | transfer (FixedList< T, N > &list) |
T & | operator[] (const label i) |
const T & | operator[] (const label i) const |
void | operator= (const T list[N]) |
void | operator= (const UList< T > &list) |
void | operator= (const SLList< T > &list) |
void | operator= (std::initializer_list< T > list) |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
void | operator= (const FixedList< T, N > &list) |
void | operator= (FixedList< T, N > &&list) |
iterator | begin () noexcept |
iterator | end () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
void | swap (FixedList< T, N > &other) |
bool | operator== (const FixedList< T, N > &list) const |
bool | operator!= (const FixedList< T, N > &list) const |
bool | operator< (const FixedList< T, N > &list) const |
bool | operator> (const FixedList< T, N > &list) const |
bool | operator<= (const FixedList< T, N > &list) const |
bool | operator>= (const FixedList< T, N > &list) const |
Istream & | readList (Istream &is) |
void | writeEntry (const word &keyword, Ostream &os) const |
Ostream & | writeList (Ostream &os, const label shortLen=0) const |
Static Public Member Functions | |
static const FixedList< T, N > & | null () |
static std::streamsize | size_bytes () noexcept |
static std::streamsize | byteSize () |
static constexpr bool | empty () noexcept |
static constexpr label | size () noexcept |
static constexpr unsigned | max_size () noexcept |
Public Attributes | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
const typedef T * | const_iterator |
Protected Member Functions | |
void | writeEntry (Ostream &os) const |
Friends | |
Istream & | operator>> (Istream &is, FixedList< T, N > &list) |
A 1D vector of objects of type <T> with a fixed length <N>.
Definition at line 100 of file HashTable.H.
typedef T value_type |
Definition at line 103 of file FixedList.H.
Definition at line 106 of file FixedList.H.
Definition at line 112 of file FixedList.H.
Definition at line 118 of file FixedList.H.
typedef label size_type |
Definition at line 124 of file FixedList.H.
typedef label difference_type |
Definition at line 127 of file FixedList.H.
typedef std::reverse_iterator<iterator> reverse_iterator |
Definition at line 130 of file FixedList.H.
typedef std::reverse_iterator<const_iterator> const_reverse_iterator |
Definition at line 133 of file FixedList.H.
|
default |
Definition at line 38 of file FixedListI.H.
|
inlineexplicit |
Definition at line 45 of file FixedListI.H.
Definition at line 52 of file FixedListI.H.
Definition at line 82 of file FixedListI.H.
Definition at line 96 of file FixedListI.H.
Definition at line 110 of file FixedListI.H.
Definition at line 124 of file FixedListI.H.
Definition at line 137 of file FixedListI.H.
Definition at line 44 of file FixedListIO.C.
|
protected |
Definition at line 30 of file FixedListIO.C.
|
inlinestatic |
Definition at line 29 of file FixedListI.H.
|
inline |
Definition at line 152 of file FixedListI.H.
|
inlinenoexcept |
Definition at line 162 of file FixedListI.H.
Definition at line 170 of file FixedListI.H.
|
inlinenoexcept |
Definition at line 178 of file FixedListI.H.
Referenced by FixedList< Type, 3 >::writeList().
|
inlinenoexcept |
Definition at line 186 of file FixedListI.H.
Referenced by FixedList< Type, 3 >::readList().
|
inlinenoexcept |
Referenced by LangmuirHinshelwoodReactionRate::LangmuirHinshelwoodReactionRate(), parProfiling::report(), and LangmuirHinshelwoodReactionRate::write().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinestaticnoexcept |
Definition at line 193 of file FixedListI.H.
Referenced by FixedList< Type, 3 >::readList(), and FixedList< Type, 3 >::writeList().
|
static |
Definition at line 28 of file FixedList.C.
|
inline |
Definition at line 228 of file FixedListI.H.
Referenced by wallBoundedParticle::isTriAlongTrack(), and wallBoundedParticle::trackFaceTri().
|
inline |
Definition at line 235 of file FixedListI.H.
|
inline |
Definition at line 242 of file FixedListI.H.
|
inline |
Definition at line 249 of file FixedListI.H.
|
inline |
Definition at line 256 of file FixedListI.H.
|
inline |
Definition at line 263 of file FixedListI.H.
|
inline |
Definition at line 270 of file FixedListI.H.
|
inline |
Definition at line 283 of file FixedListI.H.
Referenced by FixedList< Type, 3 >::readList().
|
inline |
Definition at line 295 of file FixedListI.H.
Definition at line 307 of file FixedListI.H.
Foam::label find | ( | const T & | val, |
label | pos = 0 |
||
) | const |
Definition at line 43 of file FixedList.C.
Referenced by triFace::which().
Foam::label rfind | ( | const T & | val, |
label | pos = -1 |
||
) | const |
Definition at line 65 of file FixedList.C.
Definition at line 325 of file FixedListI.H.
Referenced by wallBoundedParticle::isTriAlongTrack().
|
inline |
Definition at line 335 of file FixedListI.H.
Referenced by FixedList< Type, 3 >::setSize().
|
inline |
Definition at line 344 of file FixedListI.H.
|
inline |
Definition at line 300 of file FixedList.H.
Referenced by blockDescriptor::facePoints(), refinementHistory::refinementHistory(), refinementSurfaces::refinementSurfaces(), and shellSurfaces::shellSurfaces().
|
inline |
Definition at line 353 of file FixedListI.H.
|
inline |
Definition at line 363 of file FixedListI.H.
void moveFirst | ( | const label | i | ) |
Definition at line 90 of file FixedList.C.
void moveLast | ( | const label | i | ) |
Definition at line 102 of file FixedList.C.
void swapFirst | ( | const label | i | ) |
Definition at line 114 of file FixedList.C.
void swapLast | ( | const label | i | ) |
Definition at line 126 of file FixedList.C.
Definition at line 388 of file FixedListI.H.
|
inline |
Definition at line 405 of file FixedListI.H.
|
inline |
Definition at line 415 of file FixedListI.H.
|
inline |
Definition at line 425 of file FixedListI.H.
Referenced by boolVector::operator=().
Definition at line 434 of file FixedListI.H.
Definition at line 445 of file FixedListI.H.
|
inline |
Definition at line 458 of file FixedListI.H.
|
inline |
Definition at line 471 of file FixedListI.H.
|
inline |
Definition at line 478 of file FixedListI.H.
Definition at line 485 of file FixedListI.H.
Definition at line 499 of file FixedListI.H.
|
inlinenoexcept |
Referenced by bitSet::bitSet(), edge::erase(), HashSet< word, Hash< word > >::HashSet(), HashSet< word, Hash< word > >::insert(), edge::insert(), Foam::operator*(), Foam::operator/(), HashSet< word, Hash< word > >::operator=(), bitSet::set(), bitSet::unset(), and HashSet< word, Hash< word > >::unset().
|
inlinenoexcept |
Referenced by bitSet::bitSet(), edge::erase(), HashSet< word, Hash< word > >::HashSet(), HashSet< word, Hash< word > >::insert(), edge::insert(), HashSet< word, Hash< word > >::operator=(), bitSet::set(), bitSet::unset(), and HashSet< word, Hash< word > >::unset().
|
inlinenoexcept |
Definition at line 533 of file FixedListI.H.
Referenced by HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::erase().
|
inlinenoexcept |
Definition at line 557 of file FixedListI.H.
Referenced by HashTable< Foam::autoPtr< Foam::interfaceCompositionModel > >::erase().
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 565 of file FixedListI.H.
|
inline |
Definition at line 589 of file FixedListI.H.
|
inline |
Definition at line 581 of file FixedListI.H.
|
inline |
Definition at line 605 of file FixedListI.H.
|
inline |
Definition at line 573 of file FixedListI.H.
|
inline |
Definition at line 597 of file FixedListI.H.
|
inlinestaticconstexprnoexcept |
Definition at line 409 of file FixedList.H.
|
inlinestaticconstexprnoexcept |
Definition at line 412 of file FixedList.H.
Referenced by DynamicList< Foam::FixedList< scalar, 3 > >::append(), isoSurfacePoint::generateFaceTriPoints(), indexedCell::globallyOrderedCellVertices(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), HashSet< word, Hash< word > >::operator=(), shellSurfaces::shellSurfaces(), pointConstraint::unconstrainedDirections(), and indexedCell::vertexGlobalIndices().
|
inlinestaticconstexprnoexcept |
Definition at line 415 of file FixedList.H.
Definition at line 373 of file FixedListI.H.
Foam::Istream & readList | ( | Istream & | is | ) |
Definition at line 141 of file FixedListIO.C.
Definition at line 54 of file FixedListIO.C.
Foam::Ostream & writeList | ( | Ostream & | os, |
const label | shortLen = 0 |
||
) | const |
Definition at line 70 of file FixedListIO.C.
Definition at line 549 of file FixedList.H.
const typedef T* const_pointer |
Definition at line 109 of file FixedList.H.
const typedef T& const_reference |
Definition at line 115 of file FixedList.H.
const typedef T* const_iterator |
Definition at line 121 of file FixedList.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.