aboutsummaryrefslogtreecommitdiff
path: root/slang_rs_reflection_cpp.h
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2012-11-14 12:40:26 -0800
committerStephen Hines <srhines@google.com>2012-11-14 12:40:26 -0800
commit02a9826b586f765a95e3c75bd6080c4ee8e2e911 (patch)
tree54797d6599131e461302ab5eeaebfc31b9afe7fb /slang_rs_reflection_cpp.h
parent38dceea4b8e90f326c90252d3c2762914d3ee6a5 (diff)
downloadslang-02a9826b586f765a95e3c75bd6080c4ee8e2e911.tar.gz
Fix style issues with C++ reflection.
Change-Id: I29c5e25864afd6f33a43762be6d66260c509084b
Diffstat (limited to 'slang_rs_reflection_cpp.h')
-rw-r--r--slang_rs_reflection_cpp.h30
1 files changed, 13 insertions, 17 deletions
diff --git a/slang_rs_reflection_cpp.h b/slang_rs_reflection_cpp.h
index df1dda5..226bc5b 100644
--- a/slang_rs_reflection_cpp.h
+++ b/slang_rs_reflection_cpp.h
@@ -22,27 +22,23 @@
namespace slang {
class RSReflectionCpp : public RSReflectionBase {
-protected:
+ public:
+ explicit RSReflectionCpp(const RSContext *);
+ virtual ~RSReflectionCpp();
+ bool reflect(const std::string &OutputPathBase,
+ const std::string &InputFileName,
+ const std::string &OutputBCFileName);
-public:
- RSReflectionCpp(const RSContext *);
- virtual ~RSReflectionCpp();
- bool reflect(const std::string &OutputPathBase,
- const std::string &InputFileName,
- const std::string &OutputBCFileName);
-
-
-private:
- bool makeHeader(const std::string &baseClass);
- bool makeImpl(const std::string &baseClass);
- void makeFunctionSignature(std::stringstream &ss, bool isDefinition,
- const RSExportFunc *ef);
- bool writeBC();
-
- bool startScriptHeader();
+ private:
+ bool makeHeader(const std::string &baseClass);
+ bool makeImpl(const std::string &baseClass);
+ void makeFunctionSignature(std::stringstream &ss, bool isDefinition,
+ const RSExportFunc *ef);
+ bool writeBC();
+ bool startScriptHeader();
}; // class RSReflection
} // namespace slang