MDArray< TYPE > Class Template Reference

#include <c4d_baseeffectordata.h>

详细描述

template<class TYPE>
class MDArray< TYPE >

Template array class used for arrays filled by MoData .

公共成员函数

  MDArray ()
  MDArray ( TYPE *array_pointer, Int32 array_count, TYPE default_value)
  ~MDArray (void)
void  Fill (const TYPE &default_value)
  operator TYPE * ()
  operator const TYPE * () const
TYPE GetPointer (void)
const TYPE GetPointer (void) const
Bool   operator! () const
TYPE operator[] ( Int32 i)
const TYPE operator[] ( Int32 i) const
TYPE operator[] ( Int64 i)
const TYPE operator[] ( Int64 i) const

Private Attributes

TYPE ptr
TYPE   dv
Int   count

构造函数 & 析构函数文档编制

◆  MDArray() [1/2]

MDArray ( )

Default constructor.

◆  MDArray() [2/2]

MDArray ( TYPE array_pointer ,
Int32   array_count ,
TYPE   default_value  
)

Constructor with the array pointer and the default value.

参数
[in] array_pointer The array pointer.
[in] array_count The number of elements in array_pointer .
[in] default_value The default value.

◆  ~MDArray()

~ MDArray ( void  )

Default destructor.

成员函数文档编制

◆  Fill()

void Fill ( const TYPE default_value )

Fills the elements of the array with default_value .

参数
[in] default_value The value to fill with.

◆  operator TYPE *()

operator TYPE * ( )

Conversion operator.

◆  operator const TYPE *()

operator const TYPE * ( ) const

◆  GetPointer() [1/2]

TYPE * GetPointer ( void  )

Gets the array pointer.

返回
The array pointer.

◆  GetPointer() [2/2]

const TYPE * GetPointer ( void  ) const

Gets the const array pointer.

返回
The array pointer.

◆  operator!()

Bool operator! ( ) const

Checks if the array contains any elements.

返回
true if the array is empty, otherwise false .

◆  operator[]() [1/4]

TYPE & operator[] ( Int32   i )

Array access operator.

参数
[in] i The element index in the array.
返回
The element reference at i in the array.

◆  operator[]() [2/4]

const TYPE & operator[] ( Int32   i ) const

Const array access operator.

参数
[in] i The element index in the array.
返回
The element reference at i in the array.

◆  operator[]() [3/4]

TYPE & operator[] ( Int64   i )

Array access operator.

参数
[in] i The element index in the array.
返回
The element reference at i in the array.

◆  operator[]() [4/4]

const TYPE & operator[] ( Int64   i ) const

Const array access operator.

参数
[in] i The element index in the array.
返回
The element reference at i in the array.

Member Data Documentation

◆  ptr

TYPE * ptr
private

◆  dv

TYPE dv
mutable private

◆  count

Int count
private