From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 4: | Line 4: | ||
* ''TElem &operator=( const TElem &src );'' — Copying from ''src''. | * ''TElem &operator=( const TElem &src );'' — Copying from ''src''. | ||
* ''string &elName( );'' — The name if the structure. | * ''string &elName( );'' — The name if the structure. | ||
− | * ''void fldList( vector<string> &list );'' — The cell's list in the structure ''list''. | + | * ''void fldList( vector<string> &list ) const;'' — The cell's list in the structure ''list''. |
* ''unsigned fldSize( ) const;'' — The number of cells in the structure. | * ''unsigned fldSize( ) const;'' — The number of cells in the structure. | ||
* ''unsigned fldId( const string &name, bool noex = false );'' — Getting the index of the cell from its identifier ''name''. Set ''noex'' on no the cell present caused return overall cells number, without exception generation. | * ''unsigned fldId( const string &name, bool noex = false );'' — Getting the index of the cell from its identifier ''name''. Set ''noex'' on no the cell present caused return overall cells number, without exception generation. |
Revision as of 11:03, 9 June 2023
Public methods:
- TElem( const string &name = "" ); — Initialization of the structure with the specified name name.
- TElem( const TElem &src ); — Copying constructor.
- TElem &operator=( const TElem &src ); — Copying from src.
- string &elName( ); — The name if the structure.
- void fldList( vector<string> &list ) const; — The cell's list in the structure list.
- unsigned fldSize( ) const; — The number of cells in the structure.
- unsigned fldId( const string &name, bool noex = false ); — Getting the index of the cell from its identifier name. Set noex on no the cell present caused return overall cells number, without exception generation.
- bool fldPresent( const string &name ); — Check for the presence of the specified cell name.
- int fldAdd( TFld *fld, int id = -1 ); — Addition/insert of the cell fld to the position id (-1 — insert to the end).
- void fldDel( unsigned int id ); — Deleting of the cell id.
- TFld &fldAt( unsigned int id ) const; — Getting of the cell id.
- void fldClear( ); — Removing all cells.
- void valAtt( TValElem *cnt ); — Is called automatically when the structure is attached to the data storage cnt.
- void valDet( TValElem *cnt ); — Is called automatically when the structure is detached from the data storage cnt.
- ResMtx &resEl( ); — Mutex for access to containers of the fields.