]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac981] Doxygen documentation
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 4 Jul 2011 11:54:49 +0000 (13:54 +0200)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 4 Jul 2011 11:54:49 +0000 (13:54 +0200)
src/lib/acl/logic_check.h

index f9fbec2e8cb80ef065ab21aafeca03d73c347008..cf511baea5aab4544e155ce9b939f5e7917eb74a 100644 (file)
@@ -200,21 +200,39 @@ private:
     const std::string name_;
 };
 
+/**
+ * \brief The NOT operator for ACLs.
+ *
+ * This simply returns the negation of whatever returns the subexpression.
+ */
 template<typename Context>
 class NotCheck : public CompoundCheck<Context> {
 public:
+    /**
+     * \brief Constructor
+     *
+     * \param expr The subexpression to be negated by this NOT.
+     */
     NotCheck(const boost::shared_ptr<Check<Context> >& expr) :
         expr_(expr)
     { }
+    /**
+     * \brief The list of subexpressions
+     *
+     * \return The vector will contain single value and it is the expression
+     *     passed by constructor.
+     */
     virtual typename CompoundCheck<Context>::Checks getSubexpressions() const {
         typename CompoundCheck<Context>::Checks result;
         result.push_back(expr_.get());
         return (result);
     }
+    /// \brief The matching function
     virtual bool matches(const Context& context) const {
         return (!expr_->matches(context));
     }
 private:
+    /// \brief The subexpression
     const boost::shared_ptr<Check<Context> > expr_;
 };