14 #pragma managed( push, off ) 19 #include <initializer_list> 32 template<
typename Type >
46 explicit CArray() noexcept;
57 explicit CArray( Type
const& rElement ) noexcept;
69 explicit CArray( Type
const* pBuffer,
int nCount ) noexcept;
80 explicit CArray( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
206 virtual CArray&
operator=( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
239 virtual CArray&
operator+=( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
250 virtual Type&
operator[](
int nIndex ) noexcept;
261 virtual operator Type
const*() noexcept {
return m_pBuffer; }
286 virtual void Clear() noexcept;
338 virtual bool Copy(
CArray const& rcInstance ) noexcept;
351 virtual bool Copy( Type
const& rElement ) noexcept;
365 virtual bool Copy( Type
const* pBuffer,
int nCount ) noexcept;
378 virtual bool Copy( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
391 virtual bool Move(
CArray&& rcInstance ) noexcept;
404 virtual bool Append(
CArray const& rcInstance ) noexcept;
417 virtual bool Append( Type
const& rElement ) noexcept;
431 virtual bool Append( Type
const* pBuffer,
int nCount ) noexcept;
444 virtual bool Append( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
458 virtual bool Insert(
int nIndex,
CArray const& rcInstance ) noexcept;
472 virtual bool Insert(
int nIndex, Type
const& rElement ) noexcept;
487 virtual bool Insert(
int nIndex, Type
const* pBuffer,
int nCount ) noexcept;
501 virtual bool Insert(
int nIndex, std::initializer_list< Type const >
const& rcInitializer ) noexcept;
514 virtual bool Remove() noexcept;
527 virtual bool Remove(
int nIndex ) noexcept;
541 virtual bool Remove(
int nIndex,
int nCount ) noexcept;
555 virtual bool Get(
int nIndex, Type& rElement )
const noexcept;
569 virtual bool Set(
int nIndex, Type
const& rElement ) noexcept;
582 virtual int Find( Type
const& rElement )
const noexcept;
596 virtual bool Compare( Type
const& rElement1, Type
const& rElement2 )
const noexcept;
609 virtual bool Push( Type
const& rElement ) noexcept;
623 virtual bool Push( Type
const* pBuffer,
int nCount ) noexcept;
636 virtual bool Push( std::initializer_list< Type const >
const& rcInitializer ) noexcept;
649 virtual bool Pop( Type& rElement ) noexcept;
662 virtual bool PopFront( Type& rElement ) noexcept;
678 #pragma managed( pop ) virtual bool CreateBuffer(int nSize) noexcept
バッファ作成関数
virtual bool Set(int nIndex, Type const &rElement) noexcept
設定関数
virtual ~CArray() noexcept
デストラクタ
virtual bool Remove() noexcept
削除関数
virtual int GetSegmentSize() const noexcept
セグメントサイズ取得関数
virtual bool Move(CArray &&rcInstance) noexcept
ムーブ関数
virtual bool Append(CArray const &rcInstance) noexcept
追加関数
virtual void Clear() noexcept
クリア関数
virtual bool Push(Type const &rElement) noexcept
プッシュ関数
virtual int GetSize() const noexcept
バッファサイズ取得関数
static int const SEGMENT_SIZE
セグメントサイズ初期値
virtual int Find(Type const &rElement) const noexcept
検索関数
virtual bool Pop(Type &rElement) noexcept
ポップ関数
virtual Type * GetBuffer() noexcept
配列要素バッファ取得関数
virtual bool Compare(Type const &rElement1, Type const &rElement2) const noexcept
比較関数
virtual CArray & operator()() noexcept
関数演算子オーバーロード関数
virtual CArray & operator+=(CArray const &rcInstance) noexcept
加算代入演算子オーバーロード関数
virtual bool Get(int nIndex, Type &rElement) const noexcept
取得関数
virtual Type & operator[](int nIndex) noexcept
配列添字演算子オーバーロード関数
virtual bool Insert(int nIndex, CArray const &rcInstance) noexcept
挿入関数
virtual bool CompactBuffer() noexcept
バッファサイズコンパクト化関数
virtual bool Copy(CArray const &rcInstance) noexcept
コピー関数
virtual CArray & operator=(CArray const &rcInstance) noexcept
コピー代入演算子オーバーロード関数
virtual int GetCount() const noexcept
配列要素数取得関数
virtual bool PopFront(Type &rElement) noexcept
ポップフロント関数
virtual bool UpdateBuffer(int nCount) noexcept
バッファサイズ更新関数