|
LRAUV
revA
|
Simple class providing a flexible size array of pointers. More...
#include <DataReader.h>


Public Member Functions | |
| FlexArray (const bool deleteOnCleanup, const unsigned int initialCapacity=32, const unsigned int maxCapacity=16384) | |
| ~FlexArray () | |
| void | freeItem (void *item) |
| void | set (const unsigned int index, const T &item) |
| const T & | get (int index=-1) const |
| T & | operator[] (const unsigned int index) |
| int | find (T item) |
| void | insert (const unsigned int index, T item) |
| void | push (T item) |
| T | peek (int index=-1) |
| T | pop (int index=-1) |
| T | pop (T item) |
| void | setArraySize (const unsigned int newSize) |
| T * | getArray () |
| void | setDoArrayDelete (bool doArrayDelete) |
Public Member Functions inherited from FlexArrayBase | |
| FlexArrayBase (const bool deleteOnCleanup, const unsigned int initialCapacity=32, const unsigned int maxCapacity=16384) | |
| virtual | ~FlexArrayBase () |
| void | clear () |
| int | getMinIndex () const |
| int | getMaxIndex () const |
| bool | isEmpty () const |
| unsigned int | size () const |
| void | set (const unsigned int index, const void *item) |
| int | find (void *item) const |
| void | insert (const unsigned int index, void *item) |
| void | push (void *item) |
| const void * | peek (int index=-1) |
| const void * | pop (int index=-1) |
Protected Attributes | |
| T | nullItem_ |
| T * | tArray_ |
| bool | doArrayDelete_ |
Protected Attributes inherited from FlexArrayBase | |
| const unsigned int | initialCapacity_ |
| unsigned int | size_ |
| const bool | deleteOnCleanup_ |
| const unsigned int | maxCapacity_ |
| int | minIndex_ |
| int | maxIndex_ |
| const void ** | array_ |
Private Member Functions | |
| FlexArray (const FlexArray< T > &old) | |
Additional Inherited Members | |
Protected Member Functions inherited from FlexArrayBase | |
| int | getIndex (int index=-1) const |
| int | resolveIndex (const unsigned int index) |
| void | setArraySizeBase (const unsigned int newSize) |
Simple class providing a flexible size array of pointers.
If you exceed the array limits, it doubles itself in size. It can act as an array, a list, or a stack
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from FlexArrayBase.
|
inline |
Referenced by ScheduledItem::AddNext(), ConfigDataElement::ApplyConfigValues(), ScheduledItem::Clear(), CommandLine::commandHelp(), CommandLine::completeArg(), ParsedCommand::completeCommand(), EnvSimulator::configureSensors(), contains_chars(), DefinedBehavior::DefinedBehavior(), Slate::DeRegisterElementURI(), ScheduledItem::DoScheduled(), LuaAPI::Exec(), HDF5HasAttributes::finalize(), ComponentRegistry::Find(), ComponentRegistry::FindHandler(), DecimationLogManager::forceWrite(), HFRadarModelPoint::getAdjoining(), CommandSyntax::getArg(), Aggregate::getChild(), ConfigDataElement::GetConfigDataElement(), NavChartDb::getCoverage(), Slate::GetDataAccess(), Slate::GetElementURI(), DecimationLogManager::getFileWriter(), ComponentRegistry::GetIndexed(), LuaNode::getIndexedNode(), CommandLine::getLines(), Slate::GetName(), CommandSyntax::getRequiredArgSize(), Command::getSyntax(), HDF5Attribute::HDF5Attribute(), CommandSyntax::help(), Command::help(), DefinedBehavior::initialize(), ReadDataComponent::initializeReaders(), ComponentRegistry::Insert(), is_child(), DataElement::isOwnersActive(), DataElement::isOwnersFailed(), ReadDataComponent::isSatisfied(), DecimationLogManager::lockWrites(), FileLogReader::matchAndOpen(), ParsedCommand::matchCommand(), Method::Method(), Slate::RegisterCodedName(), Slate::RegisterDataAccess(), Slate::RegisterElementURI(), ComponentRegistry::Remove(), ReadDataComponent::requestData(), DecimationLogManager::resetDirectoryEntries(), DecimationLogManager::resetFileBases(), SendDataComponent::run(), HFRadarModelPoint::run(), Aggregate::run(), Unserialize::Run(), EncReader::scan(), ComponentRegistry::ShutdownThreads(), DecimationLogManager::splits(), ComponentRegistry::StartThreads(), FastMap_Test::testPutGetRandomDumpDuplicates(), Slate::Uninitialize(), DecimationLogManager::unlockWrites(), Slate::WriteDataAccessEntry(), Slate::WriteDirectory(), Slate::WriteElementURIEntry(), HDF5HasAttributes::writeHeader(), Slate::WriteNameEntry(), and DecimationLogManager::writeSyslog().
|
inline |
Referenced by Unserialize::Run().
|
inline |
|
inline |
|
inline |
Referenced by Command::addArg(), and EncReader::scan().
|
inline |
Referenced by ControlThread::addComponentsFromQueue(), ComponentRegistry::DeleteAll(), ScheduledItem::DoScheduled(), CommandLine::execLine(), FastMap< const Timestamp, ScheduledItem * >::getIndexedEntry(), Supervisor::GetQueuedSBD(), NAL9602::needGSV(), NAL9602::parseGSV(), FlexArray< NavChartDb::EncInfo * >::pop(), EncReader::popCoverage(), ScheduledItem::Remove(), ComponentRegistry::Remove(), ControlThread::removeComponentsFromQueue(), HFRadarModelPoint::run(), Supervisor::uninitialize(), Module::unregisterComponent(), Component::unregisterReader(), DataElement::unregisterReader(), Component::unregisterWriter(), DataElement::unregisterWriter(), TableLogWriter::writeDataEntryRow(), Component::~Component(), ConfigDataElement::~ConfigDataElement(), Module::~Module(), and PCaller::~PCaller().
|
inline |
|
inline |
Referenced by CommandSyntax::addArg(), HDF5HasAttributes::addAttribute(), CommandLine::addCommand(), ControlThread::addComponent(), HDF5Group::addDataset(), NetCdfWriter::addDim(), UniversalDataElement::addElement(), HDF5Group::addGroup(), MethodInfo::addInput(), ScheduledItem::AddNext(), MethodInfo::addOutput(), Method::addOutput(), HDF5Group::addScalarDataset(), NetCdfWriter::addStaticVar(), Command::addSyntax(), NetCdfWriter::addVar(), Slate::ClearDirectory(), Slate::CodifyElementURI(), ConfigDataElement::ConfigDataElement(), Slate::Construct(), DefinedBehavior::DefinedBehavior(), CommandLine::execLine(), HFRadarModelPoint::getAdjoining(), Slate::GetCodedName(), Slate::GetDataAccess(), ReadDataComponent::initializeReaders(), ComponentRegistry::Insert(), SendDataComponent::Instance(), ReadDataComponent::Instance(), DefineBehavior::Instance(), ModuleLoader::loadModule(), Method::Method(), NAL9602::parseGSV(), PCaller::PCaller(), Aggregate::push(), Supervisor::QueueSBD(), DirectoryEntry::Read(), Aggregate::redefineArg(), Slate::RegisterCodedName(), Module::registerComponent(), Slate::RegisterDataAccess(), Slate::RegisterElementURI(), Component::registerReader(), DataElement::registerReader(), Component::registerWriter(), DataElement::registerWriter(), ControlThread::removeComponent(), Unserialize::Run(), EncReader::scan(), FlexArray_Test::testPush(), FastMap_Test::testPutGetRandomDumpDuplicates(), HDF5Group::writeHeader(), and TableLogWriter::writeInterpolated().
|
inline |
Referenced by ScheduledItem::AddNext(), Slate::DeRegisterElementURI(), NavChartDb::getCoverage(), LuaNode::getIndexedNode(), NetCdfReader::initialize(), DefinedBehavior::initialize(), HFRadarModelPoint::initNodes(), Slate::RegisterCodedName(), Slate::RegisterDataAccess(), Slate::RegisterElementURI(), Slate::WriteDataAccessEntry(), Slate::WriteElementURIEntry(), and Slate::WriteNameEntry().
|
inlinevirtual |
Reimplemented from FlexArrayBase.
Referenced by FlexArray< NavChartDb::EncInfo * >::FlexArray().
|
inline |
Referenced by Supervisor::QueueSBD(), and Unserialize::Run().
|
protected |
|
protected |
|
protected |