clipsmm - C++ CLIPS Interface Library

clipsmm logo
function.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Rick L. Vinyard, Jr. *
3  * rvinyard@cs.nmsu.edu *
4  * *
5  * This file is part of the clipsmm library. *
6  * *
7  * The clipsmm library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * version 3 as published by the Free Software Foundation. *
10  * *
11  * The clipsmm library is distributed in the hope that it will be *
12  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this software. If not see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 #ifndef CLIPSFUNCTION_H
20 #define CLIPSFUNCTION_H
21 
23 
24 namespace CLIPS {
25 
29 class Function : public EnvironmentObject
30 {
31 public:
32  typedef CLIPSPointer<Function> pointer;
33 
34  Function( Environment& environment, void* cobj = NULL );
35 
36  static Function::pointer create( Environment& environment, void* cobj = NULL );
37 
38  ~Function();
39 
40  std::string name();
41 
42  std::string formatted();
43 
44  std::string module_name();
45 
46  bool is_watched();
47 
48  void set_watch( bool watch=true );
49 
50  bool is_deletable();
51 
53 
54  bool undefine();
55 
56 };
57 
58 }
59 
60 #endif
CLIPS::Function::create
static Function::pointer create(Environment &environment, void *cobj=NULL)
Definition: function.cpp:49
CLIPS::Object::cobj
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
CLIPS::Function::set_watch
void set_watch(bool watch=true)
Definition: function.cpp:87
CLIPS::Function::pointer
CLIPSPointer< Function > pointer
Definition: function.h:66
CLIPS::Function::name
std::string name()
Definition: function.cpp:57
CLIPS::Function::Function
Function(Environment &environment, void *cobj=NULL)
Definition: function.cpp:46
CLIPS::Function::is_deletable
bool is_deletable()
Definition: function.cpp:102
CLIPS::Function::is_watched
bool is_watched()
Definition: function.cpp:80
CLIPS::EnvironmentObject::environment
Environment & environment() const
Definition: environmentobject.cpp:50
CLIPS::Function::next
Function::pointer next()
Definition: function.cpp:92
CLIPS::Function::undefine
bool undefine()
Definition: function.cpp:108
CLIPS::Function::formatted
std::string formatted()
Definition: function.cpp:65
function.h
CLIPS
Definition: activation.cpp:29
environment.h
environmentobject.h
CLIPS::Function::~Function
~Function()
Definition: function.cpp:53
CLIPS::Function::module_name
std::string module_name()
Definition: function.cpp:73

Generated on Mon Jul 27 2020 00:00:00 for clipsmm by doxygen 1.8.18