Nektar++
|
#include <SharedArray.hpp>
Public Types | |
typedef Array< OneD, const DataType > | BaseType |
typedef BaseType::iterator | iterator |
typedef BaseType::reference | reference |
typedef BaseType::size_type | size_type |
typedef BaseType::element | element |
![]() | |
typedef DataType * | ArrayType |
typedef const DataType & | const_reference |
typedef DataType & | reference |
typedef const DataType * | const_iterator |
typedef DataType * | iterator |
typedef DataType | element |
typedef unsigned int | size_type |
Public Member Functions | |
Array () | |
Array (unsigned int dim1Size) | |
Array (unsigned int dim1Size, const DataType &initValue) | |
Array (unsigned int dim1Size, const DataType *data) | |
Array (unsigned int dim1Size, const Array< OneD, DataType > &rhs) | |
Array (unsigned int dim1Size, const Array< OneD, const DataType > &rhs) | |
Array (const Array< OneD, DataType > &rhs) | |
Array (const Array< OneD, const DataType > &rhs) | |
Array< OneD, DataType > & | operator= (const Array< OneD, DataType > &rhs) |
iterator | begin () |
iterator | end () |
reference | operator[] (unsigned int i) |
element * | get () |
element * | data () |
![]() | |
Array () | |
Creates an empty array. More... | |
Array (unsigned int dim1Size) | |
Creates an array of size dim1Size. More... | |
Array (unsigned int dim1Size, const DataType &initValue) | |
Creates a 1D array with each element initialized to an initial value. More... | |
Array (unsigned int dim1Size, const DataType *data) | |
Creates a 1D array a copies data into it. More... | |
Array (unsigned int dim1Size, const Array< OneD, const DataType > &rhs) | |
Creates a 1D array that references rhs. More... | |
Array (const Array< OneD, const DataType > &rhs) | |
Creates a reference to rhs. More... | |
~Array () | |
Array< OneD, const DataType > & | operator= (const Array< OneD, const DataType > &rhs) |
Creates a reference to rhs. More... | |
const_iterator | begin () const |
const_iterator | end () const |
const_reference | operator[] (unsigned int i) const |
const element * | get () const |
Returns a c-style pointer to the underlying array. More... | |
const element * | data () const |
Returns a c-style pointer to the underlying array. More... | |
size_type | num_dimensions () const |
Returns 1. More... | |
size_type | num_elements () const |
Returns the array's size. More... | |
size_type | capacity () const |
unsigned int | GetOffset () const |
Returns the array's offset. More... | |
bool | Overlaps (const Array< OneD, const DataType > &rhs) const |
Returns true is this array and rhs overlap. More... | |
Static Public Member Functions | |
static Array< OneD, DataType > | CreateWithOffset (const Array< OneD, DataType > &rhs, unsigned int offset) |
Protected Member Functions | |
Array (const Array< OneD, const DataType > &rhs, AllowWrappingOfConstArrays a) | |
void | ChangeSize (unsigned int newSize) |
Friends | |
template<typename T1 > | |
class | NekVector |
template<typename T1 , typename T3 > | |
class | NekMatrix |
class | LinearSystem |
Additional Inherited Members | |
![]() | |
unsigned int | m_size |
unsigned int | m_capacity |
DataType * | m_data |
unsigned int * | m_count |
unsigned int | m_offset |
1D Array
pageNekArrays
Misc notes.
Throught the 1D Array class you will see things like "using BaseType::begin" and "using BaseType::end". This is necessary to bring the methods from the ConstArray into scope in Array class. Typically this is not necessary, but since we have method names which match those in the base class, the base class names are hidden. Therefore, we have to explicitly bring them into scope to use them.
Definition at line 477 of file SharedArray.hpp.
typedef Array<OneD, const DataType> Nektar::Array< OneD, DataType >::BaseType |
Definition at line 480 of file SharedArray.hpp.
typedef BaseType::element Nektar::Array< OneD, DataType >::element |
Definition at line 484 of file SharedArray.hpp.
typedef BaseType::iterator Nektar::Array< OneD, DataType >::iterator |
Definition at line 481 of file SharedArray.hpp.
typedef BaseType::reference Nektar::Array< OneD, DataType >::reference |
Definition at line 482 of file SharedArray.hpp.
typedef BaseType::size_type Nektar::Array< OneD, DataType >::size_type |
Definition at line 483 of file SharedArray.hpp.
|
inline |
Definition at line 487 of file SharedArray.hpp.
|
inlineexplicit |
Definition at line 492 of file SharedArray.hpp.
|
inline |
Definition at line 497 of file SharedArray.hpp.
|
inline |
Definition at line 502 of file SharedArray.hpp.
|
inline |
Definition at line 507 of file SharedArray.hpp.
|
inline |
Definition at line 512 of file SharedArray.hpp.
|
inline |
Definition at line 517 of file SharedArray.hpp.
|
inline |
Definition at line 522 of file SharedArray.hpp.
|
inlineprotected |
Definition at line 572 of file SharedArray.hpp.
|
inline |
Definition at line 542 of file SharedArray.hpp.
Referenced by Nektar::NekVector< DataType >::NekVector().
|
inlineprotected |
Definition at line 577 of file SharedArray.hpp.
References ASSERTL1.
|
inlinestatic |
Definition at line 533 of file SharedArray.hpp.
References Nektar::Array< OneD, const DataType >::m_offset, and Nektar::Array< OneD, const DataType >::m_size.
|
inline |
Definition at line 561 of file SharedArray.hpp.
Referenced by Nektar::LibUtilities::GaussPoints::CalculateInterpMatrix(), Nektar::LibUtilities::GaussPoints::CalculatePoints(), Nektar::CopyArray(), Nektar::CopyArrayN(), Nektar::NekMatrix< DataType, StandardMatrixTag >::operator=(), and Nektar::NekMatrix< DataType, StandardMatrixTag >::ResizeDataArrayIfNeeded().
|
inline |
Definition at line 545 of file SharedArray.hpp.
|
inline |
Definition at line 558 of file SharedArray.hpp.
Referenced by Nektar::FullBlockMatrixMultiply(), Nektar::FullMatrixFuncs::Invert(), and Nektar::NekVector< DataType >::NekVector().
|
inline |
Definition at line 527 of file SharedArray.hpp.
|
inline |
Definition at line 548 of file SharedArray.hpp.
References ASSERTL1.
|
friend |
Definition at line 569 of file SharedArray.hpp.
Definition at line 567 of file SharedArray.hpp.
Definition at line 564 of file SharedArray.hpp.