I have a class Cache which has a function write specified as
Cache
bool write(const MemoryAccess &memory_access, CacheLine &cl);
Also if your class's method returns pointer on any member you shouldn't forget write const before returning type example:
const float * getPosition() const{...}