Equalizer  1.2.1
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 Barrier;
00038 class Command;
00039 class CommandQueue;
00040 class Connection;
00041 class ConnectionDescription;
00042 class DataIStream;
00043 class DataOStream;
00044 class LocalNode;
00045 class Node;
00046 class Object;
00047 class ObjectDataIStream;
00048 class Serializable;
00049 class QueueMaster;
00050 class QueueSlave;
00051 template< class Q > class WorkerThread;
00052 struct ObjectVersion;
00053 struct Packet;
00054 struct QueueItemPacket;
00055 
00056 typedef base::UUID NodeID; 
00057 
00058 typedef base::uint128_t uint128_t;
00059 
00061 typedef base::RefPtr< Node >                  NodePtr;
00063 typedef base::RefPtr< LocalNode >             LocalNodePtr;
00065 typedef base::RefPtr< Connection >            ConnectionPtr;
00067 typedef base::RefPtr< ConnectionDescription > ConnectionDescriptionPtr;
00068 
00070 typedef std::vector< NodePtr >                   Nodes;
00072 typedef Nodes::iterator                          NodesIter;
00074 typedef Nodes::const_iterator                    NodesCIter;
00075 
00077 typedef std::vector< Object* >                   Objects;
00079 typedef Objects::const_iterator                  ObjectsCIter;
00080 
00081 typedef std::vector< Barrier* > Barriers; 
00082 typedef Barriers::iterator BarriersIter;  
00083 typedef Barriers::const_iterator BarriersCIter; 
00084 
00086 typedef std::vector< ConnectionPtr >             Connections;
00088 typedef Connections::const_iterator   ConnectionsCIter;
00089 
00091 typedef std::vector< ConnectionDescriptionPtr >  ConnectionDescriptions;
00093 typedef ConnectionDescriptions::iterator         ConnectionDescriptionsIter;
00095 typedef ConnectionDescriptions::const_iterator   ConnectionDescriptionsCIter;
00096 
00098 typedef std::vector< Command* > Commands;
00099 typedef std::deque< Command* > CommandDeque;
00100 typedef CommandDeque::const_iterator CommandDequeCIter;
00101 
00102 typedef std::vector< ObjectVersion > ObjectVersions;
00103 typedef ObjectVersions::const_iterator ObjectVersionsCIter;
00104 typedef std::deque< ObjectDataIStream* > ObjectDataIStreamDeque;
00105 typedef std::vector< ObjectDataIStream* > ObjectDataIStreams;
00106 
00107 typedef Commands::const_iterator CommandsCIter;
00110 #ifdef EQ_USE_DEPRECATED
00111 typedef Nodes NodeVector;
00112 typedef Objects ObjectVector;
00113 typedef Barriers BarrierVector;
00114 typedef Connections ConnectionVector;
00115 typedef ConnectionDescriptions ConnectionDescriptionVector;
00116 typedef ObjectVersions ObjectVersionVector;
00117 #endif
00118 }
00119 
00120 #endif // CO_TYPES_H
Generated on Fri Jun 8 2012 15:44:32 for Equalizer 1.2.1 by  doxygen 1.8.0