|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw_driver.h>#include <climits>#include <cstdlib>#include <cstring>#include <tuple>#include <type_traits>#include <rw_valcmp.h>#include <rw_allocator.h>#include "20.tuple.h"#include <string>
Go to the source code of this file.
Data Structures | |
| struct | String |
Macros | |
| #define | CHECK(N) |
| #define | INTEGER_CONSTANT 256 |
Functions | |
| template<class T , class U = T> | |
| bool | equal (const T &x, const U &y) |
| template<> | |
| bool | equal (const float &x, const float &y) |
| template<> | |
| bool | equal (const char *const &x, const char *const &y) |
| template<class T , class U > | |
| void | assert (int line, unsigned index, const char *tuple_name, const T &t, const U &u) |
| void | assert (int line, unsigned index, const char *tuple_name, const UserDefined &t, const UserDefined &u) |
| template<class T , class U > | |
| void | assert (int line, unsigned index, const char *tuple_name, const std::tuple< T > &t, const std::tuple< U > &u) |
| template<unsigned Index, class Tuple , class... Elements> | |
| void | test_impl (int line, const Tuple &tuple, const Elements &... values) |
| template<unsigned Index, class Tuple > | |
| void | test_impl (int, const Tuple &) |
| template<unsigned Index, class Tuple , class Element , class... Elements> | |
| void | test_impl (int line, const Tuple &tuple, const Element &value, const Elements &... values) |
| template<class Tuple , class... Elements> | |
| void | test (int line, const Tuple &tuple, const Elements &... values) |
| int | main (int argc, char *argv[]) |
| #define CHECK | ( | N | ) |
| #define INTEGER_CONSTANT 256 |
| void assert | ( | int | line, |
| unsigned | index, | ||
| const char * | tuple_name, | ||
| const std::tuple< T > & | t, | ||
| const std::tuple< U > & | u | ||
| ) |
Definition at line 105 of file 20.tuple.cnstr.cpp.
Definition at line 70 of file 20.tuple.cnstr.cpp.
| void assert | ( | int | line, |
| unsigned | index, | ||
| const char * | tuple_name, | ||
| const UserDefined & | t, | ||
| const UserDefined & | u | ||
| ) |
Definition at line 80 of file 20.tuple.cnstr.cpp.
| bool equal | ( | const char *const & | x, |
| const char *const & | y | ||
| ) |
Definition at line 63 of file 20.tuple.cnstr.cpp.
| bool equal | ( | const float & | x, |
| const float & | y | ||
| ) |
Definition at line 57 of file 20.tuple.cnstr.cpp.
20.tuple.cnstr.cpp - tests exercising tuple constructors and operators
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2008 Rogue Wave Software, Inc.
Definition at line 51 of file 20.tuple.cnstr.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 645 of file 20.tuple.cnstr.cpp.
| void test | ( | int | line, |
| const Tuple & | tuple, | ||
| const Elements &... | values | ||
| ) |
Definition at line 141 of file 20.tuple.cnstr.cpp.
| void test_impl | ( | int | line, |
| const Tuple & | tuple, | ||
| const Element & | value, | ||
| const Elements &... | values | ||
| ) |
Definition at line 129 of file 20.tuple.cnstr.cpp.
| void test_impl | ( | int | line, |
| const Tuple & | tuple, | ||
| const Elements &... | values | ||
| ) |
Definition at line 124 of file 20.tuple.cnstr.cpp.