|
| | Variable (const UString &a_internal_name, const UString &a_name, const UString &a_value, const UString &a_type, bool a_in_scope=true, IDebugger *a_dbg=0) |
| |
| | Variable (const UString &a_name, const UString &a_value, const UString &a_type, bool a_in_scope=true, IDebugger *a_dbg=0) |
| |
| | Variable (const UString &a_name, IDebugger *a_dbg=0) |
| |
| | Variable (IDebugger *a_dbg=0) |
| |
| | ~Variable () |
| |
| const VariableList & | members () const |
| |
| VariableList & | members () |
| |
| bool | get_member_at (int a_index, VariableSafePtr &a_var) const |
| |
| int | sibling_index () const |
| |
| bool | operator== (const Variable &a_other) const |
| |
| bool | equals (const Variable &a_other) const |
| |
| bool | equals_by_value (const Variable &a_other) const |
| |
| void | append (const VariableSafePtr &a_var) |
| |
| const UString & | internal_name () const |
| |
| void | internal_name (const UString &a_in) |
| |
| const UString & | id () const |
| |
| IDebugger * | debugger () const |
| |
| void | debugger (IDebugger *a_dbg) |
| |
| const UString & | name () const |
| |
| void | name (const UString &a_name) |
| |
| const UString & | name_caption () const |
| |
| void | name_caption (const UString &a_n) |
| |
| const UString & | value () const |
| |
| void | value (const UString &a_value) |
| |
| const UString & | type () const |
| |
| void | type (const UString &a_type) |
| |
| void | type (const string &a_type) |
| |
| const UString & | visualizer () const |
| |
| void | visualizer (const UString &a) |
| |
| const UString & | display_hint () const |
| |
| void | display_hint (const UString &a) |
| |
| bool | has_parent () const |
| |
| bool | is_morally_root () const |
| |
| const VariableSafePtr | parent () const |
| | A getter of the parent Variable of the current instance. More...
|
| |
| void | parent (Variable *a_parent) |
| |
| const VariableSafePtr | root () const |
| |
| void | to_string (UString &a_str, bool a_show_var_name=false, const UString &a_indent_str="") const |
| |
| void | build_qname (UString &a_qname) const |
| |
| void | build_qualified_internal_name (UString &a_qname) const |
| |
| void | set_dereferenced (VariableSafePtr a_derefed) |
| |
| VariableSafePtr | get_dereferenced () |
| |
| bool | is_dereferenced () |
| |
| bool | is_copyable (const Variable &a_other) const |
| |
| bool | copy (const Variable &a_other) |
| |
| void | set (const Variable &a_other) |
| |
| unsigned int | num_expected_children () const |
| |
| void | num_expected_children (unsigned int a_in) |
| |
| bool | expects_children () const |
| |
| bool | needs_unfolding () const |
| |
| const VariableSafePtr | get_descendant (const UString &a_internal_path) const |
| |
| const UString & | path_expression () const |
| |
| void | path_expression (const UString &a_expr) |
| |
| bool | in_scope () const |
| |
| void | in_scope (bool a) |
| |
| Format | format () const |
| |
| void | format (Format a_format) |
| |
| bool | needs_revisualizing () const |
| |
| void | needs_revisualizing (bool a) |
| |
| bool | is_dynamic () const |
| |
| void | is_dynamic (bool a) |
| |
| bool | has_more_children () const |
| |
| void | has_more_children (bool a) |
| |
| | Object () |
| |
| | Object (Object const &) |
| |
| Object & | operator= (Object const &) |
| |
| virtual | ~Object () |
| |
| void | ref () |
| |
| void | unref () |
| |
| void | enable_refcount (bool a_enabled=true) |
| |
| bool | is_refcount_enabled () const |
| |
| long | get_refcount () const |
| |
| void | attach_object (const UString &a_key, const Object *a_object) |
| |
| bool | get_attached_object (const UString &a_key, const Object *&a_object) |
| |
| bool nemiver::IDebugger::Variable::is_morally_root |
( |
| ) |
const |
|
inline |
If this variable has a backend counterpart (e.g GDB Backend variable object) then, there are cases where a variable sub-object can be returned by the backend without being linked to its ancestor tree. Such a variable appears as being structurally root (it has no parent), but is morally a sub-variable. A variable that is structurally non-root is also morally non-root.
To know if a variable is morally root, this function detects if the fully qualified internal name of the variable has dot (".") in it (e.g, "variable.member"). If does not, then the function assumes the variable is morally root and returns true.