I have a method in Class A which inputs a Vector to a method in Class B.
The method in Class A reads a file and makes input vectors in series for the method in Class B. The number of Vectors to be created by Method in class A depend on the data in the file which is a variable.
I want the method in class B to get this input and process the vector. And once it process all the vectors from class A, the method in class B needs to call another method.
So, in the method in Class B, how will I check that no more Vector has been put in from the method in A?
I can not check the size of the vector for empty because, sometimes even empty vectors are put in by the method in Class A and it is allowed.
The method in class B needs to know know that the file is completed and no more Vectors are formed. How do I write thi s part?
Thanks,
lalitha.V


So, in the method in Class B, how will I check that no more Vector has been put in from the method in A?