]>
Dogcows Code - chaz/yoink/blob - src/moof/cml/core/common.h
1 /* -*- C++ -*- ------------------------------------------------------------
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
8 *-----------------------------------------------------------------------*/
16 // XXX This isn't really the right place for this.
19 #ifndef _SSIZE_T_DEFINED
21 typedef __int64 ssize_t
;
23 typedef _W64
int ssize_t
;
25 #define _SSIZE_T_DEFINED
29 #include <cstddef> // for size_t
30 #include <utility> // for std::pair<>
31 #include <cml/defaults.h>
35 /** 1D tag (to select array shape). */
38 /** 2D tag (to select array shape). */
41 /** Statically-allocated memory tag. */
42 struct fixed_memory_tag
{};
44 /** Dynamically-allocated memory tag. */
45 struct dynamic_memory_tag
{};
47 /** Externally-allocated memory tag. */
48 struct external_memory_tag
{};
50 /** Statically-sized tag. */
51 struct fixed_size_tag
{};
53 /** Runtime-sized tag. */
54 struct dynamic_size_tag
{};
57 struct resizable_tag
{};
59 /** Not resizable tag. */
60 struct not_resizable_tag
{};
62 /** Unit-sized tag. */
63 struct unit_size_tag
{};
65 /** Row-major storage tag. */
68 /** Col-major storage tag. */
71 /** Row-vector matrix basis tag. */
74 /** Column-vector matrix basis tag. */
77 /* This is the pair returned from the matrix size() method, as well as from
78 * the matrix expression size checking code:
80 typedef std::pair
<size_t,size_t> matrix_size
;
86 // -------------------------------------------------------------------------
This page took 0.038144 seconds and 4 git commands to generate.