CppAD: A C++ Algorithmic Differentiation Package  20130102
vectorBoolElement Class Reference

Class that is used to hold a non-constant element of a vector. More...

List of all members.

Public Member Functions

 vectorBoolElement (UnitType *unit, UnitType mask)
 constructor from member values
 vectorBoolElement (const vectorBoolElement &e)
 constuctor from another element
 operator bool () const
 conversion to a boolean value
vectorBoolElementoperator= (bool bit)
 assignment of this element to a bool
vectorBoolElementoperator= (const vectorBoolElement &e)
 assignment of this element to another element

Private Types

typedef size_t UnitType
 the boolean data is packed with sizeof(UnitType) bits per value

Private Attributes

UnitTypeunit_
 pointer to the UnitType value holding this eleemnt
UnitType mask_
 mask for the bit corresponding to this element (all zero except for bit that corresponds to this element)

Detailed Description

Class that is used to hold a non-constant element of a vector.

Definition at line 497 of file vector.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines