Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
MapBase< Derived, WriteAccessors > Class Template Reference

#include <MapBase.h>

+ Inheritance diagram for MapBase< Derived, WriteAccessors >:

List of all members.

Public Types

enum  {
  RowsAtCompileTime,
  ColsAtCompileTime,
  SizeAtCompileTime
}
typedef MapBase< Derived,
ReadOnlyAccessors
Base
typedef Base::CoeffReturnType CoeffReturnType
typedef Base::Index Index
typedef Base::PacketScalar PacketScalar
typedef Base::PointerType PointerType
typedef NumTraits< Scalar >::Real RealScalar
typedef Base::Scalar Scalar
typedef internal::conditional
< internal::is_lvalue< Derived >
::value, Scalar, const Scalar >
::type 
ScalarWithConstIfNotLvalue
typedef internal::traits
< Derived >::StorageKind 
StorageKind

Public Member Functions

const Scalarcoeff (Index row, Index col) const
const Scalarcoeff (Index index) const
const ScalarcoeffRef (Index row, Index col) const
const ScalarcoeffRef (Index index) const
ScalarWithConstIfNotLvaluecoeffRef (Index row, Index col)
ScalarWithConstIfNotLvaluecoeffRef (Index index)
Index cols () const
const Scalardata () const
ScalarWithConstIfNotLvaluedata ()
 MapBase (PointerType data)
 MapBase (PointerType data, Index size)
 MapBase (PointerType data, Index rows, Index cols)
Derived & operator= (const MapBase &other)
template<int LoadMode>
PacketScalar packet (Index row, Index col) const
template<int LoadMode>
PacketScalar packet (Index index) const
Index rows () const
template<int StoreMode>
void writePacket (Index row, Index col, const PacketScalar &x)
template<int StoreMode>
void writePacket (Index index, const PacketScalar &x)

Protected Member Functions

void checkSanity () const

Protected Attributes

const
internal::variable_if_dynamic
< Index, ColsAtCompileTime
m_cols
PointerType m_data
const
internal::variable_if_dynamic
< Index, RowsAtCompileTime
m_rows

template<typename Derived>
class Eigen::MapBase< Derived, WriteAccessors >


Member Typedef Documentation

typedef MapBase<Derived, ReadOnlyAccessors> Base
typedef Base::CoeffReturnType CoeffReturnType [inherited]
typedef Base::Index Index
typedef Base::PacketScalar PacketScalar
typedef Base::PointerType PointerType
typedef NumTraits<Scalar>::Real RealScalar [inherited]
typedef Base::Scalar Scalar
typedef internal::conditional< internal::is_lvalue<Derived>::value, Scalar, const Scalar >::type ScalarWithConstIfNotLvalue
typedef internal::traits<Derived>::StorageKind StorageKind [inherited]

Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
RowsAtCompileTime 
ColsAtCompileTime 
SizeAtCompileTime 

Constructor & Destructor Documentation

MapBase ( PointerType  data) [inline, explicit]
MapBase ( PointerType  data,
Index  size 
) [inline]
MapBase ( PointerType  data,
Index  rows,
Index  cols 
) [inline]

Member Function Documentation

void checkSanity ( ) const [inline, protected, inherited]
const Scalar& coeff ( Index  row,
Index  col 
) const [inline, inherited]
const Scalar& coeff ( Index  index) const [inline, inherited]
const Scalar& coeffRef ( Index  row,
Index  col 
) const [inline, inherited]
const Scalar& coeffRef ( Index  index) const [inline, inherited]
ScalarWithConstIfNotLvalue& coeffRef ( Index  row,
Index  col 
) [inline]
Index cols ( void  ) const [inline, inherited]
const Scalar* data ( ) const [inline]

Returns a pointer to the first coefficient of the matrix or vector.

Note:
When addressing this data, make sure to honor the strides returned by innerStride() and outerStride().
See also:
innerStride(), outerStride()

Reimplemented from MapBase< Derived, ReadOnlyAccessors >.

Derived& operator= ( const MapBase< Derived, WriteAccessors > &  other) [inline]
PacketScalar packet ( Index  row,
Index  col 
) const [inline, inherited]
PacketScalar packet ( Index  index) const [inline, inherited]
Index rows ( void  ) const [inline, inherited]
void writePacket ( Index  row,
Index  col,
const PacketScalar x 
) [inline]
void writePacket ( Index  index,
const PacketScalar x 
) [inline]

Member Data Documentation

const internal::variable_if_dynamic<Index, ColsAtCompileTime> m_cols [protected, inherited]
PointerType m_data [protected, inherited]
const internal::variable_if_dynamic<Index, RowsAtCompileTime> m_rows [protected, inherited]

The documentation for this class was generated from the following file: