Convenience template for creating shared memory variables of one of the supported numeric types. At the cost of additional storage, these standalone variables can operate when the variable has not been registered and allocated with a SharedMemoryVariableManager.
More...
|
| SMV_StandaloneNumeric (const char *varName, SharedMemoryVariableManager *mgr=&DEFAULT_sharedMemoryVariableManager, NUMTYPE initVal=0) NONNULL_CLASS_PARAMETERS(2) |
|
| SMV_StandaloneNumeric (const char *varName, SharedMemoryVariableNode *parentNode, NUMTYPE initVal=0) |
|
| operator NUMTYPE () const OME_ALWAYS_INLINE |
| Cast operator for a numeric shared memory variable. More...
|
|
NUMTYPE * | getAddress () const OME_ALWAYS_INLINE |
| Get address of shared memory variable. More...
|
|
| operator const NUMTYPE * () const OME_ALWAYS_INLINE |
| Cast operator for a pointer to a numeric shared memory variable. More...
|
|
NUMTYPE & | operator= (const NUMTYPE arg) OME_ALWAYS_INLINE |
| Assignment operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator+= (const NUMTYPE arg) OME_ALWAYS_INLINE |
| Addition operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator-= (const NUMTYPE arg) OME_ALWAYS_INLINE |
| Subtraction operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator*= (const NUMTYPE arg) OME_ALWAYS_INLINE |
| Multiplication operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator/= (const NUMTYPE arg) OME_ALWAYS_INLINE |
| Division operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator++ () OME_ALWAYS_INLINE |
| Prefix increment operator for a numeric shared memory variable. More...
|
|
NUMTYPE & | operator-- () OME_ALWAYS_INLINE |
| Prefix decrement operator for a numeric shared memory variable. More...
|
|
NUMTYPE | operator++ (int) OME_ALWAYS_INLINE |
| Postfix increment operator for a numeric shared memory variable. More...
|
|
NUMTYPE | operator-- (int) OME_ALWAYS_INLINE |
| Postfix decrement operator for a numeric shared memory variable. More...
|
|
virtual void | noteNowRegistered (SharedMemoryVariable_Record *newArea) override |
| Extension mechanism to allow derived classes to be informed when they are about to be assigned storage; called at most once per lifetime of object. More...
|
|
SharedMemoryVariableNode * | getParentNode () const |
|
SharedMemoryVariableManager * | getVariableManager () const |
|
unsigned int | getType () const OME_ALWAYS_INLINE |
| Return type of variable, see SharedMemoryVariableType. More...
|
|
unsigned int | getMinLength () const OME_ALWAYS_INLINE |
| Return minimum number of bytes required for variable record. More...
|
|
const char * | getName (uint_fast32_t *retNameLen=nullptr) const OME_ALWAYS_INLINE |
| Get variable name. More...
|
|
int | setName (const char *newName) |
| Set new variable name. More...
|
|
uint_fast32_t | getFullName (char *bfr, uint_fast32_t bfrLen) const |
| Get full path name of variable. More...
|
|
| SharedMemoryVariable (class SharedMemoryVariableManager *mgr, const char *varName, int varType, size_t length) |
| Construct an shared memory variable and attach to the indicated manager for the collection of variables. More...
|
|
| SharedMemoryVariable (class SharedMemoryVariableNode *parentNode, const char *varName, int varType, size_t length) |
|
virtual | ~SharedMemoryVariable () |
|
void | makeAliasFor (SharedMemoryVariable *v) |
|
template<typename NUMTYPE>
class SMV_StandaloneNumeric< NUMTYPE >
Convenience template for creating shared memory variables of one of the supported numeric types. At the cost of additional storage, these standalone variables can operate when the variable has not been registered and allocated with a SharedMemoryVariableManager.