Next Index Doc Set Home


C++ Library Reference


Contents

Preface

1. Introduction to C++ Libraries

Overview

Using Class Libraries
Using Standard Libraries
Using libC with Threads and Signals
Statically Linking Standard Libraries
Using Shared Libraries

Building Shared Libraries
Building Static Archives with Templates

Building Shared Libraries with Templates

Shared Library Behavior

2. The Coroutine Library

Introduction

Using the Coroutine Library

Structure of the Coroutine Classes

Objects

Tasks
Class task
Waiting States for Tasks
Pending Objects

System Time

Timers

Queues
FIFO Queues
Queue Modes
Queue Size
Cutting and Splicing

Scheduling

Random Numbers

Histograms

Real-Time and Interrupts

Coroutine Library Limitations

3. The Complex Arithmetic Library

Introduction

The Complex Library

Type complex
Constructors of Class complex
Arithmetic Operators

Mathematical Functions

Error Handling

Input and Output

Mixed-Mode Arithmetic

Efficiency

Complex Man Pages

4. The Iostream Library

Predefined Iostreams

Basic Structure of Iostream Interaction

Iostreams
Output Using Iostreams
Input Using Iostreams
Defining Your Own Extraction Operators
Using the char* Extractor
Reading Any Single Character
Binary Input
Peeking at Input
Extracting Whitespace
Handling Input Errors
Using Iostreams with stdio

Creating Iostreams
Dealing with Files Using Class fstream

Assignment of Iostreams

Format Control

Manipulators
Using Plain Manipulators
Parameterized Manipulators

Strstreams: Iostreams for Arrays

Stdiobufs: Iostreams for stdio files

Streambufs
Working with Streambufs
Using Streambufs

Iostream ManPages

Iostream Terminology

5. Using iostreams in a Multithreaded Environment

Organization of the MT-safe iostream Library
Public Conversion Routines
Compiling and Linking with the MT-safe libC Library
MT-safe iostream Restrictions
Performance
Interface Changes to the iostream Library
New Classes
New Class Hierarchy
New Functions
Global and Static Data
Sequence Execution
Object Locks
Class stream_locker
MT-safe Classes
Object Destruction
An Example Application

A. Coroutine Examples

B. Associated Man Pages

Index




Next Index Doc Set Home