Lagrangian Liquid Simulation
Master Thesis project on simulation of liquids using Lagrangian approach and SPH
CacheItem Class Reference

store a list of positions per frame and is flushed to disk by the Cache class More...

#include <CacheItem.h>

List of all members.

Public Member Functions

 CacheItem (const std::vector< std::vector< ngl::Vector > > _positionList, const std::vector< std::string > _nameList, const int _frameNumber, const CacheItemType _cacheItemType)
 ctor
 CacheItem (const CacheItem &_cacheItem)
 copy ctor
int getFrameNumber () const
 return the frame number
std::vector< std::vector
< ngl::Vector > > 
getPositionList () const
 return the list of positions
std::vector< std::string > getNameList () const
 return the list of names
CacheItemType getCacheItemType () const
 return the type of the cache item

Private Attributes

CacheItemType m_cacheItemType
 the type of cache item being exported
std::vector< std::vector
< ngl::Vector > > 
m_positionList
 the list of positions
std::vector< std::string > m_nameList
 the list of names
int m_frameNumber
 the frame number

Detailed Description

store a list of positions per frame and is flushed to disk by the Cache class

Definition at line 29 of file CacheItem.h.


Constructor & Destructor Documentation

CacheItem::CacheItem ( const std::vector< std::vector< ngl::Vector > >  _positionList,
const std::vector< std::string >  _nameList,
const int  _frameNumber,
const CacheItemType  _cacheItemType 
)

ctor

Parameters:
[in]_positionListthe list of positions
[in]_nameListthe list of names
[in]_frameNumberthe current frame number
[in]_cacheItemTypethe type of cache item

Definition at line 7 of file CacheItem.cpp.

{
    m_positionList = _positionList;
    m_nameList = _nameList;
    m_frameNumber = _frameNumber;
    m_cacheItemType = _cacheItemType;
}
CacheItem::CacheItem ( const CacheItem _cacheItem)

copy ctor

Parameters:
[in]_cacheItemthe copied object

Definition at line 20 of file CacheItem.cpp.

References m_cacheItemType, m_frameNumber, m_nameList, and m_positionList.


Member Function Documentation

CacheItemType CacheItem::getCacheItemType ( ) const [inline]

return the type of the cache item

Definition at line 59 of file CacheItem.h.

References m_cacheItemType.

{ return m_cacheItemType; }

Here is the caller graph for this function:

int CacheItem::getFrameNumber ( ) const [inline]

return the frame number

Definition at line 50 of file CacheItem.h.

References m_frameNumber.

{ return m_frameNumber; }

Here is the caller graph for this function:

std::vector<std::string> CacheItem::getNameList ( ) const [inline]

return the list of names

Definition at line 56 of file CacheItem.h.

References m_nameList.

{ return m_nameList; }

Here is the caller graph for this function:

std::vector<std::vector<ngl::Vector> > CacheItem::getPositionList ( ) const [inline]

return the list of positions

Definition at line 53 of file CacheItem.h.

References m_positionList.

{ return m_positionList; }

Here is the caller graph for this function:


Member Data Documentation

the type of cache item being exported

Definition at line 63 of file CacheItem.h.

int CacheItem::m_frameNumber [private]

the frame number

Definition at line 72 of file CacheItem.h.

std::vector<std::string> CacheItem::m_nameList [private]

the list of names

Definition at line 69 of file CacheItem.h.

std::vector<std::vector<ngl::Vector> > CacheItem::m_positionList [private]

the list of positions

Definition at line 66 of file CacheItem.h.


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