![]() |
Peano
|
#include <vec.h>
Public Types | |
using | value_type = ITEM |
Public Member Functions | |
Vec (unsigned int capacity=0, ALLOCATOR allocator=ALLOCATOR()) | |
void | reserve (unsigned int newCapacity) |
void | prefetch () const |
void | push_back (ITEM &item) |
ITEM & | operator[] (int idx) const |
void | clear () |
unsigned int | size () const |
ITEM * | data () const |
Vec (const Vec &)=delete | |
Vec & | operator= (Vec &&other) noexcept |
~Vec () | |
ITEM * | begin () |
ITEM * | end () |
const ITEM * | begin () const |
const ITEM * | end () const |
Private Attributes | |
ITEM * | dataPtr = nullptr |
ALLOCATOR | allocator |
unsigned int | capacity = 0 |
unsigned int | freeIdx = 0 |
using Vec< ITEM, ALLOCATOR >::value_type = ITEM |
|
explicit |
Definition at line 41 of file vec.h.
References Vec< ITEM, ALLOCATOR >::capacity.
|
delete |
ITEM * Vec< ITEM, ALLOCATOR >::begin | ( | ) |
Definition at line 107 of file vec.h.
References Vec< ITEM, ALLOCATOR >::dataPtr.
const ITEM * Vec< ITEM, ALLOCATOR >::begin | ( | ) | const |
Definition at line 115 of file vec.h.
References Vec< ITEM, ALLOCATOR >::dataPtr.
Definition at line 76 of file vec.h.
Referenced by peano4.output.Makefile.Makefile::__init__().
ITEM * Vec< ITEM, ALLOCATOR >::data | ( | ) | const |
Definition at line 84 of file vec.h.
References Vec< ITEM, ALLOCATOR >::dataPtr.
Referenced by peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__generate_dastgen_input_file(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__get_file_name(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::__get_full_qualified_file_name(), swift2.particle.Particle.Particle::__init__(), swift2.particle.Particle.Particle::_add_dependency_checks(), swift2.particle.Particle.Particle::_dependency_checks_modify_steps(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_boolean_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_boolean_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_double_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_double_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_enum_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_integer_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_integer_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_peano_double_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_peano_integer_array_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_string_attributes(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::_generate_user_defined_attributes(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray::_get_dictionary_for_output(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::construct_output(), peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::construct_output(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray::construct_output(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::construct_output(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::construct_output(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::get_header_file_include(), peano4.datamodel.DynamicArrayOverPrimitivesToStdVector.DynamicArrayOverPrimitivesToStdVector::get_header_file_include(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray::get_header_file_include(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::get_header_file_include(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::get_header_file_include(), peano4.datamodel.DaStGenToLegacyTool.DaStGenToLegacyTool::get_stack_container(), peano4.datamodel.PatchToDoubleArray.PatchToDoubleArray::get_stack_container(), peano4.datamodel.PatchToDoubleArrayOnHeap.PatchToDoubleArrayOnHeap::get_stack_container(), peano4.datamodel.PatchToDoubleArrayWithSmartPointer.PatchToDoubleArrayWithSmartPointer::get_stack_container(), Vec< ITEM, ALLOCATOR >::prefetch(), swift2.particle.Particle.Particle::readme_descriptor(), swift2.particle.SPHLeapfrogFixedSearchRadius.SPHLeapfrogFixedSearchRadius::set_parameters(), swift2.particle.SPHParticle.SPHParticle::set_parameters(), and swift2.particle.tests.testLeapfrogFixedTimeStepSize.testLeapfrogFixedTimeStepSize::set_parameters().
ITEM * Vec< ITEM, ALLOCATOR >::end | ( | ) |
Definition at line 111 of file vec.h.
References Vec< ITEM, ALLOCATOR >::freeIdx.
Referenced by kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), and kernel_impl.Enumerator::upper().
const ITEM * Vec< ITEM, ALLOCATOR >::end | ( | ) | const |
Definition at line 119 of file vec.h.
References Vec< ITEM, ALLOCATOR >::freeIdx.
Referenced by kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), and kernel_impl.Enumerator::upper().
|
noexcept |
Definition at line 90 of file vec.h.
References Vec< ITEM, ALLOCATOR >::dataPtr.
Definition at line 52 of file vec.h.
References Vec< ITEM, ALLOCATOR >::data(), and Vec< ITEM, ALLOCATOR >::size().
Definition at line 58 of file vec.h.
References Vec< ITEM, ALLOCATOR >::freeIdx.
Definition at line 80 of file vec.h.
References Vec< ITEM, ALLOCATOR >::freeIdx.
Referenced by peano4.visualisation.input.Patch.Patch::__repr__(), kernel_impl.Enumerator::fetch(), kernel_impl.Enumerator::lower(), Vec< ITEM, ALLOCATOR >::prefetch(), and kernel_impl.Enumerator::upper().
|
private |
|
private |
Definition at line 35 of file vec.h.
Referenced by Vec< ITEM, ALLOCATOR >::Vec().
|
private |
Definition at line 31 of file vec.h.
Referenced by Vec< ITEM, ALLOCATOR >::begin(), Vec< ITEM, ALLOCATOR >::begin(), Vec< ITEM, ALLOCATOR >::data(), and Vec< ITEM, ALLOCATOR >::operator=().
|
private |
Definition at line 36 of file vec.h.
Referenced by Vec< ITEM, ALLOCATOR >::end(), Vec< ITEM, ALLOCATOR >::end(), Vec< ITEM, ALLOCATOR >::push_back(), and Vec< ITEM, ALLOCATOR >::size().