STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide Class Reference

Public Member Functions

 _Internal_loop_guide (size_type _NTrials, void *_Ptr)
 
void _Init ()
 
void _Init (const void *_Src)
 
void _Copy (const void *_Src)
 
void _Assign (const void *_Src)
 
template<class _It >
void _Iterate (_It &_Src)
 
 ~_Internal_loop_guide ()
 

Public Attributes

const pointer _My_array
 
const size_type _N
 
size_type _I
 

Private Member Functions

void operator= (const _Internal_loop_guide &)
 

Constructor & Destructor Documentation

template<typename _Ty , class _Ax >
Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Internal_loop_guide ( size_type  _NTrials,
void _Ptr 
)
inline
1480  : _My_array(static_cast<pointer>(_Ptr)), _N(_NTrials), _I(0)
1481  {
1482  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::~_Internal_loop_guide ( )
inline
1510  {
1511  if(_I < _N) // if exception raised, do zeroing on the rest of items
1512  std::memset(_My_array+_I, 0, (_N-_I)*sizeof(value_type));
1513  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
_Ty value_type
A type that represents the data type stored in a concurrent vector.
Definition: concurrent_vector.h:444
const size_type _N
Definition: concurrent_vector.h:1477

Member Function Documentation

template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Assign ( const void _Src)
inline
1500  {
1501  for(; _I < _N; ++_I)
1502  _My_array[_I] = static_cast<const _Ty*>(_Src)[_I];
1503  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Copy ( const void _Src)
inline
1495  {
1496  for(; _I < _N; ++_I)
1497  new( &_My_array[_I] ) _Ty(static_cast<const _Ty*>(_Src)[_I]);
1498  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Init ( )
inline
1485  {
1486  for(; _I < _N; ++_I)
1487  new( &_My_array[_I] ) _Ty();
1488  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Init ( const void _Src)
inline
1490  {
1491  for(; _I < _N; ++_I)
1492  new( &_My_array[_I] ) _Ty(*static_cast<const _Ty*>(_Src));
1493  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
template<class _It >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Iterate ( _It &  _Src)
inline
1505  {
1506  for(; _I < _N; ++_I, ++_Src)
1507  new( &_My_array[_I] ) _Ty( *_Src );
1508  }
size_type _I
Definition: concurrent_vector.h:1478
const pointer _My_array
Definition: concurrent_vector.h:1476
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
const size_type _N
Definition: concurrent_vector.h:1477
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::operator= ( const _Internal_loop_guide )
private

Member Data Documentation

template<typename _Ty , class _Ax >
size_type Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_I
template<typename _Ty , class _Ax >
const pointer Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_My_array
template<typename _Ty , class _Ax >
const size_type Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_N

The documentation for this class was generated from the following file: