File: 5031-test.cpp

package info (click to toggle)
kwstyle 1.0.1%2Bgit3224cf2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 45,404 kB
  • ctags: 145,645
  • sloc: cpp: 423,059; ansic: 9,347; xml: 588; sh: 102; php: 87; perl: 35; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "Test.h"

template <class T>
Test<T>::Test
( 
T &                 iObject               ,
void (T::*          iAlloc)( HCBuffer & ) ,
void (T::*          iFree )( HCBuffer & ) ,
size_t              iSize                 , test,
int                 iIsLocked             , 
int                 iSeverity             , 
int                 iIsFIFO               ,
TestRestoreIF * iMemoryRestore
)
: Test( kTypeAlienMemory , iIsLocked , iSeverity , iIsFIFO , 0 , iMemoryRestore )
, mObject ( iObject                                                                 )
, mAlloc  ( iAlloc                                                                  )
, mFree   ( iFree                                                                   )
, mIsOwner( 1                                                                       )
{
 // optional allocate buffer
 if( iSize )
   Alloc( iSize );
}