|
virtual | ~WorkspaceExtensibleGroup () override=default |
|
|
boost::optional< WorkspaceObject > | getTarget (unsigned fieldIndex) const |
| Returns the object pointed to by field index, if it exists. More...
|
|
std::vector< WorkspaceObject > | getTargets () const |
| Returns all objects pointed to by this object. More...
|
|
std::vector< unsigned > | getSourceFieldIndices (const Handle &targetHandle) const |
| Returns the fieldIndex of the field in this extensible group that points to targetHandle, if possible. More...
|
|
|
bool | setPointer (unsigned fieldIndex, const Handle &targetHandle) |
| Sets the pointer at fieldIndex to point to target, if possible. More...
|
|
bool | setPointer (unsigned fieldIndex, const Handle &targetHandle, bool checkValidity) |
|
|
bool | isSource () const |
| Returns true if this ExtensibleGroup points to another object. More...
|
|
bool | canBeSource () const |
| Returns true if this object can point to another object. More...
|
|
virtual | ~IdfExtensibleGroup ()=default |
|
std::vector< std::string > | fields (bool returnDefault=false) const |
| Returns this extensible group's fields. More...
|
|
std::vector< std::string > | fieldsWithHandles (bool returnDefault=false) const |
| Returns this extensible group's fields. More...
|
|
std::vector< std::string > | fieldComments (bool returnDefault=false) const |
| Returns the comments associated with this extensible group's fields. More...
|
|
boost::optional< std::string > | fieldComment (unsigned fieldIndex, bool returnDefault=false) const |
| Returns the comment associated with this extensible group's field fieldIndex. More...
|
|
boost::optional< std::string > | getString (unsigned fieldIndex, bool returnDefault=false) const |
| Returns the string value of this extensible group's field fieldIndex, if that field exists (isValid(fieldIndex)). More...
|
|
boost::optional< std::string > | getField (unsigned index, bool returnDefault=false) const |
| Like getString except for reference fields getString will return the name of the referenced object. More...
|
|
bool | isEmpty (unsigned fieldIndex) const |
| Returns true if the field is empty. More...
|
|
boost::optional< double > | getDouble (unsigned fieldIndex, bool returnDefault=false) const |
| Returns the value, converted to type double, of this extensible group's field fieldIndex, if possible. More...
|
|
boost::optional< unsigned > | getUnsigned (unsigned fieldIndex, bool returnDefault=false) const |
| Returns the value, converted to type unsigned, of this extensible group's field fieldIndex, if possible. More...
|
|
boost::optional< int > | getInt (unsigned fieldIndex, bool returnDefault=false) const |
| Returns the value, converted to type int, of this extensible group's field fieldIndex, if possible. More...
|
|
bool | setFieldComment (unsigned fieldIndex, const std::string &cmnt) |
| Sets the comment associated with this extensible group's field fieldIndex, if possible. More...
|
|
bool | setFields (const std::vector< std::string > &values) |
| Set all the fields in this IdfExtensibleGroup, if possible. More...
|
|
bool | setString (unsigned fieldIndex, const std::string &value) |
| Set this extensible group's field fieldIndex to value, if possible. More...
|
|
bool | setString (unsigned fieldIndex, const std::string &value, bool checkValidity) |
| setString that can delay signal emits. More...
|
|
bool | setDouble (unsigned fieldIndex, double value) |
| Set this extensible group's field fieldIndex to value, if possible. More...
|
|
bool | setUnsigned (unsigned fieldIndex, unsigned value) |
| Set this extensible group's field fieldIndex to value, if possible. More...
|
|
bool | setInt (unsigned fieldIndex, int value) |
| Set this extensible group's field fieldIndex to value, if possible. More...
|
|
IdfExtensibleGroup | pushClone () const |
| Clones the data in this extensible group, and pushes the new extensible group onto the end of the enclosing object. More...
|
|
IdfExtensibleGroup | insertClone (unsigned groupIndex) const |
| Clones the data in this extensible group, and inserts the new extensible group at groupIndex within the enclosing object. More...
|
|
bool | empty () const |
| Returns true if this ExtensibleGroup holds no data. More...
|
|
unsigned | groupIndex () const |
| Returns the (group) index of this ExtensibleGroup. More...
|
|
unsigned | numFields () const |
| Returns the number of fields in this ExtensibleGroup. More...
|
|
bool | isValid (unsigned fieldIndex) const |
| Returns true if fieldIndex is valid for this extensible group. More...
|
|
std::vector< unsigned > | objectListFields () const |
| Returns the indices of all fields that can point to other objects. More...
|
|
std::vector< unsigned > | dataFields () const |
| Returns the indices of all fields that are not objectListFields() (and are therefore plain alpha or numeric data). More...
|
|
std::vector< unsigned > | requiredFields () const |
| Returns the indices of all fields in this ExtensibleGroup that are required, as defined by the IddObject. More...
|
|
bool | operator== (const IdfExtensibleGroup &other) const |
| Equality comparator for IdfExtensibleGroups. More...
|
|
bool | operator!= (const IdfExtensibleGroup &other) const |
| Negation of operator==. More...
|
|
template<typename T > |
T | cast () const |
| cast to type T, can throw std::bad_cast More...
|
|
template<typename T > |
boost::optional< T > | optionalCast () const |
| cast to optional of type T More...
|
|
template<typename T > |
T | getObject () const |
| Get the parent object. More...
|
|
template<typename T > |
boost::optional< T > | getOptionalObject () const |
| Get the parent object. More...
|
|