コード例 #1
0
void
JVariableList::VariablesInserted
	(
	const JOrderedSetT::ElementsInserted& info
	)
	const
{
JIndex i;

	for (i=1; i<=info.GetCount(); i++)
		{
		itsEvalStack->InsertElementAtIndex(info.GetFirstIndex(), kJFalse);
		}

	const JSize dCount = itsDVarUserList->GetElementCount();
	for (i=1; i<=dCount; i++)
		{
		(itsDVarUserList->NthElement(i))->
			VariablesInserted(info.GetFirstIndex(), info.GetCount());
		}

	const JSize fCount = itsFVarUserList->GetElementCount();
	for (i=1; i<=fCount; i++)
		{
		(itsFVarUserList->NthElement(i))->
			VariablesInserted(info.GetFirstIndex(), info.GetCount());
		}
}
コード例 #2
0
void
CBFileListTable::FilesAdded
	(
	const JOrderedSetT::ElementsInserted& info
	)
{
	const JPtrArray<JString>& fileNameList = GetFullNameList();

	for (JIndex i = info.GetFirstIndex(); i <= info.GetLastIndex(); i++)
		{
		time_t t;
		const JError err = JGetModificationTime(*(fileNameList.NthElement(i)), &t);
		assert_ok( err );

		itsFileInfo->InsertElementAtIndex(i, FileInfo(GetUniqueID(), t));
		if (itsFileUsage != NULL)
			{
			itsFileUsage->InsertElementAtIndex(i, kJTrue);
			}
		}
}