Definition at line 148 of file field_desc.
◆ desc_fields() [1/3]
tools::sg::desc_fields::desc_fields |
( |
| ) |
|
|
inline |
◆ desc_fields() [2/3]
tools::sg::desc_fields::desc_fields |
( |
const desc_fields & |
a_parent, |
|
|
size_t |
a_num, |
|
|
|
... |
|
) |
| |
|
inline |
Definition at line 152 of file field_desc.
153 parent::operator=(a_parent);
155 va_start(args,a_num);
156 for(
size_t index=0;index<a_num;index++) {
157 field_desc* _fd = va_arg(args,field_desc*);
158 parent::push_back(*_fd);
◆ ~desc_fields()
virtual tools::sg::desc_fields::~desc_fields |
( |
| ) |
|
|
inlinevirtual |
◆ desc_fields() [3/3]
tools::sg::desc_fields::desc_fields |
( |
const desc_fields & |
a_from | ) |
|
|
inline |
◆ dump()
void tools::sg::desc_fields::dump |
( |
std::ostream & |
a_out | ) |
const |
|
inline |
Definition at line 168 of file field_desc.
169 a_out <<
"num fields " <<
parent::size() <<
" :" << std::endl;
171 const field_desc& _fd = *it;
172 a_out <<
"name " << _fd.name() << std::endl;
173 a_out <<
"class " << _fd.cls() << std::endl;
174 a_out <<
"offset " << _fd.offset() << std::endl;
175 a_out <<
"editable " << (_fd.editable()?
"yes":
"no") << std::endl;
176 {
const std::vector<field_desc::enum_t>& _enums = _fd.enums();
178 a_out <<
"num enums " << _enums.size() <<
" :" << std::endl;
180 a_out <<
"key " << (*eit).first <<
", value " << (*eit).second << std::endl;
183 {
const std::vector<std::string>& _opts = _fd.opts();
185 a_out <<
"num options " << _opts.size() <<
" :" << std::endl;
187 a_out <<
" " << (*oit) << std::endl;
◆ operator=()
Definition at line 166 of file field_desc.
166 {parent::operator=(a_from);
return *
this;}
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/sg/field_desc