コード例 #1
0
ファイル: Pool.cpp プロジェクト: subhacom/moose-core
/**
 * setIsBuffered is a really nasty operation, made possible only because
 * BufPool is derived from Pool and has no other fields.
 * It uses a low-level replaceCinfo call to just change the 
 * identity of the Cinfo used, leaving everything else as is.
 */
void Pool::vSetIsBuffered( const Eref& e, bool v )
{
	static const Cinfo* bufPoolCinfo = Cinfo::find( "BufPool" );
	if (vGetIsBuffered( e ) == v)
		return;
	if (v) {
		e.element()->replaceCinfo( bufPoolCinfo );
	} else {
		e.element()->replaceCinfo( poolCinfo );
	}
}
コード例 #2
0
ファイル: PoolBase.cpp プロジェクト: hrani/moose-core
bool PoolBase::getIsBuffered( const Eref& e ) const
{
    return vGetIsBuffered( e );
}