]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/cml/vector/external.h
cml version bump to 1.0.1
[chaz/yoink] / src / Moof / cml / vector / external.h
index bc9bc3fe9d29cda003b989736fae7af0fc4e836d..43c4c46f639b8baec51ae4b70fd33be8c23994c9 100644 (file)
@@ -42,6 +42,9 @@ class vector< Element, external<Size> >
     /* Shorthand for the type of this vector: */
     typedef vector<Element,generator_type> vector_type;
 
+    /* The vector coordinate type: */
+    typedef Element coordinate_type;
+
     /* For integration into the expression template code: */
     typedef vector_type expr_type;
 
@@ -74,6 +77,12 @@ class vector< Element, external<Size> >
     typedef cml::et::assignable_tag assignable_tag;
 
 
+  public:
+
+    /** Static constant containing the vector's space dimension. */
+    enum { dimension = Size };
+
+
   public:
 
     /** Return square of the length. */
This page took 0.019645 seconds and 4 git commands to generate.