nlib
manual_ja_z.h
1 
2 #include "nn/nlib/Platform.h"
3 
4 namespace nn {
5 namespace nlib {
6 
8 class z {
9 public:
11  z() noexcept; // \copybrief z::z()
13  void z_needs_init() noexcept; // \copybrief z::z_needs_init()
15  ~z() noexcept; // \copybrief z::~z()
17  z(z&&) noexcept; // \copybrief z::z(z&&)
19  z& operator=(z&&) noexcept; // \copybrief z::operator=(z&&)
21  z(const z&) noexcept; // \copybrief z::z(const z&)
23  z& operator=(const z&) noexcept; // \copybrief z::operator=(const z&)
25  errno_t Init() noexcept; // \copybrief z::Init()
27  bool InitB() noexcept; // \copybrief z::InitB()
28 
29  //unsage \copydoc z::Init_settings()
36  errno_t Init_settings(const z& settings) noexcept;
37 
39  void Overload_omitarg() noexcept; // \copybrief z::Overload_omitarg()
41  void Overload_omitarg_null() noexcept; // \copybrief z::Overload_omitarg_null()
43  void Overload_omitarg_false() noexcept; // \copybrief z::Overload_omitarg_false()
45  void Overload_omitarg_settings() noexcept; // \copybrief z::Overload_omitarg_settings()
47  void Overload_omitarg_template() noexcept; // \copybrief z::Overload_omitarg_template()
49  void Overload_omitarg_cstr() noexcept; // \copybrief z::Overload_omitarg_cstr()
50 
51 
53  void Overload_const() const noexcept; // \copybrief z::Overload_const()
54 
56  void Reset() noexcept; // \copybrief z::Reset()
57 
58  //
59  // iterators
60  //
61 
63  void iterator() noexcept; // \copybrief z::iterator()
65  void const_iterator() noexcept; // \copybrief z::const_iterator()
67  void forward_iterator() noexcept; // \copybrief z::forward_iterator()
69  void const_forward_iterator() noexcept; // \copybrief z::const_forward_iterator()
71  void reverse_iterator() noexcept; // \copybrief z::reverse_iterator()
73  void const_reverse_iterator() noexcept; // \copybrief z::const_reverse_iterator()
74 
76  void reference() noexcept; // \copybrief z::reference()
78  void const_reference() noexcept; // \copybrief z::const_reference()
80  void pointer() noexcept; // \copybrief z::pointer()
82  void const_pointer() noexcept; // \copybrief z::const_pointer()
83 
85  void begin() noexcept; // \copybrief z::begin()
87  void begin_const() const noexcept; // \copybrief z::begin_const()
89  void end() noexcept; // \copybrief z::end()
91  void end_const() const noexcept; // \copybrief z::end_const()
93  void rbegin() noexcept; // \copybrief z::rbegin()
95  void rbegin_const() const noexcept; // \copybrief z::rbegin_const()
97  void rend() noexcept; // \copybrief z::rend()
99  void rend_const() const noexcept; // \copybrief z::rend_const()
100 
102  void front() noexcept; // \copybrief z::front()
104  void back() noexcept; // \copybrief z::back()
105 
109  int& at(size_t n) noexcept; // \copydoc z::at()
110 
112  size_t size() const noexcept; // \copybrief z::size()
114  bool empty() const noexcept; // \copybrief z::empty()
115 
117  bool opbool() const noexcept; // \copybrief z::opbool()
118 
120  bool opbool_err() const noexcept; // \copybrief z::opbool_err()
121 };
122 
124 bool opeq(const z& lhs, const z& rhs); // \copybrief opeq()
126 bool opne(const z& lhs, const z& rhs); // \copybrief opne()
128 bool oplt(const z& lhs, const z& rhs); // \copybrief oplt()
130 bool opgt(const z& lhs, const z& rhs); // \copybrief opgt()
132 bool ople(const z& lhs, const z& rhs); // \copybrief ople()
134 bool opge(const z& lhs, const z& rhs); // \copybrief opge()
135 
136 //
137 // for member group(@name)
138 //
139 // FILTER_ATNAME_CTORDTOR: コンストラクタ、デストラクタ、及び初期化
140 // FILTER_ATNAME_OPENCLOSE: オープン、クローズ
141 // FILTER_ATNAME_GETSET: 内部状態の取得と設定
142 //
143 }
144 }
void front() noexcept
最初の要素への参照を取得します。
bool opne(const z &lhs, const z &rhs)
非等値比較を行います。
errno_t Init_settings(const z &settings) noexcept
動作オプションを指定して初期化を行います。成功した場合は0を返します。
void begin_const() const noexcept
先頭要素を指す読み取り専用反復子を取得します。
bool opbool() const noexcept
オブジェクトが有効な状態ならtrue、そうでなければfalseを返します。
void const_pointer() noexcept
要素への読み取り専用ポインタです。
void const_reference() noexcept
要素への読み取り専用参照です。
void pointer() noexcept
要素へのポインタです。
errno_t Init() noexcept
オブジェクトを初期化します。成功した場合は0を返します。
void back() noexcept
最後の要素への参照を取得します。
bool empty() const noexcept
格納されている要素数が0ならばtrue、それ以外ならfalseを返します。
void end() noexcept
末尾の次を指す反復子を取得します。
Definition: Base64.h:25
bool opbool_err() const noexcept
オブジェクトが初期化済みで内部でエラーが発生していなければtrue、発生していればfalseを返します。 ...
size_t size() const noexcept
格納されている要素数を返します。
void Overload_omitarg_template() noexcept
上記関数のテンプレートオーバーロードです。
bool oplt(const z &lhs, const z &rhs)
左辺が右辺より小さければtrue、それ以外ならfalseを返します。
void Overload_omitarg_false() noexcept
上記関数の引数省略版で、falseを引数として渡します。
z() noexcept
デフォルトコンストラクタです。
基本的なAPIがCリンケージで宣言されています。
void Overload_omitarg_settings() noexcept
上記関数の引数省略版で、settingsをデフォルト値で渡します。
void rbegin_const() const noexcept
末尾要素を指す読み取り専用逆反復子を取得します。
z & operator=(z &&) noexcept
ムーブ代入演算子です。
void forward_iterator() noexcept
前方反復子です。
void const_iterator() noexcept
読み取り専用ランダムアクセス反復子です。
bool opgt(const z &lhs, const z &rhs)
右辺が左辺より小さければtrue、それ以外ならfalseを返します。
bool InitB() noexcept
オブジェクトを初期化します。成功した場合はtrueを返します。
bool ople(const z &lhs, const z &rhs)
左辺が右辺より小さいか等しければtrue、それ以外ならfalseを返します。
ドキュメント作成上の都合によるダミークラスで存在しません。
Definition: manual_ja_z.h:8
void z_needs_init() noexcept
デフォルトコンストラクタです。実行後Init()による初期化を必要とします。
void reference() noexcept
要素への参照です。
void Overload_omitarg() noexcept
上記関数の引数省略版です。
void iterator() noexcept
ランダムアクセス反復子です。
void rend() noexcept
先頭の前を指す逆反復子を取得します。
void const_forward_iterator() noexcept
読み取り専用前方反復子です。
void end_const() const noexcept
末尾の次を指す読み取り専用反復子を取得します。
~z() noexcept
デストラクタです。
void rbegin() noexcept
末尾要素を指す逆反復子を取得します。
bool opeq(const z &lhs, const z &rhs)
等値比較を行います。
void reverse_iterator() noexcept
逆反復子です。
int & at(size_t n) noexcept
n番目の要素を取得します。nは格納されている要素数未満である必要があります。
void Overload_omitarg_cstr() noexcept
上記関数の引数省略版で、ヌル終端する文字列を受け取ります。
void Overload_omitarg_null() noexcept
上記関数の引数省略版で、nullptrを引数として渡します。
void Overload_const() const noexcept
上記関数のconst修飾付き版です。
bool opge(const z &lhs, const z &rhs)
右辺が左辺より小さいか等しければtrue、それ以外ならfalseを返します。
void rend_const() const noexcept
先頭の前を指す読み取り専用逆反復子を取得します。
void const_reverse_iterator() noexcept
読み取り専用逆反復子です。
void begin() noexcept
先頭要素を指す反復子を取得します。
void Reset() noexcept
このオブジェクトをデフォルトコンストラクタの実行直後の状態にリセットします。
int errno_t
intのtypedefで、戻り値としてPOSIXのエラー値を返すことを示します。
Definition: NMalloc.h:37