Lets say, I have a class named Texture
that realizes the RAII-idiom. Furthermore I have a corresponding TextureManager
class, that instantiates and deletes Texture
objects. Its a 1-to-1 relationship: Each TextureManager
instance creates one particular Texture
object when it is time to do so and it deletes it when it is not required any more. The TextureManager
decides this.
The point is that I'm not happy with the name of the TextureManager
class. I think it is too vacuous, for two reasons:
- The name
TextureManager
does not reflect the 1-to-1 relationship of aTextureManager
object and theTexture
object it creates/deletes. - The name is misleading. It could be understood as a class that loads textures from hard drive.
I've thought of a few alternatives, that I'm not happy with either:
TextureControl
does reflect the 1-to-1 relationship in my opinion, but it sounds more like the name of class that actually controls existing instances.TextureLifetimeControl
would be self-explanatory, but it is long and inelegant in my opinion.TextureHolder
does reflect the "possessing" nature of the the 1-to-1 relashionship, but it sounds more like an object that takes an existing instance and keeps it to me.
Any suggestions?