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

#include <MapBase.h>

+ Inheritance diagram for MapBase< Derived, ReadOnlyAccessors >:

List of all members.

Public Types

enum  {
  RowsAtCompileTime,
  ColsAtCompileTime,
  SizeAtCompileTime
}
typedef
internal::dense_xpr_base
< Derived >::type 
Base
typedef Base::CoeffReturnType CoeffReturnType
typedef internal::traits
< Derived >::Index 
Index
typedef
internal::packet_traits
< Scalar >::type 
PacketScalar
typedef internal::conditional
< bool(internal::is_lvalue
< Derived >::value), Scalar
*, const Scalar * >::type 
PointerType
typedef NumTraits< Scalar >::Real RealScalar
typedef internal::traits
< Derived >::Scalar 
Scalar
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
Index cols () const
const Scalardata () const
 MapBase (PointerType data)
 MapBase (PointerType data, Index size)
 MapBase (PointerType data, Index rows, Index cols)
template<int LoadMode>
PacketScalar packet (Index row, Index col) const
template<int LoadMode>
PacketScalar packet (Index index) const
Index rows () const

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 internal::dense_xpr_base<Derived>::type Base
typedef Base::CoeffReturnType CoeffReturnType
typedef internal::traits<Derived>::Index Index
typedef internal::packet_traits<Scalar>::type PacketScalar
typedef internal::conditional< bool(internal::is_lvalue<Derived>::value), Scalar *, const Scalar *>::type PointerType
typedef NumTraits<Scalar>::Real RealScalar
typedef internal::traits<Derived>::Scalar Scalar
typedef internal::traits<Derived>::StorageKind StorageKind

Member Enumeration Documentation

anonymous enum
Enumerator:
RowsAtCompileTime 
ColsAtCompileTime 
SizeAtCompileTime 

Constructor & Destructor Documentation

MapBase ( PointerType  data)
inline
MapBase ( PointerType  data,
Index  size 
)
inline
MapBase ( PointerType  data,
Index  rows,
Index  cols 
)
inline

Member Function Documentation

void checkSanity ( ) const
inlineprotected
const Scalar& coeff ( Index  row,
Index  col 
) const
inline
const Scalar& coeff ( Index  index) const
inline
const Scalar& coeffRef ( Index  row,
Index  col 
) const
inline
const Scalar& coeffRef ( Index  index) const
inline
Index cols ( void  ) const
inline
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 in MapBase< Derived, WriteAccessors >.

PacketScalar packet ( Index  row,
Index  col 
) const
inline
PacketScalar packet ( Index  index) const
inline
Index rows ( void  ) const
inline

Member Data Documentation

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

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