diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/depsgraph/intern/builder/deg_builder_map.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_map.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_map.h | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_map.h b/source/blender/depsgraph/intern/builder/deg_builder_map.h index 193a7837aa6..c1db1d9d2bb 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_map.h +++ b/source/blender/depsgraph/intern/builder/deg_builder_map.h @@ -29,32 +29,35 @@ struct ID; namespace DEG { class BuilderMap { -public: - BuilderMap(); - ~BuilderMap(); - - /* Check whether given ID is already handled by builder (or if it's being - * handled). */ - bool checkIsBuilt(ID *id); - - /* Tag given ID as handled/built. */ - void tagBuild(ID *id); - - /* Combination of previous two functions, returns truth if ID was already - * handled, or tags is handled otherwise and return false. */ - bool checkIsBuiltAndTag(ID *id); - - template<typename T> bool checkIsBuilt(T *datablock) { - return checkIsBuilt(&datablock->id); - } - template<typename T> void tagBuild(T *datablock) { - tagBuild(&datablock->id); - } - template<typename T> bool checkIsBuiltAndTag(T *datablock) { - return checkIsBuiltAndTag(&datablock->id); - } - - GSet *set; + public: + BuilderMap(); + ~BuilderMap(); + + /* Check whether given ID is already handled by builder (or if it's being + * handled). */ + bool checkIsBuilt(ID *id); + + /* Tag given ID as handled/built. */ + void tagBuild(ID *id); + + /* Combination of previous two functions, returns truth if ID was already + * handled, or tags is handled otherwise and return false. */ + bool checkIsBuiltAndTag(ID *id); + + template<typename T> bool checkIsBuilt(T *datablock) + { + return checkIsBuilt(&datablock->id); + } + template<typename T> void tagBuild(T *datablock) + { + tagBuild(&datablock->id); + } + template<typename T> bool checkIsBuiltAndTag(T *datablock) + { + return checkIsBuiltAndTag(&datablock->id); + } + + GSet *set; }; } // namespace DEG |