CSAD
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | List of all members
bt::LinkArray< T > Class Template Reference

LinkArray - the interface of the segment to the memory of identical elements. More...

Classes

class  iterator
 The object that abstracts a single interface access to the items in the collection. More...
 

Public Member Functions

_FORCEINLINE LinkArray (void *_from, unsigned int _offset, unsigned int _step, unsigned int *_max)
 
_FORCEINLINE iteratorbegin ()
 Returns an iterator pointing to the first element in the sequence.
 
_FORCEINLINE unsigned int count ()
 Returns the number of elements of the real array.
 
_FORCEINLINE iteratorend ()
 Returns an iterator to the conditional end in the sequence.
 
_FORCEINLINE char * getArray ()
 returns an array (_from+_offset)
 
_FORCEINLINE unsigned int getStep ()
 returns the step
 
_FORCEINLINE void setValue (unsigned int _id, T &_val)
 Sets the value of the array element.
 
_FORCEINLINE T value (unsigned int _id)
 Returns the value of the array element.
 

Detailed Description

template<typename T>
class bt::LinkArray< T >

LinkArray - the interface of the segment to the memory of identical elements.

Interface for continuous chunk of memory, of identical elements arranged in _from with an initial offset _offset step _step, the Maximum number of elements that is under the pointer *_max.

See Also

Constructor & Destructor Documentation

template<typename T>
_FORCEINLINE bt::LinkArray< T >::LinkArray ( void *  _from,
unsigned int  _offset,
unsigned int  _step,
unsigned int *  _max 
)
inline

Конструктор

Parameters
_from- a pointer of array.
_offset- additional offset (array=_from+_offset)
_step- the number of bytes before the start of the new element.
_max- a pointer to the parameter contains the number of elements in the array.