diff options
Diffstat (limited to 'core/path_db.h')
-rw-r--r-- | core/path_db.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/core/path_db.h b/core/path_db.h index db756c3420..eec29676e2 100644 --- a/core/path_db.h +++ b/core/path_db.h @@ -29,15 +29,12 @@ #ifndef PATH_DB_H #define PATH_DB_H - -#include "ustring.h" #include "string_db.h" +#include "ustring.h" /** @author Juan Linietsky <reduzio@gmail.com> */ - - class NodePath { struct Data { @@ -51,11 +48,11 @@ class NodePath { Data *data; void unref(); -public: +public: _FORCE_INLINE_ StringName get_sname() const { - if (data && data->path.size()==1 && data->subpath.empty() && !data->property) { + if (data && data->path.size() == 1 && data->subpath.empty() && !data->property) { return data->path[0]; } else { return operator String(); @@ -70,7 +67,7 @@ public: Vector<StringName> get_names() const; Vector<StringName> get_subnames() const; - NodePath rel_path_to(const NodePath& p_np) const; + NodePath rel_path_to(const NodePath &p_np) const; void prepend_period(); @@ -83,17 +80,17 @@ public: operator String() const; bool is_empty() const; - bool operator==(const NodePath& p_path) const; - bool operator!=(const NodePath& p_path) const; - void operator=(const NodePath& p_path); + bool operator==(const NodePath &p_path) const; + bool operator!=(const NodePath &p_path) const; + void operator=(const NodePath &p_path); void simplify(); NodePath simplified() const; - NodePath(const Vector<StringName>& p_path,bool p_absolute,const String& p_property=""); - NodePath(const Vector<StringName>& p_path,const Vector<StringName>& p_subpath,bool p_absolute,const String& p_property=""); - NodePath(const NodePath& p_path); - NodePath(const String& p_path); + NodePath(const Vector<StringName> &p_path, bool p_absolute, const String &p_property = ""); + NodePath(const Vector<StringName> &p_path, const Vector<StringName> &p_subpath, bool p_absolute, const String &p_property = ""); + NodePath(const NodePath &p_path); + NodePath(const String &p_path); NodePath(); ~NodePath(); }; |