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
1487  : _My_array(static_cast<pointer>(_Ptr)), _N(_NTrials), _I(0)
1488  {
1489  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
const size_type _N
Definition: concurrent_vector.h:1484
template<typename _Ty , class _Ax >
Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::~_Internal_loop_guide ( )
inline
1517  {
1518  if(_I < _N) // if exception raised, do zeroing on the rest of items
1519  std::memset(_My_array+_I, 0, (_N-_I)*sizeof(value_type));
1520  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
_Ty value_type
A type that represents the data type stored in a concurrent vector.
Definition: concurrent_vector.h:451
const size_type _N
Definition: concurrent_vector.h:1484

Member Function Documentation

template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Assign ( const void _Src)
inline
1507  {
1508  for(; _I < _N; ++_I)
1509  _My_array[_I] = static_cast<const _Ty*>(_Src)[_I];
1510  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
const size_type _N
Definition: concurrent_vector.h:1484
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Copy ( const void _Src)
inline
1502  {
1503  for(; _I < _N; ++_I)
1504  new( &_My_array[_I] ) _Ty(static_cast<const _Ty*>(_Src)[_I]);
1505  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
const size_type _N
Definition: concurrent_vector.h:1484
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Init ( )
inline
1492  {
1493  for(; _I < _N; ++_I)
1494  new( &_My_array[_I] ) _Ty();
1495  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
const size_type _N
Definition: concurrent_vector.h:1484
template<typename _Ty , class _Ax >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Init ( const void _Src)
inline
1497  {
1498  for(; _I < _N; ++_I)
1499  new( &_My_array[_I] ) _Ty(*static_cast<const _Ty*>(_Src));
1500  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
const size_type _N
Definition: concurrent_vector.h:1484
template<typename _Ty , class _Ax >
template<class _It >
void Concurrency::concurrent_vector< _Ty, _Ax >::_Internal_loop_guide::_Iterate ( _It &  _Src)
inline
1512  {
1513  for(; _I < _N; ++_I, ++_Src)
1514  new( &_My_array[_I] ) _Ty( *_Src );
1515  }
size_type _I
Definition: concurrent_vector.h:1485
const pointer _My_array
Definition: concurrent_vector.h:1483
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
const size_type _N
Definition: concurrent_vector.h:1484
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: