MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Dinfo.h>
Public Member Functions | |
char * | allocData (unsigned int numData) const |
void | assignData (char *data, unsigned int copyEntries, const char *orig, unsigned int origEntries) const |
char * | copyData (const char *orig, unsigned int origEntries, unsigned int copyEntries, unsigned int startEntry) const |
void | destroyData (char *d) const |
Dinfo () | |
Dinfo (bool isOneZombie) | |
bool | isA (const DinfoBase *other) const |
unsigned int | size () const |
unsigned int | sizeIncrement () const |
![]() | |
DinfoBase () | |
DinfoBase (bool isOneZombie) | |
bool | isOneZombie () const |
virtual | ~DinfoBase () |
Private Attributes | |
unsigned int | sizeIncrement_ |
|
inlinevirtual |
|
inlinevirtual |
Assigns data contents from 'orig' over to 'copy'. Tiles the origEntries onto the copyEntries. So if there are fewer origEntries, the orig data contents are repeated till the copy is full.
Implements DinfoBase.
Definition at line 106 of file Dinfo.h.
References DinfoBase::isOneZombie().
|
inlinevirtual |
Return a newly allocated copy of the original data, repeated copyEntries times. Orig data untouched. Analogous to copying a vector into a bigger one. Repeat the original data as many times as possible.
Implements DinfoBase.
Definition at line 78 of file Dinfo.h.
References DinfoBase::isOneZombie().
|
inlinevirtual |
Implements DinfoBase.
|
inlinevirtual |
Implements DinfoBase.
Reimplemented in ZeroSizeDinfo< D >.
|
inlinevirtual |
This little hack is used for lookups of a data entry in an array. Normally sizeIncrement is identical to size. However, if it is a OneZombie then we always need to return the original pointer, so here sizeIncrement becomes zero.
Implements DinfoBase.
Reimplemented in ZeroSizeDinfo< D >.
Definition at line 151 of file Dinfo.h.
References Dinfo< D >::sizeIncrement_.
|
private |
Definition at line 174 of file Dinfo.h.
Referenced by Dinfo< D >::sizeIncrement().