PLN.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2002-2007 Novamente LLC
00003  * Copyright (C) 2008 by Singularity Institute for Artificial Intelligence
00004  * All Rights Reserved
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU Affero General Public License v3 as
00008  * published by the Free Software Foundation and including the exceptions
00009  * at http://opencog.org/wiki/Licenses
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Affero General Public License
00017  * along with this program; if not, write to:
00018  * Free Software Foundation, Inc.,
00019  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00020  */
00021 
00029 #ifdef _PLN_H
00030 #define _PLN_H
00031 
00032 // What does this do, I don't know... GCC ignores it
00033 #ifdef WIN32
00034 #pragma warning( disable : 4786)
00035 #pragma warning( disable : 4503)
00036 #endif
00037 
00038 // C includes
00039 #include <types.h>
00040 #include <math.h>
00041 #include <stdio.h>
00042 #include <stdarg.h>
00043 
00044 // Boost includes
00045 #include <boost/smart_ptr.hpp>
00046 #include <boost/foreach.hpp>
00047 #include <boost/lambda/lambda.hpp>
00048 
00049 // The fixed length of a pattern
00050 #define PLN_CONFIG_PATTERN_LENGTH 13
00051 #define PLN_CONFIG_FIM 1
00052 #define PLN_CONFIG_COLLAPSE_LIST_LINKS 0
00053 
00054 #define foreach BOOST_FOREACH
00055 #define Btr boost::shared_ptr
00056 
00057 using namespace opencog;
00058 
00059 namespace opencog {
00060 namespace pln {
00061     typedef unsigned char byte;
00062     typedef unsigned short int word;
00063     typedef unsigned long int dword;
00064     typedef tree<Vertex> vtree;
00065 
00066     typedef unsigned long ulong;
00067     enum MetaProperty { NONE, STRENGTH, CONFIDENCE, STRENGTH_CONFIDENCE, LTI, STI };
00068 
00069 
00070 }}
00071 
00072 #endif // _PLN_H

Generated on Fri Dec 4 23:23:30 2009 for OpenCog Framework by  doxygen 1.5.6