Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Typedefs | Functions
27.forward.cpp File Reference
#include <iosfwd>
#include <rw_driver.h>
Include dependency graph for 27.forward.cpp:

Go to the source code of this file.

Macros

#define std   std
 
#define TEST_TYPE(T)
 
#define TEST_TYPEDEF(T, U)
 

Typedefs

typedef char C
 
typedef std::char_traits< C > ctraits
 
typedef std::allocator< C > calloc
 
typedef std::basic_ios< C, ctraits > C_basic_ios
 
typedef std::basic_streambuf< C, ctraits > C_basic_streambuf
 
typedef std::basic_istream< C, ctraits > C_basic_istream
 
typedef std::basic_ostream< C, ctraits > C_basic_ostream
 
typedef std::basic_iostream< C, ctraits > C_basic_iostream
 
typedef std::basic_stringbuf< C, ctraits, calloc > C_basic_stringbuf
 
typedef std::basic_istringstream< C, ctraits, calloc > C_basic_istringstream
 
typedef std::basic_ostringstream< C, ctraits, calloc > C_basic_ostringstream
 
typedef std::basic_stringstream< C, ctraits, calloc > C_basic_stringstream
 
typedef std::basic_filebuf< C, ctraits > C_basic_filebuf
 
typedef std::basic_ifstream< C, ctraits > C_basic_ifstream
 
typedef std::basic_ofstream< C, ctraits > C_basic_ofstream
 
typedef std::basic_fstream< C, ctraits > C_basic_fstream
 
typedef std::istreambuf_iterator< C, ctraits > C_istreambuf_iterator
 
typedef std::ostreambuf_iterator< C, ctraits > C_ostreambuf_iterator
 
typedef std::basic_ios< C > C_X_basic_ios
 
typedef std::basic_streambuf< C > C_X_basic_streambuf
 
typedef std::basic_istream< C > C_X_basic_istream
 
typedef std::basic_ostream< C > C_X_basic_ostream
 
typedef std::basic_iostream< C > C_X_basic_iostream
 
typedef std::basic_stringbuf< C > C_X_basic_stringbuf
 
typedef std::basic_istringstream< C > C_X_basic_istringstream
 
typedef std::basic_ostringstream< C > C_X_basic_ostringstream
 
typedef std::basic_stringstream< C > C_X_basic_stringstream
 
typedef std::basic_filebuf< C > C_X_basic_filebuf
 
typedef std::basic_ifstream< C > C_X_basic_ifstream
 
typedef std::basic_ofstream< C > C_X_basic_ofstream
 
typedef std::basic_fstream< C > C_X_basic_fstream
 
typedef std::istreambuf_iterator< C > C_X_istreambuf_iterator
 
typedef std::ostreambuf_iterator< C > C_X_ostreambuf_iterator
 
typedef std::fpos< C > C_fpos
 
typedef std::ios C_ios
 
typedef std::streambuf C_streambuf
 
typedef std::istream C_istream
 
typedef std::ostream C_ostream
 
typedef std::iostream C_iostream
 
typedef std::stringbuf C_stringbuf
 
typedef std::istringstream C_istringstream
 
typedef std::ostringstream C_ostringstream
 
typedef std::stringstream C_stringstream
 
typedef std::filebuf C_filebuf
 
typedef std::ifstream C_ifstream
 
typedef std::ofstream C_ofstream
 
typedef std::fstream C_fstream
 
typedef std::streampos C_streampos
 
typedef std::wios W_wios
 
typedef std::wstreambuf W_wstreambuf
 
typedef std::wistream W_wistream
 
typedef std::wostream W_wostream
 
typedef std::wiostream W_wiostream
 
typedef std::wstringbuf W_wstringbuf
 
typedef std::wistringstream W_wistringstream
 
typedef std::wostringstream W_wostringstream
 
typedef std::wstringstream W_wstringstream
 
typedef std::wfilebuf W_wfilebuf
 
typedef std::wifstream W_wifstream
 
typedef std::wofstream W_wofstream
 
typedef std::wfstream W_wfstream
 
typedef std::wstreampos W_wstreampos
 

Functions

template<class T , class U >
bool is_same_type (const T *, const U *)
 
template<class T >
bool is_same_type (const T *, const T *)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ std

#define std   std

27.forward.cpp - exercises lib.iostream.forward

$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 36 of file 27.forward.cpp.

◆ TEST_TYPE

#define TEST_TYPE (   T)
Value:
rw_assert (is_same_type ((C_X_ ## T*)0, (C_ ## T*)0), 0, __LINE__, \
"%s", #T);
#define T
Definition 17.names.cpp:163
#define C_
Definition 17.names.cpp:200
bool is_same_type(const T *, const U *)
_TEST_EXPORT int rw_assert(int, const char *, int, const char *,...)
Definition driver.cpp:1630

◆ TEST_TYPEDEF

#define TEST_TYPEDEF (   T,
  U 
)
Value:
rw_assert (is_same_type ((T*)0, (U*)0), 0, __LINE__, \
"%s == %s", #T, #U);
#define U
Definition 17.names.cpp:164

Typedef Documentation

◆ C

typedef char C

Definition at line 41 of file 27.forward.cpp.

◆ C_basic_filebuf

typedef std::basic_filebuf<C, ctraits> C_basic_filebuf

Definition at line 56 of file 27.forward.cpp.

◆ C_basic_fstream

typedef std::basic_fstream<C, ctraits> C_basic_fstream

Definition at line 59 of file 27.forward.cpp.

◆ C_basic_ifstream

typedef std::basic_ifstream<C, ctraits> C_basic_ifstream

Definition at line 57 of file 27.forward.cpp.

◆ C_basic_ios

typedef std::basic_ios<C, ctraits> C_basic_ios

Definition at line 46 of file 27.forward.cpp.

◆ C_basic_iostream

typedef std::basic_iostream<C, ctraits> C_basic_iostream

Definition at line 50 of file 27.forward.cpp.

◆ C_basic_istream

typedef std::basic_istream<C, ctraits> C_basic_istream

Definition at line 48 of file 27.forward.cpp.

◆ C_basic_istringstream

typedef std::basic_istringstream<C, ctraits, calloc> C_basic_istringstream

Definition at line 52 of file 27.forward.cpp.

◆ C_basic_ofstream

typedef std::basic_ofstream<C, ctraits> C_basic_ofstream

Definition at line 58 of file 27.forward.cpp.

◆ C_basic_ostream

typedef std::basic_ostream<C, ctraits> C_basic_ostream

Definition at line 49 of file 27.forward.cpp.

◆ C_basic_ostringstream

typedef std::basic_ostringstream<C, ctraits, calloc> C_basic_ostringstream

Definition at line 53 of file 27.forward.cpp.

◆ C_basic_streambuf

typedef std::basic_streambuf<C, ctraits> C_basic_streambuf

Definition at line 47 of file 27.forward.cpp.

◆ C_basic_stringbuf

typedef std::basic_stringbuf<C, ctraits, calloc> C_basic_stringbuf

Definition at line 51 of file 27.forward.cpp.

◆ C_basic_stringstream

typedef std::basic_stringstream<C, ctraits, calloc> C_basic_stringstream

Definition at line 54 of file 27.forward.cpp.

◆ C_filebuf

typedef std::filebuf C_filebuf

Definition at line 100 of file 27.forward.cpp.

◆ C_fpos

typedef std::fpos<C> C_fpos

Definition at line 88 of file 27.forward.cpp.

◆ C_fstream

typedef std::fstream C_fstream

Definition at line 103 of file 27.forward.cpp.

◆ C_ifstream

typedef std::ifstream C_ifstream

Definition at line 101 of file 27.forward.cpp.

◆ C_ios

typedef std::ios C_ios

Definition at line 91 of file 27.forward.cpp.

◆ C_iostream

typedef std::iostream C_iostream

Definition at line 95 of file 27.forward.cpp.

◆ C_istream

typedef std::istream C_istream

Definition at line 93 of file 27.forward.cpp.

◆ C_istreambuf_iterator

typedef std::istreambuf_iterator<C, ctraits> C_istreambuf_iterator

Definition at line 61 of file 27.forward.cpp.

◆ C_istringstream

typedef std::istringstream C_istringstream

Definition at line 97 of file 27.forward.cpp.

◆ C_ofstream

typedef std::ofstream C_ofstream

Definition at line 102 of file 27.forward.cpp.

◆ C_ostream

typedef std::ostream C_ostream

Definition at line 94 of file 27.forward.cpp.

◆ C_ostreambuf_iterator

typedef std::ostreambuf_iterator<C, ctraits> C_ostreambuf_iterator

Definition at line 62 of file 27.forward.cpp.

◆ C_ostringstream

typedef std::ostringstream C_ostringstream

Definition at line 98 of file 27.forward.cpp.

◆ C_streambuf

typedef std::streambuf C_streambuf

Definition at line 92 of file 27.forward.cpp.

◆ C_streampos

typedef std::streampos C_streampos

Definition at line 105 of file 27.forward.cpp.

◆ C_stringbuf

typedef std::stringbuf C_stringbuf

Definition at line 96 of file 27.forward.cpp.

◆ C_stringstream

typedef std::stringstream C_stringstream

Definition at line 99 of file 27.forward.cpp.

◆ C_X_basic_filebuf

typedef std::basic_filebuf<C> C_X_basic_filebuf

Definition at line 78 of file 27.forward.cpp.

◆ C_X_basic_fstream

typedef std::basic_fstream<C> C_X_basic_fstream

Definition at line 81 of file 27.forward.cpp.

◆ C_X_basic_ifstream

typedef std::basic_ifstream<C> C_X_basic_ifstream

Definition at line 79 of file 27.forward.cpp.

◆ C_X_basic_ios

typedef std::basic_ios<C> C_X_basic_ios

Definition at line 68 of file 27.forward.cpp.

◆ C_X_basic_iostream

typedef std::basic_iostream<C> C_X_basic_iostream

Definition at line 72 of file 27.forward.cpp.

◆ C_X_basic_istream

typedef std::basic_istream<C> C_X_basic_istream

Definition at line 70 of file 27.forward.cpp.

◆ C_X_basic_istringstream

typedef std::basic_istringstream<C> C_X_basic_istringstream

Definition at line 74 of file 27.forward.cpp.

◆ C_X_basic_ofstream

typedef std::basic_ofstream<C> C_X_basic_ofstream

Definition at line 80 of file 27.forward.cpp.

◆ C_X_basic_ostream

typedef std::basic_ostream<C> C_X_basic_ostream

Definition at line 71 of file 27.forward.cpp.

◆ C_X_basic_ostringstream

typedef std::basic_ostringstream<C> C_X_basic_ostringstream

Definition at line 75 of file 27.forward.cpp.

◆ C_X_basic_streambuf

typedef std::basic_streambuf<C> C_X_basic_streambuf

Definition at line 69 of file 27.forward.cpp.

◆ C_X_basic_stringbuf

typedef std::basic_stringbuf<C> C_X_basic_stringbuf

Definition at line 73 of file 27.forward.cpp.

◆ C_X_basic_stringstream

typedef std::basic_stringstream<C> C_X_basic_stringstream

Definition at line 76 of file 27.forward.cpp.

◆ C_X_istreambuf_iterator

typedef std::istreambuf_iterator<C> C_X_istreambuf_iterator

Definition at line 83 of file 27.forward.cpp.

◆ C_X_ostreambuf_iterator

typedef std::ostreambuf_iterator<C> C_X_ostreambuf_iterator

Definition at line 84 of file 27.forward.cpp.

◆ calloc

typedef std::allocator<C> calloc

Definition at line 44 of file 27.forward.cpp.

◆ ctraits

typedef std::char_traits<C> ctraits

Definition at line 43 of file 27.forward.cpp.

◆ W_wfilebuf

typedef std::wfilebuf W_wfilebuf

Definition at line 119 of file 27.forward.cpp.

◆ W_wfstream

typedef std::wfstream W_wfstream

Definition at line 122 of file 27.forward.cpp.

◆ W_wifstream

typedef std::wifstream W_wifstream

Definition at line 120 of file 27.forward.cpp.

◆ W_wios

typedef std::wios W_wios

Definition at line 110 of file 27.forward.cpp.

◆ W_wiostream

typedef std::wiostream W_wiostream

Definition at line 114 of file 27.forward.cpp.

◆ W_wistream

typedef std::wistream W_wistream

Definition at line 112 of file 27.forward.cpp.

◆ W_wistringstream

typedef std::wistringstream W_wistringstream

Definition at line 116 of file 27.forward.cpp.

◆ W_wofstream

typedef std::wofstream W_wofstream

Definition at line 121 of file 27.forward.cpp.

◆ W_wostream

typedef std::wostream W_wostream

Definition at line 113 of file 27.forward.cpp.

◆ W_wostringstream

typedef std::wostringstream W_wostringstream

Definition at line 117 of file 27.forward.cpp.

◆ W_wstreambuf

typedef std::wstreambuf W_wstreambuf

Definition at line 111 of file 27.forward.cpp.

◆ W_wstreampos

typedef std::wstreampos W_wstreampos

Definition at line 124 of file 27.forward.cpp.

◆ W_wstringbuf

typedef std::wstringbuf W_wstringbuf

Definition at line 115 of file 27.forward.cpp.

◆ W_wstringstream

typedef std::wstringstream W_wstringstream

Definition at line 118 of file 27.forward.cpp.

Function Documentation

◆ is_same_type() [1/2]

template<class T >
bool is_same_type ( const T *  ,
const T *   
)

Definition at line 140 of file 27.forward.cpp.

◆ is_same_type() [2/2]

template<class T , class U >
bool is_same_type ( const T *  ,
const U *   
)

Definition at line 137 of file 27.forward.cpp.

◆ main()

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

Definition at line 235 of file 27.forward.cpp.