summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/top_block.h
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-08-07 21:45:12 +0200
committerMarcus Müller <marcus@hostalia.de>2019-08-09 23:04:28 +0200
commitf7bbf2c1d8d780294f3e016aff239ca35eb6516e (patch)
treee09ab6112e02b2215b2d59ac24d3d6ea2edac745 /gnuradio-runtime/include/gnuradio/top_block.h
parent78431dc6941e3acc67c858277dfe4a0ed583643c (diff)
Tree: clang-format without the include sorting
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/top_block.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/top_block.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/gnuradio-runtime/include/gnuradio/top_block.h b/gnuradio-runtime/include/gnuradio/top_block.h
index 7f3556a546..d0e62d1aaf 100644
--- a/gnuradio-runtime/include/gnuradio/top_block.h
+++ b/gnuradio-runtime/include/gnuradio/top_block.h
@@ -28,26 +28,25 @@
namespace gr {
- class top_block_impl;
+class top_block_impl;
- GR_RUNTIME_API top_block_sptr make_top_block(const std::string &name);
+GR_RUNTIME_API top_block_sptr make_top_block(const std::string& name);
- /*!
- *\brief Top-level hierarchical block representing a flowgraph
- * \ingroup container_blk
- */
- class GR_RUNTIME_API top_block : public hier_block2
- {
- private:
- friend GR_RUNTIME_API top_block_sptr
- make_top_block(const std::string &name);
+/*!
+ *\brief Top-level hierarchical block representing a flowgraph
+ * \ingroup container_blk
+ */
+class GR_RUNTIME_API top_block : public hier_block2
+{
+private:
+ friend GR_RUNTIME_API top_block_sptr make_top_block(const std::string& name);
- top_block_impl *d_impl;
+ top_block_impl* d_impl;
- protected:
- top_block(const std::string &name);
+protected:
+ top_block(const std::string& name);
- public:
+public:
~top_block();
/*!
@@ -60,7 +59,7 @@ namespace gr {
* allowed for any block in the flowgraph. This passes through to
* the start function; see that function for more details.
*/
- void run(int max_noutput_items=100000000);
+ void run(int max_noutput_items = 100000000);
/*!
* Start the contained flowgraph. Creates one or more threads to
@@ -74,7 +73,7 @@ namespace gr {
* maximum. Use this to adjust the maximum latency a flowgraph can
* exhibit.
*/
- void start(int max_noutput_items=100000000);
+ void start(int max_noutput_items = 100000000);
/*!
* Stop the running flowgraph. Notifies each thread created by the
@@ -141,12 +140,13 @@ namespace gr {
top_block_sptr to_top_block(); // Needed for Python type coercion
void setup_rpc();
- };
+};
- inline top_block_sptr cast_to_top_block_sptr(basic_block_sptr block) {
+inline top_block_sptr cast_to_top_block_sptr(basic_block_sptr block)
+{
return boost::dynamic_pointer_cast<top_block, basic_block>(block);
- }
+}
-} /* namespce gr */
+} // namespace gr
#endif /* INCLUDED_GR_TOP_BLOCK_H */