Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ControlBlock_inl.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // ControlBlock_inl.h 00005 // 00006 // Version 1.0 00007 // Date 11.10.03 (Version 1.0) 00008 // Author A. Pasetti (P&P Software), R. Totaro 00009 // 00010 // Change Record: 00011 00012 #ifndef ControlBlock_INL 00013 #define ControlBlock_INL 00014 00015 #include "../GeneralInclude/CompilerSwitches.h" 00016 #include "../GeneralInclude/DebugSupport.h" 00017 00018 inline TD_Float ControlBlock::getState(unsigned int i) const { 00019 assert(x!=pNULL && (int)i<nStates); 00020 00021 return x[i]; 00022 } 00023 00024 inline TD_Float ControlBlock::getParameter(unsigned int i) const { 00025 assert(p!=pNULL && (int)i<nParameters); 00026 00027 return p[i]; 00028 } 00029 00030 inline int ControlBlock::getNumberOfOutputs(void) const { 00031 assert(nOutputs>-1); 00032 00033 return nOutputs; 00034 } 00035 00036 inline int ControlBlock::getNumberOfInputs(void) const { 00037 assert(nInputs>-1); 00038 00039 return nInputs; 00040 } 00041 00042 inline int ControlBlock::getNumberOfStates(void) const { 00043 assert(nStates>-1); 00044 00045 return nStates; 00046 } 00047 00048 inline int ControlBlock::getNumberOfParameters(void) const { 00049 assert(nParameters>-1); 00050 00051 return nParameters; 00052 } 00053 00054 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved