Equalizer 1.0

co/types.h

00001 
00002 /* Copyright (c) 2006-2011, Stefan Eilemann <eile@equalizergraphics.com> 
00003  *
00004  * This library is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Lesser General Public License version 2.1 as published
00006  * by the Free Software Foundation.
00007  *  
00008  * This library is distributed in the hope that it will be useful, but WITHOUT
00009  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00010  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00011  * details.
00012  * 
00013  * You should have received a copy of the GNU Lesser General Public License
00014  * along with this library; if not, write to the Free Software Foundation, Inc.,
00015  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00016  */
00017 
00018 #ifndef CO_TYPES_H
00019 #define CO_TYPES_H
00020 
00021 #include <co/base/refPtr.h>
00022 #include <co/base/uuid.h>
00023 
00024 #include <deque>
00025 #include <vector>
00026 
00027 namespace co
00028 {
00029 
00030 #define CO_SEPARATOR '#'
00031 
00032 #define EQ_INSTANCE_MAX     EQ_MAX_UINT32 //!< The biggest instance id possible
00033 #define EQ_INSTANCE_NONE    0xfffffffdu   //!< None/NULL identifier
00034 #define EQ_INSTANCE_INVALID 0xfffffffeu   //!< Invalid/unset instance identifier
00035 #define EQ_INSTANCE_ALL     0xffffffffu   //!< all object instances
00036 
00037 class Node;
00038 class LocalNode;
00039 class Object;
00040 class Barrier;
00041 class Command;
00042 class CommandQueue;
00043 class Connection;
00044 class ConnectionDescription;
00045 class DataIStream;
00046 class DataOStream;
00047 class ObjectDataIStream;
00048 struct ObjectVersion;
00049 
00051 typedef base::UUID NodeID;
00052 
00053 typedef base::uint128_t uint128_t;
00054 
00056 typedef base::RefPtr< Node >                  NodePtr;
00058 typedef base::RefPtr< LocalNode >             LocalNodePtr;
00060 typedef base::RefPtr< Connection >            ConnectionPtr;
00062 typedef base::RefPtr< ConnectionDescription > ConnectionDescriptionPtr;
00063 
00065 typedef std::vector< NodePtr >                   Nodes;
00067 typedef Nodes::const_iterator                    NodesCIter;
00068 
00070 typedef std::vector< Object* >                   Objects;
00072 typedef Objects::const_iterator                  ObjectsCIter;
00073 
00075 typedef std::vector< Barrier* >                  Barriers;
00076 
00078 typedef std::vector< ConnectionPtr >             Connections;
00080 typedef Connections::const_iterator   ConnectionsCIter;
00081 
00083 typedef std::vector< ConnectionDescriptionPtr >  ConnectionDescriptions;
00085 typedef ConnectionDescriptions::iterator         ConnectionDescriptionsIter;
00087 typedef ConnectionDescriptions::const_iterator   ConnectionDescriptionsCIter;
00088 
00090 typedef std::vector< Command* > Commands;
00091 typedef std::deque< Command* > CommandDeque;
00092 typedef std::vector< ObjectVersion > ObjectVersions;
00093 typedef std::deque< ObjectDataIStream* > ObjectDataIStreamDeque;
00094 typedef std::vector< ObjectDataIStream* > ObjectDataIStreams;
00095 
00096 typedef Commands::const_iterator CommandsCIter;
00099 #ifdef EQ_USE_DEPRECATED
00100 typedef Nodes NodeVector;
00101 typedef Objects ObjectVector;
00102 typedef Barriers BarrierVector;
00103 typedef Connections ConnectionVector;
00104 typedef ConnectionDescriptions ConnectionDescriptionVector;
00105 typedef ObjectVersions ObjectVersionVector;
00106 #endif
00107 }
00108 
00109 #endif // CO_TYPES_H
Generated on Sun May 8 2011 19:11:07 for Equalizer 1.0 by  doxygen 1.7.3