Public 型 |
typedef Array::allocator_type | allocator_type |
| MISTコンテナが利用するアロケータ型
|
typedef Array::reference | reference |
| MISTのコンテナ内に格納するデータ型の参照.mist::array< data > の場合,data & となる
|
typedef Array::const_reference | const_reference |
| MISTのコンテナ内に格納するデータ型の const 参照.mist::array< data > の場合,const data & となる
|
typedef Array::value_type | value_type |
| MISTのコンテナ内に格納するデータ型.mist::array< data > の data と同じ
|
typedef Array::size_type | size_type |
| 符号なしの整数を表す型.コンテナ内の要素数や,各要素を指定するときなどに利用し,内部的には size_t 型と同じ
|
typedef Array::difference_type | difference_type |
| 符号付きの整数を表す型.コンテナ内の要素数や,各要素を指定するときなどに利用し,内部的には ptrdiff_t 型と同じ
|
typedef Array::pointer | pointer |
| MISTのコンテナ内に格納するデータ型のポインター型.mist::array< data > の場合,data * となる
|
typedef Array::const_pointer | const_pointer |
| MISTのコンテナ内に格納するデータ型の const ポインター型.mist::array< data > の場合,const data * となる
|
typedef Array::iterator | iterator |
| MISTのコンテナ内を操作する,STLで言う順方向のランダムアクセスイテレータ
|
typedef Array::const_iterator | const_iterator |
| MISTのコンテナ内を操作する,順方向のランダムアクセスイテレータのコンスト版
|
typedef Array::reverse_iterator | reverse_iterator |
| MISTのコンテナ内を操作する,逆方向のランダムアクセスイテレータ
|
typedef
Array::const_reverse_iterator | const_reverse_iterator |
| MISTのコンテナ内を操作する,逆方向のランダムアクセスイテレータのコンスト版
|
Public メソッド |
bool | resize (size_type num1) |
| コンテナ内の要素数を変更する
|
bool | resize (size_type num1, size_type num2) |
| コンテナ内の要素数を変更する
|
bool | resize (size_type num1, size_type num2, size_type num3) |
| コンテナ内の要素数を変更する
|
bool | swap (marray &a) |
| コンテナ内の全ての内容を入れ替える.
|
void | clear () |
| コンテナの要素を空にする
|
void | fill_margin (const value_type &val=value_type()) |
| コンテナ内のマージン部分のデータ要素を指定された値で初期化する
|
size_type | size1 () const |
| X軸方向のコンテナに格納されているデータ数を返す
|
size_type | size2 () const |
| Y軸方向のコンテナに格納されているデータ数を返す
|
size_type | size3 () const |
| Z軸方向のコンテナに格納されているデータ数を返す
|
size_type | width () const |
| X軸方向のコンテナに格納されているデータ数を返す
|
size_type | height () const |
| Y軸方向のコンテナに格納されているデータ数を返す
|
size_type | depth () const |
| Z軸方向のコンテナに格納されているデータ数を返す
|
size_type | margin1 () const |
| X軸方向のマージン幅を返す
|
size_type | margin2 () const |
| Y軸方向のマージン幅を返す
|
size_type | margin3 () const |
| Z軸方向のマージン幅を返す
|
const marray & | operator= (const marray &o) |
| 同じ型の marray コンテナを代入する
|
template<class T , class Allocator > |
const marray & | operator= (const array< T, Allocator > &o) |
| 要素の型が異なる array コンテナを代入する
|
template<class T , class Allocator > |
const marray & | operator= (const array1< T, Allocator > &o) |
| 要素の型が異なる array1 コンテナを代入する
|
template<class T , class Allocator > |
const marray & | operator= (const array2< T, Allocator > &o) |
| 要素の型が異なる array2 コンテナを代入する
|
template<class T , class Allocator > |
const marray & | operator= (const array3< T, Allocator > &o) |
| 要素の型が異なる array3 コンテナを代入する
|
reference | at (difference_type index) |
| index で示される位置の要素の参照を返す
|
reference | at (difference_type i, difference_type j) |
| ( i, j ) で示される位置の要素の参照を返す
|
reference | at (difference_type i, difference_type j, difference_type k) |
| ( i, j, k ) で示される位置の要素の参照を返す
|
const_reference | at (difference_type index) const |
| index で示される位置の要素の const 参照を返す
|
const_reference | at (difference_type i, difference_type j) const |
| ( i, j ) で示される位置の要素の const 参照を返す
|
const_reference | at (difference_type i, difference_type j, difference_type k) const |
| ( i, j, k ) で示される位置の要素の const 参照を返す
|
reference | operator[] (difference_type index) |
| index で示される位置の要素の参照を返す
|
reference | operator() (difference_type index) |
| index で示される位置の要素の参照を返す
|
reference | operator() (difference_type i, difference_type j) |
| ( i, j ) で示される位置の要素の参照を返す
|
reference | operator() (difference_type i, difference_type j, difference_type k) |
| ( i, j, k ) で示される位置の要素の参照を返す
|
const_reference | operator[] (difference_type index) const |
| index で示される位置の要素の参照を返す
|
const_reference | operator() (difference_type index) const |
| index で示される位置の要素の const 参照を返す
|
const_reference | operator() (difference_type i, difference_type j) const |
| ( i, j ) で示される位置の要素の const 参照を返す
|
const_reference | operator() (difference_type i, difference_type j, difference_type k) const |
| ( i, j, k ) で示される位置の要素の const 参照を返す
|
| marray () |
| ディフォルトコンストラクタ.要素数 0,マージン 0 のコンテナを作成する
|
| marray (size_type margin) |
| マージン margin のコンテナを作成する
|
| marray (const marray &o) |
| コピーコンストラクタ
|
| marray (size_type w, size_type margin) |
| マージン margin のコンテナを作成する
|
| marray (size_type w, size_type h, size_type margin) |
| マージン margin のコンテナを作成する
|
| marray (size_type w, size_type h, size_type d, size_type margin) |
| マージン margin のコンテナを作成する
|
template<class T , class Allocator > |
| marray (const array< T, Allocator > &o, size_type margin1, const value_type &val=value_type(0)) |
| array 配列 o の配列の大きさと,X軸方向のマージン margin1 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array1< T, Allocator > &o, size_type margin1, const value_type &val=value_type()) |
| array1 配列 o の配列の大きさと,X軸方向のマージン margin1 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array2< T, Allocator > &o, size_type margin1, size_type margin2, const value_type &val=value_type()) |
| array2 配列 o の配列の大きさと,X軸方向のマージン margin1,Y軸方向のマージン margin2 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array2< T, Allocator > &o, size_type margin1, size_type margin2, size_type, const value_type &val) |
| array2 配列 o の配列の大きさと,X軸方向のマージン margin1,Y軸方向のマージン margin2 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array3< T, Allocator > &o, size_type margin1, size_type margin2, size_type margin3, const value_type &val=value_type()) |
| array3 配列 o の配列の大きさと,X軸方向のマージン margin1,Y軸方向のマージン margin2,Z軸方向のマージン margin3 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array2< T, Allocator > &o, size_type margin1, const value_type &val=value_type()) |
| array2 配列 o の配列の大きさと,X・Y軸方向のマージン margin1 を用いて初期化し,全要素を val で初期化する
|
template<class T , class Allocator > |
| marray (const array3< T, Allocator > &o, size_type margin1, const value_type &val=value_type()) |
| array3 配列 o の配列の大きさと,X・Y・Z軸方向のマージン margin1 を用いて初期化し,全要素を val で初期化する
|
template<class Array>
class mist::marray< Array >
画像のふちにマージンを持った配列
1・2・3次元画像にマージンを持たせるための基本クラス (mist/mist.h をインクルードする)
- 引数
-