Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ShapeRoot.h File Reference

#include <vector>
#include "ShapeSpace.h"
#include "ShapeTypes.h"
#include "BaseData.h"
Include dependency graph for ShapeRoot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ShapeRoot
 Parent class for all Shape<xxxData> objects. More...

Namespaces

namespace  DualCoding
 

Dual coding vision representations (Sketches and Shapes).


Defines

#define ShapeRootTypeConst(_arg, _type)   (*reinterpret_cast<const Shape<_type>*>(&_arg))
#define ShapeRootType(_arg, _type)   (*reinterpret_cast<Shape<_type>*>(&_arg))
#define SHAPESTUFF_H(T)
#define SHAPESTUFF_CC(T)

Functions

std::ostream & operator<< (std::ostream &os, const ShapeRoot &r)

Define Documentation

#define ShapeRootType ( _arg,
_type   )     (*reinterpret_cast<Shape<_type>*>(&_arg))
#define SHAPESTUFF_CC ( T   ) 

Definition at line 108 of file ShapeRoot.h.

#define SHAPESTUFF_H ( T   ) 
Value:
Shape<T>() : ShapeRoot() {} \
  Shape<T>(T* newdata) : ShapeRoot(addShape(newdata)) {}  \
  T* operator->() { sanity_check(); return static_cast<T*>(data); } \
  const T* operator->() const { sanity_check(); return static_cast<T*>(data); } \
  T& operator*() { sanity_check(); return *static_cast<T*>(data); } \
  const T& operator*() const { sanity_check(); return *static_cast<T*>(data); } \
  T& getData() { return *static_cast<T*>(data); } \
  const T& getData() const { return *static_cast<T*>(data); }

Definition at line 98 of file ShapeRoot.h.


DualCoding 5.1CVS
Generated Mon May 9 04:56:29 2016 by Doxygen 1.6.3