In my .h file for my .cpp program I have the following.
FILE *sequence_file_pointer_; //holds the FILE pointer to the file itself
Then I told eclipse to generate the getters and setters and I get this interesting result.
const FILE*& getSequenceFilePointer() const;
After I thought I knew everything about pointers addresses and constants, then I see them give me this. I understand the constant on the left so that it will return a constant file pointer, but I don't understand the constant on the right and the ampersand between FILE*
and the getSequenceFilePointer()
. Any help?
class Configuration {
public:
const FILE*& getSequenceFilePointer() const;
private:
FILE *sequence_file_pointer_; //holds the FILE pointer to the file itself
}