array-traits.hpp
Go to the documentation of this file.
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
* Christian Schulte <schulte@gecode.org>
*
* Contributing authors:
* Gabor Szokoli <szokoli@gecode.org>
*
* Copyright:
* Guido Tack, 2004
* Christian Schulte, 2004
* Gabor Szokoli, 2004
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
namespace Gecode {
class SetVarArgs;
class SetVarArray;
template<>
class ArrayTraits<VarArgArray<SetVar> > {
public:
typedef SetVarArgs StorageType;
typedef SetVar ValueType;
typedef SetVarArgs ArgsType;
};
template<>
class ArrayTraits<VarArray<SetVar> > {
public:
typedef SetVarArray StorageType;
typedef SetVar ValueType;
typedef SetVarArgs ArgsType;
};
template<>
class ArrayTraits<SetVarArray> {
public:
typedef SetVarArray StorageType;
typedef SetVar ValueType;
typedef SetVarArgs ArgsType;
};
template<>
class ArrayTraits<SetVarArgs> {
public:
typedef SetVarArgs StorageType;
typedef SetVar ValueType;
typedef SetVarArgs ArgsType;
};
}
// STATISTICS: set-other
Gecode::ArrayTraits< SetVarArgs >::ValueType
SetVar ValueType
Definition array-traits.hpp:76
Gecode::ArrayTraits< SetVarArgs >::StorageType
SetVarArgs StorageType
Definition array-traits.hpp:75
Gecode::ArrayTraits< SetVarArgs >::ArgsType
SetVarArgs ArgsType
Definition array-traits.hpp:77
Gecode::ArrayTraits< SetVarArray >::ArgsType
SetVarArgs ArgsType
Definition array-traits.hpp:69
Gecode::ArrayTraits< SetVarArray >::ValueType
SetVar ValueType
Definition array-traits.hpp:68
Gecode::ArrayTraits< SetVarArray >::StorageType
SetVarArray StorageType
Definition array-traits.hpp:67
Gecode::ArrayTraits< VarArgArray< SetVar > >::ValueType
SetVar ValueType
Definition array-traits.hpp:50
Gecode::ArrayTraits< VarArgArray< SetVar > >::ArgsType
SetVarArgs ArgsType
Definition array-traits.hpp:51
Gecode::ArrayTraits< VarArgArray< SetVar > >::StorageType
SetVarArgs StorageType
Definition array-traits.hpp:49
Gecode::ArrayTraits< VarArray< SetVar > >::ArgsType
SetVarArgs ArgsType
Definition array-traits.hpp:60
Gecode::ArrayTraits< VarArray< SetVar > >::StorageType
SetVarArray StorageType
Definition array-traits.hpp:58
Gecode::ArrayTraits< VarArray< SetVar > >::ValueType
SetVar ValueType
Definition array-traits.hpp:59
Gecode::ArrayTraits
Traits of arrays in Gecode.
Definition array.hpp:94
Gecode::SetVarArgs
Passing set variables.
Definition set.hh:488
Gecode::SetVarArray
Set variable array
Definition set.hh:570
Gecode::SetVar
Set variables
Definition set.hh:127
Gecode::VarArgArray
Argument array for variables.
Definition array.hpp:774
Gecode::VarArray
Variable arrays
Definition array.hpp:112
Gecode
Gecode toplevel namespace