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 Scalar & coeff (Index row, Index col) const
const Scalar & coeff (Index index) const
const Scalar & coeffRef (Index row, Index col) const
const Scalar & coeffRef (Index index) const
ScalarWithConstIfNotLvalue & coeffRef (Index row, Index col)
ScalarWithConstIfNotLvalue & coeffRef (Index index)
Index cols () const
const Scalar * data () const
ScalarWithConstIfNotLvalue * data ()
 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

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)
inlineexplicit
MapBase ( PointerType  data,
Index  size 
)
inline
MapBase ( PointerType  data,
Index  rows,
Index  cols 
)
inline

Member Function Documentation

void checkSanity ( ) const
inlineprotectedinherited
const Scalar& coeff ( Index  row,
Index  col 
) const
inlineinherited
const Scalar& coeff ( Index  index) const
inlineinherited
const Scalar& coeffRef ( Index  row,
Index  col 
) const
inlineinherited
const Scalar& coeffRef ( Index  index) const
inlineinherited
ScalarWithConstIfNotLvalue& coeffRef ( Index  row,
Index  col 
)
inline
ScalarWithConstIfNotLvalue& coeffRef ( Index  index)
inline
Index cols ( void  ) const
inlineinherited
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 >.

ScalarWithConstIfNotLvalue* data ( )
inline
Derived& operator= ( const MapBase< Derived, WriteAccessors > &  other)
inline
PacketScalar packet ( Index  row,
Index  col 
) const
inlineinherited
PacketScalar packet ( Index  index) const
inlineinherited
Index rows ( void  ) const
inlineinherited
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
protectedinherited
PointerType m_data
protectedinherited
const internal::variable_if_dynamic<Index, RowsAtCompileTime> m_rows
protectedinherited

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