1
0
Fork 0

introspection is protected

This commit is contained in:
Kevin Matz 2023-05-15 11:21:08 -04:00
parent 64901a27cb
commit 4fd1c4de29
2 changed files with 11 additions and 11 deletions

View File

@ -96,16 +96,6 @@ bool Method::setName(std::string name)
}
/**
* @brief Method::isContainer
* @return
*/
bool Method::isContainer() const
{
return !children_.empty();
}
/**
* @brief Method::dispatch
* @param patterns
@ -218,4 +208,14 @@ bool Method::isRoot() const
return !parent_;
}
/**
* @brief Method::isContainer
* @return
*/
bool Method::isContainer() const
{
return !children_.empty();
}
} // namespace OSC

View File

@ -47,7 +47,6 @@ public:
std::string address() const;
std::string name() const;
bool setName(std::string name);
bool isContainer() const;
bool dispatch(std::list<std::string> patterns, const std::shared_ptr<Message> msg) const;
@ -57,6 +56,7 @@ protected:
void trigger(std::shared_ptr<Message>) const;
bool matchName(const std::string &pattern) const;
bool isRoot() const;
bool isContainer() const;
private:
Method *parent_;