Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
25.search.cpp File Reference
#include <algorithm>
#include <cstring>
#include <rw_alg_test.h>
#include <rw_value.h>
#include <rw_driver.h>
Include dependency graph for 25.search.cpp:

Go to the source code of this file.

Data Structures

struct  EqualityPredicate< T, U >
 
class  EqualityPredicate< T, U >::ConvertibleToBool
 
struct  PredicateTag< T >
 
struct  NonPredicateTag< T >
 
struct  NonPredicateTag< T >::DummyPredicate
 

Macros

#define TEST(seq1, seq2, off)
 
#define TEST(seq, n, val, off)
 

Functions

 _RWSTD_NAMESPACE (std)
 
template<class ForwardIterator1 , class ForwardIterator2 , class T , class PredTag >
void test_search (int line, const char *seq1, const char *seq2, std::size_t off, ForwardIterator1 it1, ForwardIterator2 it2, const T *, PredTag pred_tag)
 
template<class ForwardIterator1 , class ForwardIterator2 , class T , class PredTag >
void test_search (ForwardIterator1 it1, ForwardIterator2 it2, const T *, PredTag pred_tag)
 
template<class ForwardIterator , class T , class Size , class PredTag >
void test_search_n (int line, const char *seq, Size cnt, const char val, std::size_t off, ForwardIterator it, const T *, PredTag pred_tag)
 
template<class ForwardIterator , class T , class Size , class PredTag >
void test_search_n (ForwardIterator it, const T *, const Size *, PredTag pred_tag)
 
template<class ForwardIterator , class T , class PredTag >
void test_search (ForwardIterator it, const T *, PredTag pred_tag)
 
template<class T , class PredTag >
void test_search (const T *, PredTag pred_tag)
 
template<class T , class Size , class PredTag >
void test_search_n (const T *, Size *, PredTag pred_tag)
 
template<class T >
void test_search (const T *)
 
template<class T >
void test_search_n (const T *)
 
int main (int argc, char *argv[])
 

Variables

int rw_opt_no_search
 
int rw_opt_no_search_n
 
int rw_opt_no_fwd_iter
 
int rw_opt_no_bidir_iter
 
int rw_opt_no_rnd_iter
 
int rw_opt_no_predicate
 

Macro Definition Documentation

◆ TEST [1/2]

#define TEST (   seq,
  n,
  val,
  off 
)
Value:
test_search_n (__LINE__, seq, Size(n, 0), val, std::size_t (off), \
it, (T*)0, pred_tag)
#define T
Definition 17.names.cpp:163
#define off
Definition 17.names.cpp:507
#define n
Definition 17.names.cpp:130
#define val
Definition 17.names.cpp:570
#define Size(sig)
void test_search_n(int line, const char *seq, Size cnt, const char val, std::size_t off, ForwardIterator it, const T *, PredTag pred_tag)

◆ TEST [2/2]

#define TEST (   seq1,
  seq2,
  off 
)
Value:
test_search (__LINE__, seq1, seq2, std::size_t (off), \
it1, it2, (T*)0, pred_tag)
void test_search(int line, const char *seq1, const char *seq2, std::size_t off, ForwardIterator1 it1, ForwardIterator2 it2, const T *, PredTag pred_tag)

Function Documentation

◆ _RWSTD_NAMESPACE()

_RWSTD_NAMESPACE ( std  )

25.search.cpp - test exercising 25.1.9 [lib.alg.search]

$Id$

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 1994-2005 Rogue Wave Software.

Definition at line 38 of file 25.search.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 693 of file 25.search.cpp.

◆ test_search() [1/5]

template<class T >
void test_search ( const T *  )

Definition at line 635 of file 25.search.cpp.

◆ test_search() [2/5]

template<class T , class PredTag >
void test_search ( const T *  ,
PredTag  pred_tag 
)

Definition at line 568 of file 25.search.cpp.

◆ test_search() [3/5]

template<class ForwardIterator , class T , class PredTag >
void test_search ( ForwardIterator  it,
const T *  ,
PredTag  pred_tag 
)

Definition at line 541 of file 25.search.cpp.

◆ test_search() [4/5]

template<class ForwardIterator1 , class ForwardIterator2 , class T , class PredTag >
void test_search ( ForwardIterator1  it1,
ForwardIterator2  it2,
const T *  ,
PredTag  pred_tag 
)

Definition at line 291 of file 25.search.cpp.

◆ test_search() [5/5]

template<class ForwardIterator1 , class ForwardIterator2 , class T , class PredTag >
void test_search ( int  line,
const char *  seq1,
const char *  seq2,
std::size_t  off,
ForwardIterator1  it1,
ForwardIterator2  it2,
const T *  ,
PredTag  pred_tag 
)

Definition at line 214 of file 25.search.cpp.

◆ test_search_n() [1/4]

template<class T >
void test_search_n ( const T *  )

Definition at line 653 of file 25.search.cpp.

◆ test_search_n() [2/4]

template<class T , class Size , class PredTag >
void test_search_n ( const T *  ,
Size *  ,
PredTag  pred_tag 
)

Definition at line 601 of file 25.search.cpp.

◆ test_search_n() [3/4]

template<class ForwardIterator , class T , class Size , class PredTag >
void test_search_n ( ForwardIterator  it,
const T *  ,
const Size *  ,
PredTag  pred_tag 
)

Definition at line 452 of file 25.search.cpp.

◆ test_search_n() [4/4]

template<class ForwardIterator , class T , class Size , class PredTag >
void test_search_n ( int  line,
const char *  seq,
Size  cnt,
const char  val,
std::size_t  off,
ForwardIterator  it,
const T *  ,
PredTag  pred_tag 
)

Definition at line 381 of file 25.search.cpp.

Variable Documentation

◆ rw_opt_no_bidir_iter

int rw_opt_no_bidir_iter

Definition at line 535 of file 25.search.cpp.

◆ rw_opt_no_fwd_iter

int rw_opt_no_fwd_iter

Definition at line 534 of file 25.search.cpp.

◆ rw_opt_no_predicate

int rw_opt_no_predicate

Definition at line 537 of file 25.search.cpp.

◆ rw_opt_no_rnd_iter

int rw_opt_no_rnd_iter

Definition at line 536 of file 25.search.cpp.

◆ rw_opt_no_search

int rw_opt_no_search

Definition at line 532 of file 25.search.cpp.

◆ rw_opt_no_search_n

int rw_opt_no_search_n

Definition at line 533 of file 25.search.cpp.