msm::IndexRange Class Reference

#include <MsmMap.h>

Inheritance diagram for msm::IndexRange:
msm::Grid< C1Matrix > msm::Grid< C1Vector > msm::Grid< Float > msm::Grid< T > msm::GridFixed< T, N >

List of all members.

Public Member Functions

 IndexRange ()
void set (int pia, int pni, int pja, int pnj, int pka, int pnk)
void setbounds (int pia, int pib, int pja, int pjb, int pka, int pkb)
int ia () const
int ib () const
int ja () const
int jb () const
int ka () const
int kb () const
int ni () const
int nj () const
int nk () const
int nn () const
Ivec lower () const
Ivec extent () const
int operator<= (const IndexRange &n)

Protected Attributes

Ivec nlower
Ivec nextent

Detailed Description

Definition at line 423 of file MsmMap.h.


Constructor & Destructor Documentation

msm::IndexRange::IndexRange (  )  [inline]

Member Function Documentation

Ivec msm::IndexRange::extent (  )  const [inline]

Definition at line 445 of file MsmMap.h.

References nextent.

Referenced by msm::Grid< BlockDiagram >::init(), msm::GridFixed< T, N >::init(), and GridMsg::put().

00445 { return nextent; }

int msm::IndexRange::ia (  )  const [inline]
int msm::IndexRange::ib (  )  const [inline]
int msm::IndexRange::ja (  )  const [inline]
int msm::IndexRange::jb (  )  const [inline]
int msm::IndexRange::ka (  )  const [inline]
int msm::IndexRange::kb (  )  const [inline]
Ivec msm::IndexRange::lower (  )  const [inline]

Definition at line 444 of file MsmMap.h.

References nlower.

Referenced by msm::Grid< BlockDiagram >::init(), msm::GridFixed< T, N >::init(), and GridMsg::put().

00444 { return nlower; }

int msm::IndexRange::ni (  )  const [inline]
int msm::IndexRange::nj (  )  const [inline]
int msm::IndexRange::nk (  )  const [inline]
int msm::IndexRange::nn (  )  const [inline]
int msm::IndexRange::operator<= ( const IndexRange n  )  [inline]

Definition at line 446 of file MsmMap.h.

References ia(), ib(), ja(), jb(), ka(), and kb().

00446                                           {
00447         // true if this IndexRange fits inside n
00448         return ( ia() >= n.ia() && ib() <= n.ib() &&
00449                  ja() >= n.ja() && jb() <= n.jb() &&
00450                  ka() >= n.ka() && kb() <= n.kb() );
00451       }

void msm::IndexRange::set ( int  pia,
int  pni,
int  pja,
int  pnj,
int  pka,
int  pnk 
) [inline]

Reimplemented in msm::GridFixed< T, N >, msm::Grid< T >, msm::Grid< Float >, msm::Grid< C1Vector >, msm::Grid< Mtype >, msm::Grid< C1Matrix >, msm::Grid< Vtype >, and msm::Grid< BlockDiagram >.

Definition at line 426 of file MsmMap.h.

References ASSERT, nextent, and nlower.

Referenced by msm::Map::indexRangeOfBlockFold().

00426                                                                      {
00427         ASSERT(pni >= 0 && pnj >= 0 && pnk >= 0);
00428         nlower = Ivec(pia, pja, pka);
00429         nextent = Ivec(pni, pnj, pnk);
00430       }

void msm::IndexRange::setbounds ( int  pia,
int  pib,
int  pja,
int  pjb,
int  pka,
int  pkb 
) [inline]

Member Data Documentation


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

Generated on 8 Dec 2019 for NAMD by  doxygen 1.6.1