1.0.2 • Published 5 months ago
nv-cli-creat-cstruct-cmp-mthds v1.0.2
nv-cli-creat-cstruct-cmp-mthds
install
- npm install nv-cli-creat-cstruct-cmp-mthds -g
usage
Usage: nv_cli_creat_cstruct_cmp_mthds [options]
Options:
-i, --indent indent ,default 0
-c, --clsname clsname, default Data
-n, --names member names
-h, --help usage
example
#nv_cli_creat_cstruct_cmp_mthds -c Data -n aa b cc d
bool operator==(const Data& other) const {
return(
aa == other.aa &&
b == other.b &&
cc == other.cc &&
d == other.d
);
};
bool operator>(const Data& other) const {
return(
(aa>other.aa) ? true : ((aa==other.aa)?(
(b>other.b) ? true : ((b==other.b)?(
(cc>other.cc) ? true : ((cc==other.cc)?(
(d > other.d)
):false)
):false)
):false)
);
};
bool operator<(const Data& other) const {return(!(*this>other) && !(*this == other));}
/*----------------------------------*/
bool operator==(const Data& other) const {
return(
aa == other.aa &&
b == other.b &&
cc == other.cc &&
d == other.d
);
};
bool operator>(const Data& other) const {return(!(*this<other) && !(*this == other));}
bool operator<(const Data& other) const {
return(
(aa>other.aa) ? true : ((aa==other.aa)?(
(b>other.b) ? true : ((b==other.b)?(
(cc>other.cc) ? true : ((cc==other.cc)?(
(d < other.d)
):false)
):false)
):false)
);
};
LICENSE
- ISC